public class LuceneIndex extends Object implements IndexProvider
| Constructor and Description |
|---|
LuceneIndex(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
BaseTransactionConfigurable |
beginTransaction(BaseTransactionConfig config) |
void |
clearStorage() |
void |
close() |
IndexFeatures |
getFeatures() |
String |
mapKey2Field(String key,
KeyInformation information) |
void |
mutate(Map<String,Map<String,IndexMutation>> mutations,
KeyInformation.IndexRetriever informations,
BaseTransaction tx) |
List<String> |
query(IndexQuery query,
KeyInformation.IndexRetriever informations,
BaseTransaction tx) |
Iterable<RawQuery.Result<String>> |
query(RawQuery query,
KeyInformation.IndexRetriever informations,
BaseTransaction tx) |
void |
register(String store,
String key,
KeyInformation information,
BaseTransaction tx) |
void |
restore(Map<String,Map<String,List<IndexEntry>>> documents,
KeyInformation.IndexRetriever informations,
BaseTransaction tx) |
boolean |
supports(KeyInformation information) |
boolean |
supports(KeyInformation information,
TitanPredicate titanPredicate) |
public LuceneIndex(Configuration config)
public void register(String store, String key, KeyInformation information, BaseTransaction tx) throws BackendException
register in interface IndexProviderBackendExceptionpublic void mutate(Map<String,Map<String,IndexMutation>> mutations, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws BackendException
mutate in interface IndexProviderBackendExceptionpublic void restore(Map<String,Map<String,List<IndexEntry>>> documents, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws BackendException
restore in interface IndexProviderBackendExceptionpublic List<String> query(IndexQuery query, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws BackendException
query in interface IndexProviderBackendExceptionpublic Iterable<RawQuery.Result<String>> query(RawQuery query, KeyInformation.IndexRetriever informations, BaseTransaction tx) throws BackendException
query in interface IndexProviderBackendExceptionpublic BaseTransactionConfigurable beginTransaction(BaseTransactionConfig config) throws BackendException
beginTransaction in interface IndexProviderBackendExceptionpublic boolean supports(KeyInformation information, TitanPredicate titanPredicate)
supports in interface IndexInformationpublic boolean supports(KeyInformation information)
supports in interface IndexInformationpublic String mapKey2Field(String key, KeyInformation information)
mapKey2Field in interface IndexInformationpublic IndexFeatures getFeatures()
getFeatures in interface IndexInformationpublic void close()
throws BackendException
close in interface IndexProviderBackendExceptionpublic void clearStorage()
throws BackendException
clearStorage in interface IndexProviderBackendExceptionCopyright © 2012–2016. All rights reserved.