public class TestMockIndexProvider extends Object implements IndexProvider
| Modifier and Type | Field and Description |
|---|---|
static ConfigOption<String> |
INDEX_BACKEND_PROXY |
static ConfigOption<Boolean> |
INDEX_MOCK_FAILADD |
REPLACEMENT_CHAR| Constructor and Description |
|---|
TestMockIndexProvider(Configuration config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckKeyValiditypublic static final ConfigOption<Boolean> INDEX_MOCK_FAILADD
public static final ConfigOption<String> INDEX_BACKEND_PROXY
public TestMockIndexProvider(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 Number queryAggregation(IndexQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx, Aggregation aggregation) throws BackendException
queryAggregation in interface IndexProviderBackendExceptionpublic Stream<RawQuery.Result<String>> query(RawQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
query 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 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 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 IndexInformationCopyright © 2012–2024. All rights reserved.