public class BlueIndexOnDisk<I extends ValueKey,T extends java.io.Serializable> extends java.lang.Object implements BlueIndex<I,T>, Rollupable
Modifier and Type | Method and Description |
---|---|
void |
add(BlueKey key,
T newItem) |
void |
add(java.util.Collection<IndividualChange<T>> changes) |
void |
addEntities(java.util.Collection<BlueEntity<T>> entities) |
static <K extends ValueKey,T extends java.io.Serializable> |
createNew(BlueCollectionOnDisk<T> collection,
java.nio.file.Path indexPath,
KeyExtractor<K,T> keyExtractor) |
protected static SegmentSizeSetting |
determineSegmentSize(java.lang.Class<? extends BlueKey> keyType) |
static <K extends ValueKey,T extends java.io.Serializable> |
fromExisting(BlueCollectionOnDisk<T> collection,
java.nio.file.Path indexPath) |
java.util.List<T> |
get(I key) |
java.util.List<BlueKey> |
getKeys(I key) |
I |
getLastKey() |
SegmentManager<BlueKey> |
getSegmentManager() |
java.lang.Class<I> |
getType() |
void |
remove(BlueKey key,
T oldItem) |
void |
reportReads(java.util.List<RollupTarget> rollupTargets) |
void |
reportWrites(java.util.List<RollupTarget> rollupTargets) |
void |
rollup(Range range) |
public static <K extends ValueKey,T extends java.io.Serializable> BlueIndexOnDisk<K,T> createNew(BlueCollectionOnDisk<T> collection, java.nio.file.Path indexPath, KeyExtractor<K,T> keyExtractor) throws BlueDbException
BlueDbException
public static <K extends ValueKey,T extends java.io.Serializable> BlueIndexOnDisk<K,T> fromExisting(BlueCollectionOnDisk<T> collection, java.nio.file.Path indexPath) throws BlueDbException
BlueDbException
public java.lang.Class<I> getType()
protected static SegmentSizeSetting determineSegmentSize(java.lang.Class<? extends BlueKey> keyType) throws BlueDbException
BlueDbException
public void add(BlueKey key, T newItem) throws BlueDbException
BlueDbException
public void addEntities(java.util.Collection<BlueEntity<T>> entities) throws BlueDbException
BlueDbException
public void add(java.util.Collection<IndividualChange<T>> changes) throws BlueDbException
BlueDbException
public void remove(BlueKey key, T oldItem) throws BlueDbException
BlueDbException
public java.util.List<T> get(I key) throws BlueDbException
public void rollup(Range range) throws BlueDbException
BlueDbException
public SegmentManager<BlueKey> getSegmentManager()
public void reportReads(java.util.List<RollupTarget> rollupTargets)
reportReads
in interface Rollupable
public void reportWrites(java.util.List<RollupTarget> rollupTargets)
reportWrites
in interface Rollupable