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<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_MODE |
static ConfigNamespace |
SOLR_NS |
static ConfigOption<String> |
TTL_FIELD |
static ConfigOption<String> |
ZOOKEEPER_URL
SolrCloud Configuration
|
| Constructor and Description |
|---|
SolrIndex(Configuration config) |
public 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[]> 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 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 - Datatype to register for the keytx - enclosing transactionBackendExceptionpublic 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 String buildQueryFilter(Condition<TitanElement> condition, KeyInformation.StoreRetriever informations)
public 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 boolean supports(KeyInformation information, TitanPredicate titanPredicate)
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 IndexInformationCopyright © 2012–2016. All rights reserved.