Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.lucene40 |
Lucene 4.0 file format.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
LiveDocsFormat.files(SegmentInfoPerCommit info,
Collection<String> files)
Records all files in use by this
SegmentInfoPerCommit into the files argument. |
abstract Bits |
LiveDocsFormat.readLiveDocs(Directory dir,
SegmentInfoPerCommit info,
IOContext context)
Read live docs bits.
|
abstract void |
LiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentInfoPerCommit info,
int newDelCount,
IOContext context)
Persist live docs bits.
|
Modifier and Type | Method and Description |
---|---|
void |
Lucene40LiveDocsFormat.files(SegmentInfoPerCommit info,
Collection<String> files) |
Bits |
Lucene40LiveDocsFormat.readLiveDocs(Directory dir,
SegmentInfoPerCommit info,
IOContext context) |
void |
Lucene40LiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentInfoPerCommit info,
int newDelCount,
IOContext context) |
Modifier and Type | Field and Description |
---|---|
List<SegmentInfoPerCommit> |
MergePolicy.OneMerge.segments
Segments to be merged.
|
Modifier and Type | Method and Description |
---|---|
SegmentInfoPerCommit |
SegmentInfoPerCommit.clone() |
SegmentInfoPerCommit |
SegmentReader.getSegmentInfo()
Return the SegmentInfoPerCommit of the segment this reader is reading.
|
SegmentInfoPerCommit |
SegmentInfos.info(int i)
Returns
SegmentInfoPerCommit at the provided
index. |
Modifier and Type | Method and Description |
---|---|
List<SegmentInfoPerCommit> |
SegmentInfos.asList()
Returns all contained segments as an unmodifiable
List view. |
Collection<SegmentInfoPerCommit> |
IndexWriter.getMergingSegments()
Expert: to be used by a
MergePolicy to avoid
selecting merges for segments already being merged. |
Iterator<SegmentInfoPerCommit> |
SegmentInfos.iterator()
Returns an unmodifiable
Iterator of contained segments in order. |
Modifier and Type | Method and Description |
---|---|
void |
SegmentInfos.add(SegmentInfoPerCommit si)
Appends the provided
SegmentInfoPerCommit . |
protected boolean |
LogMergePolicy.isMerged(SegmentInfoPerCommit info)
Returns true if this single info is already fully merged (has no
pending norms or deletes, is in the same dir as the
writer, and matches the current compound file setting
|
int |
IndexWriter.numDeletedDocs(SegmentInfoPerCommit info)
Obtain the number of deleted docs for a pooled reader.
|
void |
SegmentInfos.remove(SegmentInfoPerCommit si)
Remove the provided
SegmentInfoPerCommit . |
String |
IndexWriter.segString(SegmentInfoPerCommit info)
Returns a string description of the specified
segment, for debugging.
|
void |
MergePolicy.OneMerge.setInfo(SegmentInfoPerCommit info)
Expert: Sets the
SegmentInfoPerCommit of this MergePolicy.OneMerge . |
protected boolean |
UpgradeIndexMergePolicy.shouldUpgradeSegment(SegmentInfoPerCommit si)
Returns if the given segment should be upgraded.
|
protected long |
LogDocMergePolicy.size(SegmentInfoPerCommit info) |
protected long |
LogByteSizeMergePolicy.size(SegmentInfoPerCommit info) |
protected abstract long |
LogMergePolicy.size(SegmentInfoPerCommit info)
Return the size of the provided
SegmentInfoPerCommit . |
protected long |
LogMergePolicy.sizeBytes(SegmentInfoPerCommit info)
Return the byte size of the provided
SegmentInfoPerCommit , pro-rated by percentage of
non-deleted documents if LogMergePolicy.setCalibrateSizeByDeletes(boolean) is set. |
protected long |
LogMergePolicy.sizeDocs(SegmentInfoPerCommit info)
Return the number of documents in the provided
SegmentInfoPerCommit , pro-rated by percentage of
non-deleted documents if LogMergePolicy.setCalibrateSizeByDeletes(boolean) is set. |
boolean |
UpgradeIndexMergePolicy.useCompoundFile(SegmentInfos segments,
SegmentInfoPerCommit newSegment) |
abstract boolean |
MergePolicy.useCompoundFile(SegmentInfos segments,
SegmentInfoPerCommit newSegment)
Returns true if a new segment (regardless of its origin) should use the compound file format.
|
boolean |
LogMergePolicy.useCompoundFile(SegmentInfos infos,
SegmentInfoPerCommit mergedInfo) |
boolean |
TieredMergePolicy.useCompoundFile(SegmentInfos infos,
SegmentInfoPerCommit mergedInfo) |
boolean |
NoMergePolicy.useCompoundFile(SegmentInfos segments,
SegmentInfoPerCommit newSegment) |
Modifier and Type | Method and Description |
---|---|
void |
SegmentInfos.addAll(Iterable<SegmentInfoPerCommit> sis)
Appends the provided
SegmentInfoPerCommit s. |
MergePolicy.MergeSpecification |
UpgradeIndexMergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentInfoPerCommit,Boolean> segmentsToMerge) |
abstract MergePolicy.MergeSpecification |
MergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentInfoPerCommit,Boolean> segmentsToMerge)
Determine what set of merge operations is necessary in
order to merge to <= the specified segment count.
|
MergePolicy.MergeSpecification |
LogMergePolicy.findForcedMerges(SegmentInfos infos,
int maxNumSegments,
Map<SegmentInfoPerCommit,Boolean> segmentsToMerge)
Returns the merges necessary to merge the index down
to a specified number of segments.
|
MergePolicy.MergeSpecification |
TieredMergePolicy.findForcedMerges(SegmentInfos infos,
int maxSegmentCount,
Map<SegmentInfoPerCommit,Boolean> segmentsToMerge) |
MergePolicy.MergeSpecification |
NoMergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentInfoPerCommit,Boolean> segmentsToMerge) |
protected boolean |
LogMergePolicy.isMerged(SegmentInfos infos,
int maxNumSegments,
Map<SegmentInfoPerCommit,Boolean> segmentsToMerge)
Returns true if the number of segments eligible for
merging is less than or equal to the specified
maxNumSegments . |
protected TieredMergePolicy.MergeScore |
TieredMergePolicy.score(List<SegmentInfoPerCommit> candidate,
boolean hitTooLarge,
long mergingBytes)
Expert: scores one merge; subclasses can override.
|
String |
IndexWriter.segString(Iterable<SegmentInfoPerCommit> infos)
Returns a string description of the specified
segments, for debugging.
|
Constructor and Description |
---|
SegmentReader(SegmentInfoPerCommit si,
int termInfosIndexDivisor,
IOContext context)
Constructs a new SegmentReader with a new core.
|
Constructor and Description |
---|
MergePolicy.OneMerge(List<SegmentInfoPerCommit> segments)
Sole constructor.
|
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.