public class ValueStore extends Object
GroupedTypedHistogram
May be used for other cases that need a simple hash for values
sort of a FlyWeightStore for values--will return unique number for a value. If it exists, you'll get the same number. Class map Value -> number
Note it assumes you're storing # -> Value (Type, Block, position, or the result of the ) somewhere else
| Constructor and Description |
|---|
ValueStore(int expectedSize,
BlockBuilder values) |
| Modifier and Type | Method and Description |
|---|---|
int |
addAndGetPosition(Type type,
Block block,
int position,
long valueHash)
This will add an item if not already in the system.
|
long |
getEstimatedSize() |
int |
getRehashCount() |
public ValueStore(int expectedSize,
BlockBuilder values)
public int addAndGetPosition(Type type, Block block, int position, long valueHash)
public int getRehashCount()
public long getEstimatedSize()
Copyright © 2012–2019. All rights reserved.