Package edu.caltech.nanodb.expressions
Class TupleHasher
- java.lang.Object
-
- edu.caltech.nanodb.expressions.TupleHasher
-
public class TupleHasher extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TupleHasher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
hashTuple(Tuple tuple)
static int
hashTuple(Tuple tuple, java.util.List<java.lang.Integer> colIndexes)
Collects tuple values according to colIndexes into an ArrayList and returns the hash of the list.
-
-
-
Method Detail
-
hashTuple
public static int hashTuple(Tuple tuple, java.util.List<java.lang.Integer> colIndexes)
Collects tuple values according to colIndexes into an ArrayList and returns the hash of the list. Order matters here, so hash(tuple, [1,2,3]) != hash(tuple, [3,2,1]).- Parameters:
tuple
- the tuple to be hashedcolIndexes
- the indices of the columns to be hashed.- Returns:
- the hash value for the tuple given the passed column indices
-
hashTuple
public static int hashTuple(Tuple tuple)
-
-