public class LuceneParameters extends IndexParametersBase
Constructor and Description |
---|
LuceneParameters(com.tinkerpop.blueprints.Parameter[] indexParams, OraclePropertyGraphBase opg)
Creates a new LuceneParameters object from the given array of parameters and the property graph associated.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Gets the Lucene Analyzer associated to this index
|
OracleDirectory.DirectoryType |
getDirectoryType()
Gets the Directory Type used in this index.
|
java.lang.String[] |
getLocation()
Gets the location(s) of the directories where the index will be stored.
|
java.lang.String |
getLocationsAsString()
Gets the location of the directory associated to this index.
|
int |
getNumSubDirs()
Gets the number of directories used to store the index.
|
org.apache.lucene.util.Version |
getVersion()
Gets the Lucene Version to use for indexes.
|
boolean |
useDatatypes()
Validates if values in Vertex/Edge properties should be indexed as Datatype fields or as TextFields.
|
getBatchSize, getCommitBatchSize, getNumConnections, getParametersMap, getWriteTimeout
public LuceneParameters(com.tinkerpop.blueprints.Parameter[] indexParams, OraclePropertyGraphBase opg)
indexParams
- the array of parameters used to create a text index. If NULL, the parameters will be obtained from the default parameters of the property graph instance using m_opg.getDefaultIndexParameters().opg
- an OraclePropertyGraphBase
instance.public org.apache.lucene.analysis.Analyzer getAnalyzer()
Analyzer
object.public OracleDirectory.DirectoryType getDirectoryType()
OracleDirectory.DirectoryType
object. The default value is set to DirectoryType.FS_DIRECTORY.public java.lang.String[] getLocation()
public java.lang.String getLocationsAsString()
public int getNumSubDirs()
public org.apache.lucene.util.Version getVersion()
Version
object specifying the Lucene version to use for indexes. The default value is set to Version.LUCENE_45.public boolean useDatatypes()
Copyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.