Property | Type | Description | |
---|---|---|---|
DEFAULT_MAX_MERGE_DOCS | int | ||
DEFAULT_NO_CFS_RATIO | double |
Property | Type | Description | |
---|---|---|---|
internalCalibrateSizeByDeletes | bool | ||
internalNoCFSRatio | double |
Method | Description | |
---|---|---|
FindMerges ( |
Checks if any merges are now necessary and returns a MergePolicy.MergeSpecification if so. A merge is necessary when there are more than SetMergeFactor segments at a given level. When multiple levels have too many segments, this method will return multiple merges, allowing the MergeScheduler to use concurrency.
|
|
FindMergesForOptimize ( |
Returns the merges necessary to optimize the index. This merge policy defines "optimized" to mean only one segment in the index, where that segment has no deletions pending nor separate norms, and it is in compound file format if the current useCompoundFile setting is true. This method returns multiple merges (mergeFactor at a time) so the MergeScheduler in use may make use of concurrency.
|
|
FindMergesToExpungeDeletes ( |
Finds merges necessary to expunge all deletes from the index. We simply merge adjacent segments that have deletes, up to mergeFactor at a time.
|
|
SetUseCompoundDocStore ( bool useCompoundDocStore ) : void |
Sets whether compound file format should be used for newly flushed and newly merged doc store segment files (term vectors and stored fields).
|
|
SetUseCompoundFile ( bool useCompoundFile ) : void |
Gets or sets whether compound file format should be used for newly flushed and newly merged segments.
|
|
UseCompoundDocStore ( |
||
UseCompoundFile ( |
Method | Description | |
---|---|---|
LogMergePolicy ( |
||
MakeOneMerge ( |
||
Size ( |
||
SizeBytes ( |
||
SizeDocs ( |
||
Verbose ( ) : bool |
Method | Description | |
---|---|---|
GetUseCompoundDocStore ( ) : bool | ||
GetUseCompoundFile ( ) : bool | ||
IsOptimized ( |
Returns true if this single info is optimized (has no pending norms or deletes, is in the same dir as the writer, and matches the current compound file setting
|
|
IsOptimized ( |
||
Message ( System message ) : void |
public FindMerges ( |
||
infos | ||
return | MergeSpecification |
public FindMergesForOptimize ( |
||
infos | ||
maxNumSegments | int | |
segmentsToOptimize | ISet |
|
return | MergeSpecification |
public FindMergesToExpungeDeletes ( |
||
segmentInfos | ||
return | MergeSpecification |
protected LogMergePolicy ( |
||
writer | ||
return | System |
protected MakeOneMerge ( |
||
infos | ||
infosToMerge | ||
return | OneMerge |
public SetUseCompoundDocStore ( bool useCompoundDocStore ) : void | ||
useCompoundDocStore | bool | |
return | void |
public SetUseCompoundFile ( bool useCompoundFile ) : void | ||
useCompoundFile | bool | |
return | void |
abstract protected Size ( |
||
info | ||
return | long |
protected SizeBytes ( |
||
info | ||
return | long |
protected SizeDocs ( |
||
info | ||
return | long |
public UseCompoundDocStore ( |
||
infos | ||
return | bool |
public UseCompoundFile ( |
||
infos | ||
info | ||
return | bool |
protected bool internalCalibrateSizeByDeletes | ||
return | bool |