Class Groupers
java.lang.Object
org.apache.druid.query.groupby.epinephelinae.Groupers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBit that indicates a bucket is used in the hash table.static final intMask to clear the used flag bit from a hash value. -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregateResultdictionaryFull(int count) static ByteBuffergetSlice(ByteBuffer buffer, int sliceSize, int i) static inthashObject(Object obj) static AggregateResulthashTableFull(int count) static intsmear(int hashCode) This method was rewritten in Java from an intermediate step of the Murmur hash function in https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp, which contained the following header: MurmurHash3 was written by Austin Appleby, and is placed in the public domain.static int[]writeAggregationRows(int[] scratch, int start, int end) Write ints from "start" to "end" into "scratch", if start != 0.
-
Field Details
-
USED_FLAG_MASK
public static final int USED_FLAG_MASKMask to clear the used flag bit from a hash value. Used when reading a hash from a bucket to recover the original hash without the used flag.- See Also:
-
USED_FLAG_BIT
public static final int USED_FLAG_BITBit that indicates a bucket is used in the hash table. This is the sign bit (highest bit) of the hash value stored in each bucket.- See Also:
-
-
Method Details
-
smear
public static int smear(int hashCode) This method was rewritten in Java from an intermediate step of the Murmur hash function in https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp, which contained the following header: MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author hereby disclaims copyright to this source code. -
dictionaryFull
-
hashTableFull
-
hashObject
-
getSlice
-
writeAggregationRows
@Nullable public static int[] writeAggregationRows(int[] scratch, int start, int end) Write ints from "start" to "end" into "scratch", if start != 0. Otherwise, return null.
-