public interface IndexProvider extends IndexInformation
| Modifier and Type | Method and Description |
|---|---|
BaseTransactionConfigurable |
beginTransaction(BaseTransactionConfig config)
Returns a transaction handle for a new index transaction.
|
void |
clearStorage()
Clears the index and removes all entries in all stores.
|
void |
close()
Closes the index
|
void |
mutate(Map<String,Map<String,IndexMutation>> mutations,
KeyInformation.IndexRetriever informations,
BaseTransaction tx)
Mutates the index (adds and removes fields or entire documents)
|
List<String> |
query(IndexQuery query,
KeyInformation.IndexRetriever informations,
BaseTransaction tx)
Executes the given query against the index.
|
Iterable<RawQuery.Result<String>> |
query(RawQuery query,
KeyInformation.IndexRetriever informations,
BaseTransaction tx)
Executes the given raw query against the index
|
void |
register(String store,
String key,
KeyInformation information,
BaseTransaction tx)
This method registers a new key for the specified index store with the given data type.
|
supports, supportsvoid register(String store, String key, KeyInformation information, BaseTransaction tx) throws StorageException
store - Index storekey - New key to registerinformation - Information on the key to registertx - enclosing transactionStorageExceptionvoid mutate(Map<String,Map<String,IndexMutation>> mutations, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws StorageException
mutations - Updates to the index. First map contains all the mutations for each store. The inner map contains
all changes for each document in an IndexMutation.informations - Information on the keys used in the mutation accessible through KeyInformation.IndexRetriever.tx - Enclosing transactionStorageExceptionIndexMutationList<String> query(IndexQuery query, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws StorageException
query - Query to executeinformations - Information on the keys used in the query accessible through KeyInformation.IndexRetriever.tx - Enclosing transactionStorageExceptionIndexQueryIterable<RawQuery.Result<String>> query(RawQuery query, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws StorageException
query - Query to executeinformations - Information on the keys used in the query accessible through KeyInformation.IndexRetriever.tx - Enclosing transactionStorageExceptionRawQueryBaseTransactionConfigurable beginTransaction(BaseTransactionConfig config) throws StorageException
StorageExceptionvoid close()
throws StorageException
StorageExceptionvoid clearStorage()
throws StorageException
StorageExceptionCopyright © 2012–2014. All rights reserved.