public class OracleIndexParameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BATCH_SIZE_PARAMETER
This constant denotes the parameter for the batch size used to force a flush over the index
|
static java.lang.String |
COMMIT_BATCH_SIZE_PARAMETER
This constant denotes the parameter for the commit size used to force a commit over the index
|
static java.lang.Integer |
LUCENE_ENGINE
This constant denotes the usage of a Lucene search engine
|
static int |
MAX_BATCH
This constant denotes the maximum batch size allowed
|
static java.lang.Integer |
MAX_COMMIT
This constant denotes the maximum commit size allowed
|
static int |
MAX_COMMIT_BATCH
This constant denotes the maximum commit size allowed
|
static java.lang.Integer |
MAX_CONNS
This constant denotes the maximum number of connections to the property graph used when indexing data
|
static java.lang.Integer |
MAX_WAIT_TIMEOUT
This constant the maximum write timeout to wait when retrying a write operation
|
static java.lang.String |
REINDEX_NUM_CONNS_PARAMETER
This constant denotes the parameter for the number of connections to the property graph used when indexing data
|
static java.lang.String |
SEARCH_ENGINE_PARAMETER
This constant denotes the parameter for the search engine used for text indexing and searching: Lucene or SolrCloud
|
static java.lang.Integer |
SOLR_ENGINE
This constant denotes the usage of a SolrCloud search engine
|
static java.lang.String |
WRITE_TIMEOUT_PARAMETER
This constant denotes the parameter for the timeout to wait when retrying a write operation
|
Constructor and Description |
---|
OracleIndexParameters()
Creates a new OracleIndexParameters object.
|
OracleIndexParameters(java.util.List<com.tinkerpop.blueprints.Parameter> parameters)
Creates a new OracleIndexParameters object from an initial set of parameters.
|
OracleIndexParameters(com.tinkerpop.blueprints.Parameter[] parameters)
Creates a new OracleIndexParameters object from an initial set of parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(com.tinkerpop.blueprints.Parameter parameter)
Adds a new parameter to this OracleIndexParameters object
|
static OracleIndexParameters |
buildFS(int numSubDirs, int reindexNumConns, int batchSize, int commitBatchSize, boolean differentiateDatatypes, java.lang.String dirname)
Creates a new OracleIndexParameters object from the set of parameters using Lucene engine.
|
static OracleIndexParameters |
buildFS(int numSubDirs, int reindexNumConns, int batchSize, int commitBatchSize, boolean differentiateDatatypes, java.lang.String[] dirnames)
Creates a new OracleIndexParameters object from the set of parameters using Lucene engine.
|
static OracleIndexParameters |
buildSolr(java.lang.String configName, java.lang.String solrServerURL, java.lang.String solrNodeSet, int zkTimeout, int numShards, int replicationFactor, int maxShardsPerNode, int reindexNumConns, int batchSize, int commitBatchSize, long writeTimeout)
Creates a new OracleIndexParameters object from the set of parameters using SolrCloud engine.
|
static com.tinkerpop.blueprints.Parameter[] |
defaultIndexParams()
Gets Oracle's default array of parameters defined for an index.
|
static java.util.List<com.tinkerpop.blueprints.Parameter> |
defaultIndexParamsAsList()
Gets Oracle's default list of parameters defined for an index.
|
com.tinkerpop.blueprints.Parameter[] |
getParameters()
Gets the index parameters associated to this object.
|
java.lang.String |
toString()
String utility to print out all index parameters.
|
public static final java.lang.String BATCH_SIZE_PARAMETER
public static final java.lang.String COMMIT_BATCH_SIZE_PARAMETER
public static final java.lang.Integer LUCENE_ENGINE
public static final int MAX_BATCH
public static final java.lang.Integer MAX_COMMIT
public static final int MAX_COMMIT_BATCH
public static final java.lang.Integer MAX_CONNS
public static final java.lang.Integer MAX_WAIT_TIMEOUT
public static final java.lang.String REINDEX_NUM_CONNS_PARAMETER
public static final java.lang.String SEARCH_ENGINE_PARAMETER
public static final java.lang.Integer SOLR_ENGINE
public static final java.lang.String WRITE_TIMEOUT_PARAMETER
public OracleIndexParameters()
public OracleIndexParameters(java.util.List<com.tinkerpop.blueprints.Parameter> parameters)
public OracleIndexParameters(com.tinkerpop.blueprints.Parameter[] parameters)
public void addParameter(com.tinkerpop.blueprints.Parameter parameter)
parameter
- a Parameter
objectpublic static OracleIndexParameters buildFS(int numSubDirs, int reindexNumConns, int batchSize, int commitBatchSize, boolean differentiateDatatypes, java.lang.String dirname)
numSubDirs
- the number of sub-directories to store the indexreindexNumConns
- the number of connections to use when dealing with re-indexing operationsbatchSize
- the batch size to use when indexing data. This reduce the round trip operations over the Lucene indexcommitBatchSize
- the commit batch size to use when indexing data. This reduce the number of commit operations over the Lucene indexdifferentiateDatatypes
- if true, data types will be used when indexing data into the Lucene indexdirname
- the directory name where the Lucene index is stored. All sub-directories will be stored under this file-path.public static OracleIndexParameters buildFS(int numSubDirs, int reindexNumConns, int batchSize, int commitBatchSize, boolean differentiateDatatypes, java.lang.String[] dirnames)
numSubDirs
- the number of sub-directories to store the indexreindexNumConns
- the number of connections to use when dealing with re-indexing operationsbatchSize
- the batch size to use when indexing data. This reduce the round trip operations over the Lucene indexcommitBatchSize
- the commit batch size to use when indexing data. This reduce the number of commit operations over the Lucene indexdifferentiateDatatypes
- if true, data types will be used when indexing data into the Lucene indexdirnames
- an array of directory names where the Lucene index will be stored. Sub-directories will be distributed among these file-paths.public static OracleIndexParameters buildSolr(java.lang.String configName, java.lang.String solrServerURL, java.lang.String solrNodeSet, int zkTimeout, int numShards, int replicationFactor, int maxShardsPerNode, int reindexNumConns, int batchSize, int commitBatchSize, long writeTimeout)
configName
- the configuration name used to create the SOLR cloud collection where the index will be storedsolrServerURL
- the SolrCloud server URL used to connect to the SolrCloud service. E.g., http://localhost:2181/solrsolrNodeSet
- a string representing the node set used to store the SolrCloud collection. E.g. node01:8983_solr,node02:8983_solr,node03:8983_solrzkTimeout
- a positive integer representing the timeout (in seconds) used to wait for a Zookeeper connection.numShards
- a positive integer representing the number of shards used in the SolrCloud collection.replicationFactor
- a positive integer representing the replication factor used in the SolrCloud collection.maxShardsPerNode
- a positive integer representing the maximum shards per node used in the SolrCloud collection.reindexNumConns
- the number of connections to use when dealing with re-indexing operationsbatchSize
- the batch size to use when indexing data. This reduce the round trip operations over the indexcommitBatchSize
- the commit batch size to use when indexing data. This reduce the number of commit operations over the indexwriteTimeout
- the timeout (in secs) that is allowed to wait for a index write operation.public static final com.tinkerpop.blueprints.Parameter[] defaultIndexParams()
public static java.util.List<com.tinkerpop.blueprints.Parameter> defaultIndexParamsAsList()
public final com.tinkerpop.blueprints.Parameter[] getParameters()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.