use of org.apache.hyracks.data.std.util.BinaryHashSet in project asterixdb by apache.
the class FullTextContainsEvaluator method initializeFullTextContains.
private void initializeFullTextContains() {
// We use a hash set to store tokens from the right side (query predicate).
// Initialize necessary variables.
hashFunc = new PointableBinaryHashFunctionFactory(UTF8StringLowercaseTokenPointable.FACTORY).createBinaryHashFunction();
keyEntry = new BinaryEntry();
// Parameter: number of bucket, frame size, hashFunction, Comparator, byte array
// that contains the key (this array will be set later.)
rightHashSet = new BinaryHashSet(HASH_SET_SLOT_SIZE, HASH_SET_FRAME_SIZE, hashFunc, strLowerCaseTokenCmp, null);
tokenizerForLeftArray = BinaryTokenizerFactoryProvider.INSTANCE.getWordTokenizerFactory(ATypeTag.STRING, false, true).createTokenizer();
}
Aggregations