Package edu.caltech.nanodb.relations
Class TableUtils
- java.lang.Object
-
- edu.caltech.nanodb.relations.TableUtils
-
public class TableUtils extends java.lang.Object
Created by donnie on 7/16/17.
-
-
Constructor Summary
Constructors Constructor Description TableUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Tuple
findFirstTupleEquals(TupleFile tupleFile, java.util.Map<java.lang.Integer,java.lang.Object> values)
static ColumnRefs
findIndexOnColumns(TableInfo tableInfo, int[] colIndexes)
static Tuple
findNextTupleEquals(TupleFile tupleFile, Tuple prevTup, java.util.Map<java.lang.Integer,java.lang.Object> values)
static boolean
hasEqualValues(Tuple tup, java.util.Map<java.lang.Integer,java.lang.Object> values)
static java.util.Map<java.lang.Integer,java.lang.Object>
makeValueMap(int[] colIndexes, Tuple tup)
static java.util.Map<java.lang.Integer,java.lang.Object>
makeValueMap(int[] colIndexes, Tuple tup, int[] refColIndexes)
-
-
-
Method Detail
-
findIndexOnColumns
public static ColumnRefs findIndexOnColumns(TableInfo tableInfo, int[] colIndexes)
-
makeValueMap
public static java.util.Map<java.lang.Integer,java.lang.Object> makeValueMap(int[] colIndexes, Tuple tup, int[] refColIndexes)
-
makeValueMap
public static java.util.Map<java.lang.Integer,java.lang.Object> makeValueMap(int[] colIndexes, Tuple tup)
-
hasEqualValues
public static boolean hasEqualValues(Tuple tup, java.util.Map<java.lang.Integer,java.lang.Object> values)
-
findFirstTupleEquals
public static Tuple findFirstTupleEquals(TupleFile tupleFile, java.util.Map<java.lang.Integer,java.lang.Object> values) throws java.io.IOException
- Throws:
java.io.IOException
-
-