|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.store.instantiated.InstantiatedIndex
@Deprecated public class InstantiatedIndex
Represented as a coupled graph of class instances, this all-in-memory index store implementation delivers search results up to a 100 times faster than the file-centric RAMDirectory at the cost of greater RAM consumption.
There are no read and write locks in this store.
InstantiatedIndexReader
InstantiatedIndexReader.isCurrent()
all the time
and InstantiatedIndexWriter
will attempt to update instances of the object graph in memory
at the same time as a searcher is reading from it.
Consider using InstantiatedIndex as if it was immutable.
Constructor Summary | |
---|---|
InstantiatedIndex()
Deprecated. Creates an empty instantiated index for you to fill with data using an InstantiatedIndexWriter . |
|
InstantiatedIndex(IndexReader sourceIndexReader)
Deprecated. Creates a new instantiated index that looks just like the index in a specific state as represented by a reader. |
|
InstantiatedIndex(IndexReader sourceIndexReader,
Set<String> fields)
Deprecated. Creates a new instantiated index that looks just like the index in a specific state as represented by a reader. |
Method Summary | |
---|---|
void |
close()
Deprecated. |
BitVector |
getDeletedDocuments()
Deprecated. |
InstantiatedDocument[] |
getDocumentsByNumber()
Deprecated. |
FieldInfos |
getFieldInfos()
Deprecated. |
Map<String,byte[]> |
getNormsByFieldNameAndDocumentNumber()
Deprecated. |
InstantiatedTerm[] |
getOrderedTerms()
Deprecated. |
Map<String,Map<String,InstantiatedTerm>> |
getTermsByFieldAndText()
Deprecated. |
long |
getVersion()
Deprecated. |
InstantiatedIndexReader |
indexReaderFactory()
Deprecated. |
InstantiatedIndexWriter |
indexWriterFactory(Analyzer analyzer,
boolean create)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstantiatedIndex()
InstantiatedIndexWriter
.
public InstantiatedIndex(IndexReader sourceIndexReader) throws IOException
sourceIndexReader
- the source index this new instantiated index will be copied from.
IOException
- if the source index is not single-segment, or when accessing the source.public InstantiatedIndex(IndexReader sourceIndexReader, Set<String> fields) throws IOException
sourceIndexReader
- the source index this new instantiated index will be copied from.fields
- fields to be added, or null for all
IOException
- if the source index is not single-segment, or when accessing the source.Method Detail |
---|
public FieldInfos getFieldInfos()
public InstantiatedIndexWriter indexWriterFactory(Analyzer analyzer, boolean create) throws IOException
IOException
public InstantiatedIndexReader indexReaderFactory() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
IOException
public Map<String,Map<String,InstantiatedTerm>> getTermsByFieldAndText()
public InstantiatedTerm[] getOrderedTerms()
public InstantiatedDocument[] getDocumentsByNumber()
public Map<String,byte[]> getNormsByFieldNameAndDocumentNumber()
public BitVector getDeletedDocuments()
public long getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |