public class LuceneIndexParameters extends OracleIndexParameters
Modifier and Type | Field and Description |
---|---|
static String |
ANALYZER_PARAMETER |
static String |
DATATYPES_PARAMETER |
static String |
LOCATION_PARAMETER |
static String |
LUCENE_DIRECTORY_TYPE_PARAMETER |
static int |
MAX_NUM_SUBDIRS |
static String |
NUM_SUBDIRS_PARAMETER |
static String |
POOL_PARAMETER |
static String |
VERSION_PARAMETER |
BATCH_SIZE_PARAMETER, COMMIT_BATCH_SIZE_PARAMETER, LUCENE_ENGINE, MAX_BATCH, MAX_COMMIT, MAX_COMMIT_BATCH, MAX_CONNS, MAX_WAIT_TIMEOUT, REINDEX_NUM_CONNS_PARAMETER, SEARCH_ENGINE_PARAMETER, SOLR_ENGINE, WRITE_TIMEOUT_PARAMETER
Constructor and Description |
---|
LuceneIndexParameters()
Creates a new OracleIndexParameters object.
|
LuceneIndexParameters(List<Parameter> parameters)
Creates a new OracleIndexParams object from an initial set of parameters.
|
LuceneIndexParameters(Parameter[] parameters)
Creates a new OracleIndexParams object from an initial set of parameters.
|
Modifier and Type | Method and Description |
---|---|
static LuceneIndexParameters |
createInstance(int numSubDirs, int reindexNumConns, int batchSize, int commitBatchSize, boolean differentiateDatatypes, String dirname)
Creates a new OracleIndexParams object from the set of parameters.
|
static LuceneIndexParameters |
createInstance(int numSubDirs, int reindexNumConns, int batchSize, int commitBatchSize, boolean differentiateDatatypes, String[] dirnames)
Creates a new OracleIndexParams object from the set of parameters.
|
static List<Parameter> |
defaultIndexParamsAsList()
Gets Oracle's default list of parameters defined for an index.
|
static OracleDirectory.DirectoryType |
getDirectoryType(int directoryType)
Gets the DirectoryType object associated to the specified identifier.
|
static int |
getDirectoryTypeAsInt(OracleDirectory.DirectoryType directoryType)
Gets the identifier associated to the specified DirectoryType.
|
static LuceneIndexParameters |
getInstance(Parameter[] parameters)
Creates a new OracleIndexParameters object from an initial set of parameters.
|
static Object |
getVersion(String szVersion) |
static String[] |
parseLocation(String szLocation) |
static boolean |
useDatatypes(int useDatatypes) |
addParameter, buildFS, buildFS, buildSolr, defaultIndexParams, getParameters, toString
public static final String ANALYZER_PARAMETER
public static final String DATATYPES_PARAMETER
public static final String LOCATION_PARAMETER
public static final String LUCENE_DIRECTORY_TYPE_PARAMETER
public static final int MAX_NUM_SUBDIRS
public static final String NUM_SUBDIRS_PARAMETER
public static final String POOL_PARAMETER
public static final String VERSION_PARAMETER
public LuceneIndexParameters()
public LuceneIndexParameters(List<Parameter> parameters)
public LuceneIndexParameters(Parameter[] parameters)
public static LuceneIndexParameters createInstance(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 LuceneIndexParameters createInstance(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 List<Parameter> defaultIndexParamsAsList()
public static OracleDirectory.DirectoryType getDirectoryType(int directoryType)
directoryType
- the directory type identifier.OracleDirectory.DirectoryType
object.public static int getDirectoryTypeAsInt(OracleDirectory.DirectoryType directoryType)
directoryType
- a OracleDirectory.DirectoryType
object.public static LuceneIndexParameters getInstance(Parameter[] parameters)
public static final boolean useDatatypes(int useDatatypes)
Copyright © 2015 Oracle and/or its afflilates. All Rights Reserved.