public class SolrIndex extends Object implements IndexProvider
| Modifier and Type | Field and Description |
|---|---|
static ConfigOption<Boolean> |
DYNAMIC_FIELDS |
static ConfigOption<Boolean> |
HTTP_ALLOW_COMPRESSION |
static ConfigOption<Integer> |
HTTP_CONNECTION_TIMEOUT |
static ConfigOption<Integer> |
HTTP_GLOBAL_MAX_CONNECTIONS |
static ConfigOption<Integer> |
HTTP_MAX_CONNECTIONS_PER_HOST |
static ConfigOption<String[]> |
HTTP_URLS
HTTP Configuration
|
static ConfigOption<Boolean> |
KERBEROS_ENABLED
Security Configuration
|
static ConfigOption<String[]> |
KEY_FIELD_NAMES |
static ConfigOption<Integer> |
MAX_SHARDS_PER_NODE |
static ConfigOption<Integer> |
NUM_SHARDS |
static ConfigOption<Integer> |
REPLICATION_FACTOR |
static ConfigOption<String> |
SOLR_DEFAULT_CONFIG |
static ConfigOption<String> |
SOLR_MODE |
static ConfigNamespace |
SOLR_NS |
static ConfigOption<String> |
TTL_FIELD |
static ConfigOption<Boolean> |
WAIT_SEARCHER |
static ConfigOption<String[]> |
ZOOKEEPER_URL
SolrCloud Configuration
|
REPLACEMENT_CHAR| Constructor and Description |
|---|
SolrIndex(Configuration config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckKeyValiditypublic static final ConfigNamespace SOLR_NS
public static final ConfigOption<String> SOLR_MODE
public static final ConfigOption<Boolean> DYNAMIC_FIELDS
public static final ConfigOption<String[]> KEY_FIELD_NAMES
public static final ConfigOption<String> TTL_FIELD
public static final ConfigOption<String[]> ZOOKEEPER_URL
public static final ConfigOption<Integer> NUM_SHARDS
public static final ConfigOption<Integer> MAX_SHARDS_PER_NODE
public static final ConfigOption<Integer> REPLICATION_FACTOR
public static final ConfigOption<String> SOLR_DEFAULT_CONFIG
public static final ConfigOption<String[]> HTTP_URLS
public static final ConfigOption<Integer> HTTP_CONNECTION_TIMEOUT
public static final ConfigOption<Boolean> HTTP_ALLOW_COMPRESSION
public static final ConfigOption<Integer> HTTP_MAX_CONNECTIONS_PER_HOST
public static final ConfigOption<Integer> HTTP_GLOBAL_MAX_CONNECTIONS
public static final ConfigOption<Boolean> WAIT_SEARCHER
public static final ConfigOption<Boolean> KERBEROS_ENABLED
public SolrIndex(Configuration config) throws BackendException
BackendExceptionpublic void register(String store, String key, KeyInformation information, BaseTransaction tx) throws BackendException
register in interface IndexProviderstore - Index storekey - New key to registerinformation - data type to register for the keytx - enclosing transactionBackendException - in case an exception is thrown when
creating a collection.public 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 Long queryCount(IndexQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
queryCount in interface IndexProviderBackendExceptionpublic Long totals(RawQuery query, KeyInformation.IndexRetriever information, BaseTransaction tx) throws BackendException
totals in interface IndexProviderBackendExceptionpublic String buildQueryFilter(Condition<JanusGraphElement> condition, KeyInformation.StoreRetriever information)
public BaseTransactionConfigurable beginTransaction(BaseTransactionConfig config)
beginTransaction in interface IndexProviderpublic void close()
throws BackendException
close in interface IndexProviderBackendExceptionpublic void clearStorage()
throws BackendException
clearStorage in interface IndexProviderBackendExceptionpublic boolean supports(KeyInformation information, JanusGraphPredicate predicate)
supports in interface IndexInformationpublic boolean supports(KeyInformation information)
supports in interface IndexInformationpublic String mapKey2Field(String key, KeyInformation keyInfo)
mapKey2Field in interface IndexInformationpublic IndexFeatures getFeatures()
getFeatures in interface IndexInformationpublic boolean exists()
throws BackendException
exists in interface IndexProviderBackendExceptionCopyright © 2012–2023. All rights reserved.