public class IndexManager<T extends java.io.Serializable>
extends java.lang.Object
Constructor and Description |
---|
IndexManager(BlueCollectionOnDisk<T> collection,
java.nio.file.Path collectionPath) |
Modifier and Type | Method and Description |
---|---|
void |
addToAllIndexes(BlueKey key,
T value) |
void |
addToAllIndexes(java.util.Collection<IndividualChange<T>> changes) |
<K extends ValueKey> |
getIndex(java.lang.String indexName,
java.lang.Class<K> keyType) |
<K extends ValueKey> |
getOrCreate(java.lang.String indexName,
java.lang.Class<K> keyType,
KeyExtractor<K,T> keyExtractor) |
BlueIndexOnDisk<?,T> |
getUntypedIndex(java.lang.String indexName) |
void |
removeFromAllIndexes(BlueKey key,
T value) |
public IndexManager(BlueCollectionOnDisk<T> collection, java.nio.file.Path collectionPath) throws BlueDbException
BlueDbException
public <K extends ValueKey> BlueIndex<K,T> getOrCreate(java.lang.String indexName, java.lang.Class<K> keyType, KeyExtractor<K,T> keyExtractor) throws BlueDbException
BlueDbException
public BlueIndexOnDisk<?,T> getUntypedIndex(java.lang.String indexName) throws BlueDbException
BlueDbException
public <K extends ValueKey> BlueIndex<K,T> getIndex(java.lang.String indexName, java.lang.Class<K> keyType) throws BlueDbException
BlueDbException
public void removeFromAllIndexes(BlueKey key, T value) throws BlueDbException
BlueDbException
public void addToAllIndexes(BlueKey key, T value) throws BlueDbException
BlueDbException
public void addToAllIndexes(java.util.Collection<IndividualChange<T>> changes) throws BlueDbException
BlueDbException