public static class StandalonePersistentRecordCache.Builder<K,V> extends Object
| Constructor and Description |
|---|
Builder() |
public StandalonePersistentRecordCache<K,V> build() throws IOException
IOExceptionpublic StandalonePersistentRecordCache.Builder<K,V> setIndexDir(File indexDir)
public StandalonePersistentRecordCache.Builder<K,V> setKeySerializer(com.indeed.util.serialization.Serializer<K> keySerializer)
public StandalonePersistentRecordCache.Builder<K,V> setValueSerializer(com.indeed.util.serialization.Serializer<V> valueSerializer)
public StandalonePersistentRecordCache.Builder<K,V> setComparator(Comparator<K> comparator)
public StandalonePersistentRecordCache.Builder<K,V> setCheckpointDir(File checkpointDir)
public boolean isDedicatedIndexPartition()
public StandalonePersistentRecordCache.Builder<K,V> setDedicatedIndexPartition(boolean dedicatedIndexPartition)
public boolean isMlockIndex()
public StandalonePersistentRecordCache.Builder<K,V> setMlockIndex(boolean mlockIndex)
public boolean isMlockBloomFilters()
public StandalonePersistentRecordCache.Builder<K,V> setMlockBloomFilters(boolean mlockBloomFilters)
public long getBloomFilterMemory()
public StandalonePersistentRecordCache.Builder<K,V> setBloomFilterMemory(long bloomFilterMemory)
Copyright © 2017. All Rights Reserved.