public class OracleIndexParameters extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BATCH_SIZE_PARAMETER
This constant denotes the parameter for the batch size used to force a flush over the index
|
static String |
COMMIT_BATCH_SIZE_PARAMETER
This constant denotes the parameter for the commit size used to force a commit over the index
|
static 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 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 Integer |
MAX_CONNS
This constant denotes the maximum number of connections to the property graph used when indexing data
|
static Integer |
MAX_WAIT_TIMEOUT
This constant the maximum write timeout to wait when retrying a write operation
|
static String |
REINDEX_NUM_CONNS_PARAMETER
This constant denotes the parameter for the number of connections to the property graph used when indexing data
|
static String |
SEARCH_ENGINE_PARAMETER
This constant denotes the parameter for the search engine used for text indexing and searching: Lucene or SolrCloud
|
static Integer |
SOLR_ENGINE
This constant denotes the usage of a SolrCloud search engine
|
static 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(List<Parameter> parameters)
Creates a new OracleIndexParameters object from an initial set of parameters.
|
OracleIndexParameters(Parameter[] parameters)
Creates a new OracleIndexParameters object from an initial set of parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Parameter parameter)
Adds a new parameter to this OracleIndexParameters object
|
static OracleIndexParameters |
buildFS(int numSubDirs, int reindexNumConns, int batchSize, int commitBatchSize, boolean differentiateDatatypes, 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, String[] dirnames)
Creates a new OracleIndexParameters object from the set of parameters using Lucene engine.
|
static OracleIndexParameters |
buildSolr(String configName, String solrServerURL, 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 Parameter[] |
defaultIndexParams()
Gets Oracle's default array of parameters defined for an index.
|
static List<Parameter> |
defaultIndexParamsAsList()
Gets Oracle's default list of parameters defined for an index.
|
Parameter[] |
getParameters()
Gets the index parameters associated to this object.
|
String |
toString()
String utility to print out all index parameters.
|
public static final String BATCH_SIZE_PARAMETER
public static final String COMMIT_BATCH_SIZE_PARAMETER
public static final Integer LUCENE_ENGINE
public static final int MAX_BATCH
public static final Integer MAX_COMMIT
public static final int MAX_COMMIT_BATCH
public static final Integer MAX_CONNS
public static final Integer MAX_WAIT_TIMEOUT
public static final String REINDEX_NUM_CONNS_PARAMETER
public static final String SEARCH_ENGINE_PARAMETER
public static final Integer SOLR_ENGINE
public static final String WRITE_TIMEOUT_PARAMETER
public OracleIndexParameters()
public OracleIndexParameters(List<Parameter> parameters)
public OracleIndexParameters(Parameter[] parameters)
public void addParameter(Parameter parameter)
parameter
- a Parameter
objectpublic static OracleIndexParameters buildFS(int numSubDirs, int reindexNumConns, int batchSize, int commitBatchSize, boolean differentiateDatatypes, 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, 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(String configName, String solrServerURL, 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 Parameter[] defaultIndexParams()
public static List<Parameter> defaultIndexParamsAsList()
public final Parameter[] getParameters()
Copyright © 2015 Oracle and/or its afflilates. All Rights Reserved.