public class LuceneIndexUtils extends OracleIndexUtils
Constructor and Description |
---|
LuceneIndexUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
appendDTToValue(java.lang.String value, java.lang.Class dtClass)
Appends the value's data type PREFIX to the specified key.
|
static org.apache.lucene.search.SearcherManager |
getSearcherManager(org.apache.lucene.store.Directory directory, org.apache.lucene.search.SearcherFactory searchFactory)
Gets the SearcherManager object that executes read operations over the index stored in the specified directory.
|
static void |
quietlyCloseOracleIndexWriters(OracleIndexWriter[] indexWriters)
Quietly close the specified index writers.
|
appendDTToKey, getDatatypeClass, getDatatypePrefix, getValueAsString
public static java.lang.String appendDTToValue(java.lang.String value, java.lang.Class dtClass)
value
- the valuedtClass
- the value's data type classpublic static org.apache.lucene.search.SearcherManager getSearcherManager(org.apache.lucene.store.Directory directory, org.apache.lucene.search.SearcherFactory searchFactory) throws java.io.IOException
directory
- a Directory
object managing the index data for a specific subdirectory.searchFactory
- a Lucene SearcherFactory
object.SearcherManager
object.java.io.IOException
public static void quietlyCloseOracleIndexWriters(OracleIndexWriter[] indexWriters)
indexWriters
- an array of OracleIndexWriter
object.Copyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.