public static class ZFastTrieDistributorMonotoneMinimalPerfectHashFunction.Builder<T> extends Object
ZFastTrieDistributorMonotoneMinimalPerfectHashFunction.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
built
Whether
build() has already been called. |
protected Iterable<? extends T> |
keys |
protected long |
numKeys |
protected int |
signatureWidth |
protected File |
tempDir |
protected TransformationStrategy<? super T> |
transform |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ZFastTrieDistributorMonotoneMinimalPerfectHashFunction<T> |
build()
Builds a monotone minimal perfect hash function based on a z-fast trie distributor.
|
ZFastTrieDistributorMonotoneMinimalPerfectHashFunction.Builder<T> |
keys(Iterable<? extends T> keys)
Specifies the keys to hash.
|
ZFastTrieDistributorMonotoneMinimalPerfectHashFunction.Builder<T> |
signed(int signatureWidth)
Specifies that the resulting
LcpMonotoneMinimalPerfectHashFunction should be signed using a given number of bits per key. |
ZFastTrieDistributorMonotoneMinimalPerfectHashFunction.Builder<T> |
tempDir(File tempDir)
Specifies a temporary directory for the
ChunkedHashStore. |
ZFastTrieDistributorMonotoneMinimalPerfectHashFunction.Builder<T> |
transform(TransformationStrategy<? super T> transform)
Specifies the transformation strategy for the keys to hash.
|
protected TransformationStrategy<? super T> transform
protected long numKeys
protected int signatureWidth
protected File tempDir
protected boolean built
build() has already been called.public ZFastTrieDistributorMonotoneMinimalPerfectHashFunction.Builder<T> keys(Iterable<? extends T> keys)
keys - the keys to hash.public ZFastTrieDistributorMonotoneMinimalPerfectHashFunction.Builder<T> transform(TransformationStrategy<? super T> transform)
transform - a transformation strategy for the keys to hash.public ZFastTrieDistributorMonotoneMinimalPerfectHashFunction.Builder<T> signed(int signatureWidth)
LcpMonotoneMinimalPerfectHashFunction should be signed using a given number of bits per key.signatureWidth - a signature width, or 0 for no signature.public ZFastTrieDistributorMonotoneMinimalPerfectHashFunction.Builder<T> tempDir(File tempDir)
ChunkedHashStore.tempDir - a temporary directory for the ChunkedHashStore. files, or null for the standard temporary directory.public ZFastTrieDistributorMonotoneMinimalPerfectHashFunction<T> build() throws IOException
ZFastTrieDistributorMonotoneMinimalPerfectHashFunction instance with the specified parameters.IllegalStateException - if called more than once.IOException