프로퍼티 | 타입 | 설명 | |
---|---|---|---|
DEFAULT_MAX_CFS_SEGMENT_SIZE | long | ||
MaxCFSSegmentSize | long | ||
NoCFSRatio_Renamed | double | ||
Writer | SetOnce |
메소드 | 설명 | |
---|---|---|
Clone ( ) : object | ||
Dispose ( ) : void |
Release all resources for the policy.
|
|
FindForcedDeletesMerges ( |
Determine what set of merge operations is necessary in order to expunge all deletes from the index.
|
|
FindForcedMerges ( |
Determine what set of merge operations is necessary in order to merge to <= the specified segment count. IndexWriter calls this when its IndexWriter#forceMerge method is called. this call is always synchronized on the IndexWriter instance so only one thread at a time will call this method.
|
|
FindMerges ( MergeTrigger mergeTrigger, |
Determine what set of merge operations are now necessary on the index. IndexWriter calls this whenever there is a change to the segments. this call is always synchronized on the IndexWriter instance so only one thread at a time will call this method.
|
|
MergePolicy ( ) : System |
Creates a new merge policy instance. Note that if you intend to use it without passing it to IndexWriter, you should call #setIndexWriter(IndexWriter).
|
|
UseCompoundFile ( |
Returns true if a new segment (regardless of its origin) should use the compound file format. The default implementation returns
|
메소드 | 설명 | |
---|---|---|
IsMerged ( |
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
|
|
MergePolicy ( double defaultNoCFSRatio, long defaultMaxCFSSegmentSize ) : System |
Creates a new merge policy instance with default settings for noCFSRatio and maxCFSSegmentSize. this ctor should be used by subclasses using different defaults than the MergePolicy
|
|
Size ( Lucene.Net.Index.SegmentCommitInfo info ) : long |
Return the byte size of the provided {@link SegmentCommitInfo}, pro-rated by percentage of non-deleted documents is set.
|
public abstract FindForcedDeletesMerges ( |
||
segmentInfos | /// the total set of segments in the index | |
리턴 | MergeSpecification |
public abstract FindForcedMerges ( |
||
segmentInfos | /// the total set of segments in the index | |
maxSegmentCount | int | /// requested maximum number of segments in the index (currently this /// is always 1) |
segmentsToMerge | bool?>.IDictionary | /// contains the specific SegmentInfo instances that must be merged /// away. this may be a subset of all /// SegmentInfos. If the value is True for a /// given SegmentInfo, that means this segment was /// an original segment present in the /// to-be-merged index; else, it was a segment /// produced by a cascaded merge. |
리턴 | MergeSpecification |
public abstract FindMerges ( MergeTrigger mergeTrigger, |
||
mergeTrigger | MergeTrigger | the event that triggered the merge |
segmentInfos | /// the total set of segments in the index | |
리턴 | MergeSpecification |
protected IsMerged ( |
||
infos | ||
info | Lucene.Net.Index.SegmentCommitInfo | |
리턴 | bool |
protected MergePolicy ( double defaultNoCFSRatio, long defaultMaxCFSSegmentSize ) : System | ||
defaultNoCFSRatio | double | |
defaultMaxCFSSegmentSize | long | |
리턴 | System |
protected Size ( Lucene.Net.Index.SegmentCommitInfo info ) : long | ||
info | Lucene.Net.Index.SegmentCommitInfo | |
리턴 | long |
public UseCompoundFile ( |
||
infos | ||
mergedInfo | Lucene.Net.Index.SegmentCommitInfo | |
리턴 | bool |
protected static long DEFAULT_MAX_CFS_SEGMENT_SIZE | ||
리턴 | long |