| Package | Description |
|---|---|
| com.indeed.mph |
| Modifier and Type | Method and Description |
|---|---|
TableConfig<K,V> |
SharedTableReader.getConfig() |
TableConfig<K,V> |
TableReader.getConfig() |
TableConfig<K,V> |
TableMeta.getConfig() |
TableConfig<K,V> |
MphMap.getConfig()
Returns the config for this mph table, specifying serializers and other info.
|
TableConfig<K,V> |
TableConfig.withDebugDuplicateKeys(boolean debugDupKeys) |
TableConfig<K,V> |
TableConfig.withKeySerializer(SmartSerializer<? super K> serializer) |
TableConfig<K,V> |
TableConfig.withKeyStorage(TableConfig.KeyStorage storage) |
TableConfig<K,V> |
TableConfig.withKeyValidator(KeyValidator<K,V> validator) |
TableConfig<K,V> |
TableConfig.withMaxDataHeapUsage(long maxDataHeap) |
TableConfig<K,V> |
TableConfig.withMaxHeapUsage(long maxHeap) |
TableConfig<K,V> |
TableConfig.withOffsetStorage(TableConfig.OffsetStorage storage) |
TableConfig<K,V> |
TableConfig.withRangeChecking(TableConfig.RangeChecking rangeCheck) |
TableConfig<K,V> |
TableConfig.withSignatureWidth(int width) |
TableConfig<K,V> |
TableConfig.withTempShardSize(long shardSize) |
TableConfig<K,V> |
TableConfig.withValueSerializer(SmartSerializer<? super V> serializer) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> MphMap<K,V> |
MphMap.fromKeyValues(TableConfig<K,V> config,
java.lang.Iterable<com.indeed.util.core.Pair<K,V>> entries)
Static constructor to build a table from key/value pairs, as
would be passed to the
TableWriter constructor. |
static <K,V> MphMap<K,V> |
MphMap.fromMap(TableConfig<K,V> config,
java.util.Map<K,V> entries)
Static constructor to build a table from another Map.
|
static <K,V> void |
TableWriter.write(java.io.File outputDir,
TableConfig<K,V> config,
java.lang.Iterable<com.indeed.util.core.Pair<K,V>> entries)
Constructs and writes a minimal perfect hash table to
outputDir.
|
static <K,V> void |
TableWriter.write(java.io.File outputDir,
TableConfig<K,V> config,
java.lang.Iterable<com.indeed.util.core.Pair<K,V>> entries,
long dataSize)
As above, with a pre-computed dataSize.
|
static <K,V> void |
TableWriter.writeWithTempStorage(java.io.File outputDir,
TableConfig<K,V> config,
java.util.Iterator<com.indeed.util.core.Pair<K,V>> entries)
As above, using the outputDir for temp storage.
|
static <K,V> void |
TableWriter.writeWithTempStorage(java.io.File outputDir,
TableConfig<K,V> config,
java.util.Iterator<com.indeed.util.core.Pair<K,V>> entries,
java.io.File tempDir)
As above, using a one-time iterator.
|
| Constructor and Description |
|---|
TableMeta(TableConfig<K,V> config,
it.unimi.dsi.sux4j.mph.GOVMinimalPerfectHashFunction<K> mph,
it.unimi.dsi.sux4j.bits.Select selectOffsets,
byte[] minKey,
byte[] maxKey,
long dataSize) |
TableMeta(TableConfig<K,V> config,
it.unimi.dsi.sux4j.mph.GOVMinimalPerfectHashFunction<K> mph,
it.unimi.dsi.sux4j.bits.Select selectOffsets,
long dataSize) |
Copyright © 2018. All Rights Reserved.