Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TupleHasher

        public TupleHasher()
    • 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 hashed
        colIndexes - 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)