Search in sources :

Example 1 with BinaryHashSet

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();
}
Also used : BinaryEntry(org.apache.hyracks.data.std.util.BinaryEntry) BinaryHashSet(org.apache.hyracks.data.std.util.BinaryHashSet) PointableBinaryHashFunctionFactory(org.apache.hyracks.data.std.accessors.PointableBinaryHashFunctionFactory)

Aggregations

PointableBinaryHashFunctionFactory (org.apache.hyracks.data.std.accessors.PointableBinaryHashFunctionFactory)1 BinaryEntry (org.apache.hyracks.data.std.util.BinaryEntry)1 BinaryHashSet (org.apache.hyracks.data.std.util.BinaryHashSet)1