Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Class and Description |
---|---|
class |
IndexWriter
An
IndexWriter creates and maintains an index. |
Modifier and Type | Method and Description |
---|---|
abstract MergePolicy.MergeSpecification |
MergePolicy.findForcedDeletesMerges(SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext)
Determine what set of merge operations is necessary in order to expunge all
deletes from the index.
|
MergePolicy.MergeSpecification |
TieredMergePolicy.findForcedDeletesMerges(SegmentInfos infos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
LogMergePolicy.findForcedDeletesMerges(SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext)
Finds merges necessary to force-merge all deletes from the
index.
|
MergePolicy.MergeSpecification |
FilterMergePolicy.findForcedDeletesMerges(SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
OneMergeWrappingMergePolicy.findForcedDeletesMerges(SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
NoMergePolicy.findForcedDeletesMerges(SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
abstract MergePolicy.MergeSpecification |
MergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentCommitInfo,Boolean> segmentsToMerge,
MergePolicy.MergeContext mergeContext)
Determine what set of merge operations is necessary in
order to merge to
<= the specified segment count. |
MergePolicy.MergeSpecification |
TieredMergePolicy.findForcedMerges(SegmentInfos infos,
int maxSegmentCount,
Map<SegmentCommitInfo,Boolean> segmentsToMerge,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
LogMergePolicy.findForcedMerges(SegmentInfos infos,
int maxNumSegments,
Map<SegmentCommitInfo,Boolean> segmentsToMerge,
MergePolicy.MergeContext mergeContext)
Returns the merges necessary to merge the index down
to a specified number of segments.
|
MergePolicy.MergeSpecification |
FilterMergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentCommitInfo,Boolean> segmentsToMerge,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
OneMergeWrappingMergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentCommitInfo,Boolean> segmentsToMerge,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
NoMergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentCommitInfo,Boolean> segmentsToMerge,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
UpgradeIndexMergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentCommitInfo,Boolean> segmentsToMerge,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
MergePolicy.findFullFlushMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext)
Identifies merges that we want to execute (synchronously) on commit.
|
MergePolicy.MergeSpecification |
FilterMergePolicy.findFullFlushMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
OneMergeWrappingMergePolicy.findFullFlushMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
NoMergePolicy.findFullFlushMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
abstract MergePolicy.MergeSpecification |
MergePolicy.findMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext)
Determine what set of merge operations are now necessary on the index.
|
MergePolicy.MergeSpecification |
TieredMergePolicy.findMerges(MergeTrigger mergeTrigger,
SegmentInfos infos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
LogMergePolicy.findMerges(MergeTrigger mergeTrigger,
SegmentInfos infos,
MergePolicy.MergeContext mergeContext)
Checks if any merges are now necessary and returns a
MergePolicy.MergeSpecification if so. |
MergePolicy.MergeSpecification |
FilterMergePolicy.findMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
OneMergeWrappingMergePolicy.findMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
NoMergePolicy.findMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
MergePolicy.MergeSpecification |
UpgradeIndexMergePolicy.findMerges(MergeTrigger mergeTrigger,
SegmentInfos segmentInfos,
MergePolicy.MergeContext mergeContext) |
protected boolean |
LogMergePolicy.isMerged(SegmentInfos infos,
int maxNumSegments,
Map<SegmentCommitInfo,Boolean> segmentsToMerge,
MergePolicy.MergeContext mergeContext)
Returns true if the number of segments eligible for
merging is less than or equal to the specified
maxNumSegments . |
protected boolean |
MergePolicy.isMerged(SegmentInfos infos,
SegmentCommitInfo info,
MergePolicy.MergeContext mergeContext)
Returns true if this single info is already fully merged (has no
pending deletes, is in the same dir as the
writer, and matches the current compound file setting
|
protected void |
MergePolicy.message(String message,
MergePolicy.MergeContext mergeContext)
Print a debug message to
MergePolicy.MergeContext 's infoStream . |
protected String |
MergePolicy.segString(MergePolicy.MergeContext mergeContext,
Iterable<SegmentCommitInfo> infos)
Builds a String representation of the given SegmentCommitInfo instances
|
protected long |
MergePolicy.size(SegmentCommitInfo info,
MergePolicy.MergeContext mergeContext)
Return the byte size of the provided
SegmentCommitInfo , pro-rated by percentage of
non-deleted documents is set. |
protected long |
LogByteSizeMergePolicy.size(SegmentCommitInfo info,
MergePolicy.MergeContext mergeContext) |
protected long |
FilterMergePolicy.size(SegmentCommitInfo info,
MergePolicy.MergeContext context) |
protected long |
LogDocMergePolicy.size(SegmentCommitInfo info,
MergePolicy.MergeContext mergeContext) |
protected long |
NoMergePolicy.size(SegmentCommitInfo info,
MergePolicy.MergeContext context) |
protected long |
LogMergePolicy.sizeBytes(SegmentCommitInfo info,
MergePolicy.MergeContext mergeContext)
Return the byte size of the provided
SegmentCommitInfo , pro-rated by percentage of
non-deleted documents if LogMergePolicy.setCalibrateSizeByDeletes(boolean) is set. |
protected long |
LogMergePolicy.sizeDocs(SegmentCommitInfo info,
MergePolicy.MergeContext mergeContext)
Return the number of documents in the provided
SegmentCommitInfo , pro-rated by percentage of
non-deleted documents if LogMergePolicy.setCalibrateSizeByDeletes(boolean) is set. |
boolean |
MergePolicy.useCompoundFile(SegmentInfos infos,
SegmentCommitInfo mergedInfo,
MergePolicy.MergeContext mergeContext)
Returns true if a new segment (regardless of its origin) should use the
compound file format.
|
boolean |
FilterMergePolicy.useCompoundFile(SegmentInfos infos,
SegmentCommitInfo mergedInfo,
MergePolicy.MergeContext mergeContext) |
boolean |
NoMergePolicy.useCompoundFile(SegmentInfos segments,
SegmentCommitInfo newSegment,
MergePolicy.MergeContext mergeContext) |
protected boolean |
MergePolicy.verbose(MergePolicy.MergeContext mergeContext)
Returns
true if the info-stream is in verbose mode |
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.