Package | Description |
---|---|
org.apache.lucene.analysis.util |
Utility functions for text analysis.
|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.idversion |
A primary-key postings format that associates a version (long) with each term and
can provide fail-fast lookups by ID and version.
|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene80 for an overview
of the index format. |
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
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.grouping |
Grouping.
|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Field and Description |
---|---|
static Bits |
UnicodeProps.WHITESPACE
Bitset with Unicode WHITESPACE code points.
|
Modifier and Type | Method and Description |
---|---|
private static Bits |
UnicodeProps.createBits(int... codepoints) |
Modifier and Type | Method and Description |
---|---|
abstract Bits |
LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context)
Read live docs bits.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
LiveDocsFormat.writeLiveDocs(Bits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context)
Persist live docs bits.
|
Modifier and Type | Field and Description |
---|---|
private Bits |
IDVersionPostingsWriter.liveDocs |
Constructor and Description |
---|
IDVersionPostingsWriter(Bits liveDocs) |
Modifier and Type | Method and Description |
---|---|
Bits |
Lucene50LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
Lucene50LiveDocsFormat.writeLiveDocs(Bits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context) |
Modifier and Type | Field and Description |
---|---|
(package private) Bits |
FloatPointNearestNeighbor.NearestVisitor.curLiveDocs |
Modifier and Type | Method and Description |
---|---|
private static FloatPointNearestNeighbor.NearestHit[] |
FloatPointNearestNeighbor.nearest(java.util.List<BKDReader> readers,
java.util.List<Bits> liveDocs,
java.util.List<java.lang.Integer> docBases,
int topN,
float[] origin) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
BitsSlice
Exposes a slice of an existing Bits as a new Bits.
|
class |
MultiBits
Concatenates multiple Bits together, on every lookup.
|
private static class |
SortingLeafReader.SortingBits |
Modifier and Type | Field and Description |
---|---|
private Bits |
SegmentReader.hardLiveDocs |
(package private) Bits |
ReadersAndUpdates.MergeReader.hardLiveDocs |
private Bits |
SortingLeafReader.SortingBits.in |
private Bits |
SegmentReader.liveDocs |
Bits[] |
MergeState.liveDocs
Live docs for each reader
|
(package private) Bits |
MultiSorter.LeafAndDocID.liveDocs |
private Bits |
PendingDeletes.liveDocs |
(package private) Bits |
PKIndexSplitter.DocumentFilteredLeafIndexReader.liveDocs |
private Bits |
BitsSlice.parent |
private Bits[] |
MultiBits.subs |
private Bits |
FieldUpdatesBuffer.BufferedUpdateIterator.updatesWithValue |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<Bits> |
MergePolicy.OneMerge.hardLiveDocs |
Modifier and Type | Method and Description |
---|---|
(package private) Bits |
PendingSoftDeletes.getHardLiveDocs() |
Bits |
SegmentReader.getHardLiveDocs()
Returns the live docs that are not hard-deleted.
|
(package private) Bits |
PendingDeletes.getHardLiveDocs()
Returns a snapshot of the hard live docs.
|
Bits |
ReadersAndUpdates.getHardLiveDocs()
Returns the live-docs bits excluding documents that are not live due to soft-deletes
|
abstract Bits |
LeafReader.getLiveDocs()
Returns the
Bits representing live (not
deleted) docs. |
Bits |
FilterLeafReader.getLiveDocs() |
Bits |
SegmentReader.getLiveDocs() |
Bits |
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterLeafReader.getLiveDocs() |
Bits |
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader.getLiveDocs() |
Bits |
FilterCodecReader.getLiveDocs() |
Bits |
SortingLeafReader.getLiveDocs() |
Bits |
MergeReaderWrapper.getLiveDocs() |
(package private) Bits |
PendingDeletes.getLiveDocs()
Returns a snapshot of the current live docs.
|
Bits |
ParallelLeafReader.getLiveDocs() |
Bits |
ReadersAndUpdates.getLiveDocs()
Returns a snapshot of the live docs.
|
Bits |
MultiPassIndexSplitter.FakeDeleteLeafIndexReader.getLiveDocs() |
Bits |
PKIndexSplitter.DocumentFilteredLeafIndexReader.getLiveDocs() |
static Bits |
MultiBits.getLiveDocs(IndexReader reader)
Returns a single
Bits instance for this
reader, merging live Documents on the
fly. |
Modifier and Type | Method and Description |
---|---|
private boolean |
PendingDeletes.assertCheckLiveDocs(Bits bits,
int expectedLength,
int expectedDeleteCount) |
private static boolean |
SegmentReader.assertLiveDocs(boolean isNRT,
Bits hardLiveDocs,
Bits liveDocs) |
private static void |
IndexWriter.carryOverHardDeletes(ReadersAndUpdates mergedReadersAndUpdates,
int maxDoc,
Bits mergeLiveDocs,
Bits prevHardLiveDocs,
Bits currentHardLiveDocs,
MergeState.DocMap segDocMap,
MergeState.DocMap segLeafDocMap)
This method carries over hard-deleted documents that are applied to the source segment during a merge.
|
private static CheckIndex.Status.TermIndexStatus |
CheckIndex.checkFields(Fields fields,
Bits liveDocs,
int maxDoc,
FieldInfos fieldInfos,
NormsProducer normsProducer,
boolean doPrint,
boolean isVectors,
java.io.PrintStream infoStream,
boolean verbose,
boolean doSlowChecks)
checks Fields api is consistent with itself.
|
private void |
IndexWriter.countSoftDeletes(CodecReader reader,
Bits wrappedLiveDocs,
Bits hardLiveDocs,
Counter softDeleteCounter,
Counter hardDeleteCounter) |
(package private) static int |
PendingSoftDeletes.countSoftDeletes(DocIdSetIterator softDeletedDocs,
Bits hardDeletes) |
(package private) static PackedLongValues |
MergeState.removeDeletes(int maxDoc,
Bits liveDocs) |
private FixedBitSet |
DocumentsWriterPerThread.sortLiveDocs(Bits liveDocs,
Sorter.DocMap sortMap) |
(package private) static FilterCodecReader |
FilterCodecReader.wrapLiveDocs(CodecReader reader,
Bits liveDocs,
int numDocs)
Returns a filtered codec reader with the given live docs and numDocs.
|
Constructor and Description |
---|
BitsSlice(Bits parent,
ReaderSlice slice) |
LeafAndDocID(int readerIndex,
Bits liveDocs,
int maxDoc,
int numComparables) |
MergeReader(SegmentReader reader,
Bits hardLiveDocs) |
MultiBits(Bits[] subs,
int[] starts,
boolean defaultValue) |
PendingDeletes(SegmentCommitInfo info,
Bits liveDocs,
boolean liveDocsInitialized) |
SegmentReader(SegmentCommitInfo si,
SegmentReader sr,
Bits liveDocs,
Bits hardLiveDocs,
int numDocs,
boolean isNRT)
Create new SegmentReader sharing core from a previous
SegmentReader and using the provided liveDocs, and recording
whether those liveDocs were carried in ram (isNRT=true).
|
SortingBits(Bits in,
Sorter.DocMap docMap) |
Modifier and Type | Method and Description |
---|---|
Bits |
MemoryIndex.MemoryIndexReader.getLiveDocs() |
Modifier and Type | Field and Description |
---|---|
Bits |
NearestNeighbor.NearestVisitor.curLiveDocs |
Modifier and Type | Method and Description |
---|---|
Bits |
DocIdSet.bits()
Optionally provides a
Bits interface for random access
to matching documents. |
Modifier and Type | Method and Description |
---|---|
void |
BulkScorer.score(LeafCollector collector,
Bits acceptDocs)
Scores and collects all matching documents.
|
int |
Weight.DefaultBulkScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
int |
ConstantScoreQuery.ConstantBulkScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
int |
ReqExclBulkScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
abstract int |
BulkScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max)
Collects matching documents in a range and return an estimation of the
next matching document which is on or after
max . |
int |
BooleanScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
(package private) void |
BooleanScorer.BulkScorerAndDoc.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
(package private) static void |
Weight.DefaultBulkScorer.scoreAll(LeafCollector collector,
DocIdSetIterator iterator,
TwoPhaseIterator twoPhase,
Bits acceptDocs)
Specialized method to bulk-score all hits; we
separate this from
Weight.DefaultBulkScorer.scoreRange(org.apache.lucene.search.LeafCollector, org.apache.lucene.search.DocIdSetIterator, org.apache.lucene.search.TwoPhaseIterator, org.apache.lucene.util.Bits, int, int) to help out
hotspot. |
(package private) static int |
Weight.DefaultBulkScorer.scoreRange(LeafCollector collector,
DocIdSetIterator iterator,
TwoPhaseIterator twoPhase,
Bits acceptDocs,
int currentDoc,
int end)
Specialized method to bulk-score a range of hits; we
separate this from
Weight.DefaultBulkScorer.scoreAll(org.apache.lucene.search.LeafCollector, org.apache.lucene.search.DocIdSetIterator, org.apache.lucene.search.TwoPhaseIterator, org.apache.lucene.util.Bits) to help out
hotspot. |
private BooleanScorer.BulkScorerAndDoc |
BooleanScorer.scoreWindow(BooleanScorer.BulkScorerAndDoc top,
LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
private void |
BooleanScorer.scoreWindowIntoBitSetAndReplay(LeafCollector collector,
Bits acceptDocs,
int base,
int min,
int max,
BooleanScorer.BulkScorerAndDoc[] scorers,
int numScorers) |
private void |
BooleanScorer.scoreWindowMultipleScorers(LeafCollector collector,
Bits acceptDocs,
int windowBase,
int windowMin,
int windowMax,
int maxFreq) |
private void |
BooleanScorer.scoreWindowSingleScorer(BooleanScorer.BulkScorerAndDoc bulkScorer,
LeafCollector collector,
Bits acceptDocs,
int windowMin,
int windowMax,
int max) |
Modifier and Type | Method and Description |
---|---|
static NearestNeighbor.NearestHit[] |
NearestNeighbor.nearest(double pointLat,
double pointLon,
java.util.List<BKDReader> readers,
java.util.List<Bits> liveDocs,
java.util.List<java.lang.Integer> docBases,
int n) |
Modifier and Type | Field and Description |
---|---|
private Bits |
GroupingSearch.matchingGroupHeads |
Modifier and Type | Method and Description |
---|---|
Bits |
GroupingSearch.getAllGroupHeads()
Returns the matching group heads if
GroupingSearch.setAllGroupHeads(boolean) was set to true or an empty bit set. |
Modifier and Type | Method and Description |
---|---|
Bits |
TermVectorLeafReader.getLiveDocs() |
Modifier and Type | Method and Description |
---|---|
static Bits |
BlockJoinSelector.wrap(Bits docsWithValue,
BitSet parents,
BitSet children)
Return a
Bits instance that returns true if, and only if, any of
the children of the given parent document has a value. |
Modifier and Type | Method and Description |
---|---|
static Bits |
BlockJoinSelector.wrap(Bits docsWithValue,
BitSet parents,
BitSet children)
Return a
Bits instance that returns true if, and only if, any of
the children of the given parent document has a value. |
Modifier and Type | Class and Description |
---|---|
static class |
Bits.MatchAllBits
Bits impl of the specified length with all bits set.
|
static class |
Bits.MatchNoBits
Bits impl of the specified length with no bits set.
|
class |
BitSet
Base implementation for a bit set.
|
(package private) class |
FixedBits
Immutable twin of FixedBitSet.
|
class |
FixedBitSet
BitSet of fixed length (numBits), backed by accessible (
FixedBitSet.getBits() )
long[], accessed with an int index, implementing Bits and
DocIdSet . |
class |
SparseFixedBitSet
A bit set that only stores longs that have at least one bit which is set.
|
Modifier and Type | Field and Description |
---|---|
static Bits[] |
Bits.EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
Bits |
FixedBitSet.asReadOnlyBits()
Convert this instance to read-only
Bits . |
Bits |
NotDocIdSet.bits() |
Modifier and Type | Method and Description |
---|---|
static FixedBitSet |
FixedBitSet.copyOf(Bits bits)
Make a copy of the given bits.
|