Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.index.memory |
High-performance single-document main memory Apache Lucene fulltext search index.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.uninverting |
Support for creating docvalues on-the-fly from the inverted index at runtime.
|
Modifier and Type | Class and Description |
---|---|
class |
CodecReader
LeafReader implemented by codec APIs.
|
static class |
ExitableDirectoryReader.ExitableFilterAtomicReader
Wrapper class for another FilterAtomicReader.
|
class |
FilterCodecReader
A
FilterCodecReader contains another CodecReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality. |
class |
FilterLeafReader
A
FilterLeafReader contains another LeafReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality. |
(package private) class |
MergeReaderWrapper
this is a hack to make SortingMP fast!
|
private static class |
MultiPassIndexSplitter.FakeDeleteLeafIndexReader |
class |
ParallelLeafReader
An
LeafReader which reads multiple, parallel indexes. |
private static class |
PKIndexSplitter.DocumentFilteredLeafIndexReader |
class |
SegmentReader
IndexReader implementation over a single segment.
|
class |
SlowCompositeReaderWrapper
Deprecated.
This will be removed in Lucene 7.0.
|
class |
SortingLeafReader
An
LeafReader which supports sorting documents by a given
Sort . |
Modifier and Type | Field and Description |
---|---|
protected LeafReader |
FilterLeafReader.in
The underlying LeafReader.
|
private LeafReader[] |
ParallelLeafReader.parallelReaders |
private LeafReader |
LeafReaderContext.reader |
(package private) LeafReader |
SortingMergePolicy.SortingOneMerge.sortedView |
private LeafReader[] |
ParallelLeafReader.storedFieldsReaders |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<LeafReader> |
ParallelLeafReader.completeReaderSet |
private java.util.SortedMap<java.lang.String,LeafReader> |
ParallelLeafReader.fieldToReader |
private java.util.SortedMap<java.lang.String,LeafReader> |
ParallelLeafReader.tvFieldToReader |
Modifier and Type | Method and Description |
---|---|
LeafReader |
FilterLeafReader.getDelegate()
Returns the wrapped
LeafReader . |
LeafReader[] |
ParallelLeafReader.getParallelReaders()
Returns the
LeafReader s that were passed on init. |
private static LeafReader[] |
ParallelCompositeReader.prepareLeafReaders(CompositeReader[] readers,
CompositeReader[] storedFieldsReaders) |
LeafReader |
LeafReaderContext.reader() |
static LeafReader |
FilterLeafReader.unwrap(LeafReader reader)
Get the wrapped instance by
reader as long as this reader is
an instance of FilterLeafReader . |
static LeafReader |
SlowCompositeReaderWrapper.wrap(IndexReader reader)
Deprecated.
This method is sugar for getting an
LeafReader from
an IndexReader of any kind. |
LeafReader |
ExitableDirectoryReader.ExitableSubReaderWrapper.wrap(LeafReader reader) |
abstract LeafReader |
FilterDirectoryReader.SubReaderWrapper.wrap(LeafReader reader)
Wrap one of the parent DirectoryReader's subreaders
|
static LeafReader |
SortingLeafReader.wrap(LeafReader reader,
Sort sort)
Return a sorted view of
reader according to the order
defined by sort . |
(package private) static LeafReader |
SortingLeafReader.wrap(LeafReader reader,
Sorter.DocMap docMap)
Expert: same as
SortingLeafReader.wrap(org.apache.lucene.index.LeafReader, Sort) but operates directly on a Sorter.DocMap . |
private LeafReader[] |
FilterDirectoryReader.SubReaderWrapper.wrap(java.util.List<? extends LeafReader> readers) |
Modifier and Type | Method and Description |
---|---|
private static void |
DocValues.checkField(LeafReader in,
java.lang.String field,
DocValuesType... expected) |
static BinaryDocValues |
DocValues.getBinary(LeafReader reader,
java.lang.String field)
Returns BinaryDocValues for the field, or
DocValues.emptyBinary() if it has none. |
static Bits |
DocValues.getDocsWithField(LeafReader reader,
java.lang.String field)
Returns Bits for the field, or
Bits matching nothing if it has none. |
static NumericDocValues |
DocValues.getNumeric(LeafReader reader,
java.lang.String field)
Returns NumericDocValues for the field, or
DocValues.emptyNumeric() if it has none. |
private static java.lang.String |
SortingMergePolicy.getSortDescription(LeafReader reader) |
static SortedDocValues |
DocValues.getSorted(LeafReader reader,
java.lang.String field)
Returns SortedDocValues for the field, or
DocValues.emptySorted() if it has none. |
static SortedNumericDocValues |
DocValues.getSortedNumeric(LeafReader reader,
java.lang.String field)
Returns SortedNumericDocValues for the field, or
DocValues.emptySortedNumeric(int) if it has none. |
static SortedSetDocValues |
DocValues.getSortedSet(LeafReader reader,
java.lang.String field)
Returns SortedSetDocValues for the field, or
DocValues.emptySortedSet() if it has none. |
static boolean |
SortingMergePolicy.isSorted(LeafReader reader,
Sort sort)
Returns
true if the given reader is sorted by the
sort given. |
private static DocValuesProducer |
SlowCodecReaderWrapper.readerToDocValuesProducer(LeafReader reader) |
private static FieldsProducer |
SlowCodecReaderWrapper.readerToFieldsProducer(LeafReader reader) |
private static NormsProducer |
SlowCodecReaderWrapper.readerToNormsProducer(LeafReader reader) |
private static StoredFieldsReader |
SlowCodecReaderWrapper.readerToStoredFieldsReader(LeafReader reader) |
private static TermVectorsReader |
SlowCodecReaderWrapper.readerToTermVectorsReader(LeafReader reader) |
(package private) Sorter.DocMap |
Sorter.sort(LeafReader reader)
Returns a mapping from the old document ID to its new location in the
sorted index.
|
static LeafReader |
FilterLeafReader.unwrap(LeafReader reader)
Get the wrapped instance by
reader as long as this reader is
an instance of FilterLeafReader . |
abstract void |
IndexWriter.IndexReaderWarmer.warm(LeafReader reader)
Invoked on the
LeafReader for the newly
merged segment, before that segment is made visible
to near-real-time readers. |
void |
SimpleMergedSegmentWarmer.warm(LeafReader reader) |
LeafReader |
ExitableDirectoryReader.ExitableSubReaderWrapper.wrap(LeafReader reader) |
abstract LeafReader |
FilterDirectoryReader.SubReaderWrapper.wrap(LeafReader reader)
Wrap one of the parent DirectoryReader's subreaders
|
static CodecReader |
SlowCodecReaderWrapper.wrap(LeafReader reader)
Returns a
CodecReader view of reader. |
static LeafReader |
SortingLeafReader.wrap(LeafReader reader,
Sort sort)
Return a sorted view of
reader according to the order
defined by sort . |
(package private) static LeafReader |
SortingLeafReader.wrap(LeafReader reader,
Sorter.DocMap docMap)
Expert: same as
SortingLeafReader.wrap(org.apache.lucene.index.LeafReader, Sort) but operates directly on a Sorter.DocMap . |
Modifier and Type | Method and Description |
---|---|
static DirectoryReader |
StandardDirectoryReader.open(Directory directory,
SegmentInfos infos,
java.util.List<? extends LeafReader> oldReaders)
This constructor is only used for
StandardDirectoryReader.doOpenIfChanged(SegmentInfos) , as well as NRT replication. |
private LeafReader[] |
FilterDirectoryReader.SubReaderWrapper.wrap(java.util.List<? extends LeafReader> readers) |
Constructor and Description |
---|
DirectoryReader(Directory directory,
LeafReader[] segmentReaders)
Expert: Constructs a
DirectoryReader on the given subReaders. |
ExitableFilterAtomicReader(LeafReader in,
QueryTimeout queryTimeout)
Constructor
|
FilterLeafReader(LeafReader in)
Construct a FilterLeafReader based on the specified base reader.
|
LeafReaderContext(CompositeReaderContext parent,
LeafReader reader,
int ord,
int docBase,
int leafOrd,
int leafDocBase)
Creates a new
LeafReaderContext |
LeafReaderContext(LeafReader leafReader) |
ParallelLeafReader(boolean closeSubReaders,
LeafReader... readers)
Create a ParallelLeafReader based on the provided
readers.
|
ParallelLeafReader(boolean closeSubReaders,
LeafReader[] readers,
LeafReader[] storedFieldsReaders)
Expert: create a ParallelLeafReader based on the provided
readers and storedFieldReaders; when a document is
loaded, only storedFieldsReaders will be used.
|
ParallelLeafReader(boolean closeSubReaders,
LeafReader[] readers,
LeafReader[] storedFieldsReaders)
Expert: create a ParallelLeafReader based on the provided
readers and storedFieldReaders; when a document is
loaded, only storedFieldsReaders will be used.
|
ParallelLeafReader(LeafReader... readers)
Create a ParallelLeafReader based on the provided
readers; auto-closes the given readers on
IndexReader.close() . |
SortingLeafReader(LeafReader in,
Sorter.DocMap docMap) |
StandardDirectoryReader(Directory directory,
LeafReader[] readers,
IndexWriter writer,
SegmentInfos sis,
boolean applyAllDeletes,
boolean writeAllDeletes)
called only from static open() methods
|
Modifier and Type | Class and Description |
---|---|
private class |
MemoryIndex.MemoryIndexReader
Search support for Lucene framework integration; implements all methods
required by the Lucene IndexReader contracts.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
PhraseQuery.PhraseWeight.termNotInReader(LeafReader reader,
Term term) |
private boolean |
TermQuery.TermWeight.termNotInReader(LeafReader reader,
Term term) |
Modifier and Type | Class and Description |
---|---|
class |
TermVectorLeafReader
Wraps a Terms with a
LeafReader , typically from term vectors. |
(package private) static class |
WeightedSpanTermExtractor.DelegatingLeafReader |
Modifier and Type | Field and Description |
---|---|
private LeafReader |
WeightedSpanTermExtractor.internalReader |
Constructor and Description |
---|
DelegatingLeafReader(LeafReader in) |
Modifier and Type | Method and Description |
---|---|
R |
DocValuesTermsCollector.Function.apply(LeafReader t) |
Modifier and Type | Class and Description |
---|---|
class |
UninvertingReader
Deprecated.
This will be removed in Lucene 7.0.
|
Modifier and Type | Field and Description |
---|---|
(package private) LeafReader |
DocTermOrds.Iterator.reader |
Modifier and Type | Method and Description |
---|---|
protected abstract Accountable |
FieldCacheImpl.Cache.createValue(LeafReader reader,
FieldCacheImpl.CacheKey key,
boolean setDocsWithField) |
protected FieldCacheImpl.BitsEntry |
FieldCacheImpl.DocsWithFieldCache.createValue(LeafReader reader,
FieldCacheImpl.CacheKey key,
boolean setDocsWithField) |
protected Accountable |
FieldCacheImpl.LongCache.createValue(LeafReader reader,
FieldCacheImpl.CacheKey key,
boolean setDocsWithField) |
protected Accountable |
FieldCacheImpl.SortedDocValuesCache.createValue(LeafReader reader,
FieldCacheImpl.CacheKey key,
boolean setDocsWithField) |
protected Accountable |
FieldCacheImpl.BinaryDocValuesCache.createValue(LeafReader reader,
FieldCacheImpl.CacheKey key,
boolean setDocsWithField) |
protected Accountable |
FieldCacheImpl.DocTermOrdsCache.createValue(LeafReader reader,
FieldCacheImpl.CacheKey key,
boolean setDocsWithField) |
private FieldCacheImpl.BitsEntry |
FieldCacheImpl.DocsWithFieldCache.createValuePoints(LeafReader reader,
java.lang.String field) |
private FieldCacheImpl.BitsEntry |
FieldCacheImpl.DocsWithFieldCache.createValuePostings(LeafReader reader,
java.lang.String field) |
java.lang.Object |
FieldCacheImpl.Cache.get(LeafReader reader,
FieldCacheImpl.CacheKey key,
boolean setDocsWithField) |
Bits |
FieldCache.getDocsWithField(LeafReader reader,
java.lang.String field,
FieldCache.Parser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms/points in
field and returns a bit set at the size of
reader.maxDoc() , with turned on bits for each docid that
does have a value for this field. |
Bits |
FieldCacheImpl.getDocsWithField(LeafReader reader,
java.lang.String field,
FieldCache.Parser parser) |
SortedSetDocValues |
FieldCache.getDocTermOrds(LeafReader reader,
java.lang.String field,
BytesRef prefix)
Checks the internal cache for an appropriate entry, and if none is found, reads the term values
in
field and returns a DocTermOrds instance, providing a method to retrieve
the terms (as ords) per document. |
SortedSetDocValues |
FieldCacheImpl.getDocTermOrds(LeafReader reader,
java.lang.String field,
BytesRef prefix) |
NumericDocValues |
FieldCache.getNumerics(LeafReader reader,
java.lang.String field,
FieldCache.Parser parser,
boolean setDocsWithField)
Returns a
NumericDocValues over the values found in documents in the given
field. |
NumericDocValues |
FieldCacheImpl.getNumerics(LeafReader reader,
java.lang.String field,
FieldCache.Parser parser,
boolean setDocsWithField) |
TermsEnum |
DocTermOrds.getOrdTermsEnum(LeafReader reader)
Deprecated.
Returns a TermsEnum that implements ord, or null if no terms in field.
|
BinaryDocValues |
FieldCache.getTerms(LeafReader reader,
java.lang.String field,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if none
is found, reads the term values in
field
and returns a BinaryDocValues instance, providing a
method to retrieve the term (as a BytesRef) per document. |
BinaryDocValues |
FieldCacheImpl.getTerms(LeafReader reader,
java.lang.String field,
boolean setDocsWithField) |
BinaryDocValues |
FieldCache.getTerms(LeafReader reader,
java.lang.String field,
boolean setDocsWithField,
float acceptableOverheadRatio)
Expert: just like
FieldCache.getTerms(org.apache.lucene.index.LeafReader,String,boolean) ,
but you can specify whether more RAM should be consumed in exchange for
faster lookups (default is "true"). |
BinaryDocValues |
FieldCacheImpl.getTerms(LeafReader reader,
java.lang.String field,
boolean setDocsWithField,
float acceptableOverheadRatio) |
SortedDocValues |
FieldCache.getTermsIndex(LeafReader reader,
java.lang.String field)
Checks the internal cache for an appropriate entry, and if none
is found, reads the term values in
field
and returns a SortedDocValues instance,
providing methods to retrieve sort ordinals and terms
(as a ByteRef) per document. |
SortedDocValues |
FieldCacheImpl.getTermsIndex(LeafReader reader,
java.lang.String field) |
SortedDocValues |
FieldCache.getTermsIndex(LeafReader reader,
java.lang.String field,
float acceptableOverheadRatio)
Expert: just like
FieldCache.getTermsIndex(org.apache.lucene.index.LeafReader,String) , but you can specify
whether more RAM should be consumed in exchange for
faster lookups (default is "true"). |
SortedDocValues |
FieldCacheImpl.getTermsIndex(LeafReader reader,
java.lang.String field,
float acceptableOverheadRatio) |
private void |
FieldCacheImpl.initReader(LeafReader reader) |
SortedSetDocValues |
DocTermOrds.iterator(LeafReader reader)
Deprecated.
Returns a SortedSetDocValues view of this instance
|
void |
FieldCacheImpl.Cache.put(LeafReader reader,
FieldCacheImpl.CacheKey key,
Accountable value)
Sets the key to the value for the provided reader;
if the key is already set then this doesn't change it.
|
(package private) void |
FieldCacheImpl.setDocsWithField(LeafReader reader,
java.lang.String field,
Bits docsWithField,
FieldCache.Parser parser) |
protected void |
DocTermOrds.uninvert(LeafReader reader,
Bits liveDocs,
BytesRef termPrefix)
Deprecated.
Call this only once (if you subclass!)
|
(package private) void |
FieldCacheImpl.Uninvert.uninvert(LeafReader reader,
java.lang.String field,
boolean setDocsWithField) |
(package private) void |
FieldCacheImpl.Uninvert.uninvertPoints(LeafReader reader,
java.lang.String field,
boolean setDocsWithField) |
(package private) void |
FieldCacheImpl.Uninvert.uninvertPostings(LeafReader reader,
java.lang.String field,
boolean setDocsWithField) |
Constructor and Description |
---|
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field)
Deprecated.
Inverts all terms
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field,
BytesRef termPrefix)
Deprecated.
Inverts only terms starting w/ prefix
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field,
BytesRef termPrefix,
int maxTermDocFreq)
Deprecated.
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field,
BytesRef termPrefix,
int maxTermDocFreq,
int indexIntervalBits)
Deprecated.
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq, with a custom indexing interval
(default is every 128nd term).
|
Iterator(LeafReader reader) |
OrdWrappedTermsEnum(LeafReader reader) |
UninvertingReader(LeafReader in,
java.util.Map<java.lang.String,UninvertingReader.Type> mapping)
Deprecated.
Create a new UninvertingReader with the specified mapping
|