public class LuceneIndex extends Object implements IndexProvider
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_GEO_DIST_ERROR_PCT
Default measure of shape precision used when creating the prefix tree.
|
static int |
DEFAULT_GEO_MAX_LEVELS
Default tree levels used when creating the prefix tree.
|
REPLACEMENT_CHAR| Constructor and Description |
|---|
LuceneIndex(Configuration config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckKeyValiditypublic static final int DEFAULT_GEO_MAX_LEVELS
public static final double DEFAULT_GEO_DIST_ERROR_PCT
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 information, BaseTransaction tx) throws BackendException
mutate in interface IndexProviderBackendExceptionpublic void restore(Map<String,Map<String,List<IndexEntry>>> documents, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
restore in interface IndexProviderBackendExceptionpublic Stream<String> query(IndexQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
query in interface IndexProviderBackendExceptionpublic Stream<RawQuery.Result<String>> query(RawQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
query in interface IndexProviderBackendExceptionpublic Number queryAggregation(IndexQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx, Aggregation aggregation) throws BackendException
queryAggregation in interface IndexProviderBackendExceptionpublic Long totals(RawQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
totals in interface IndexProviderBackendExceptionpublic BaseTransactionConfigurable beginTransaction(BaseTransactionConfig config) throws BackendException
beginTransaction in interface IndexProviderBackendExceptionpublic boolean supports(KeyInformation information, JanusGraphPredicate janusgraphPredicate)
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 IndexProviderBackendExceptionpublic void clearStore(String storeName) throws BackendException
clearStore in interface IndexProviderBackendExceptionpublic boolean exists()
throws BackendException
exists in interface IndexProviderBackendExceptionCopyright © 2012–2023. All rights reserved.