Свойство | Тип | Описание | |
---|---|---|---|
DEFAULT_MAX_MERGE_DOCS | int | ||
DEFAULT_NO_CFS_RATIO | double |
Свойство | Тип | Описание | |
---|---|---|---|
internalCalibrateSizeByDeletes | bool | ||
internalNoCFSRatio | double |
Метод | Описание | |
---|---|---|
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 ( |
Метод | Описание | |
---|---|---|
LogMergePolicy ( |
||
MakeOneMerge ( |
||
Size ( |
||
SizeBytes ( |
||
SizeDocs ( |
||
Verbose ( ) : bool |
Метод | Описание | |
---|---|---|
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 | ||
Результат | MergeSpecification |
public FindMergesForOptimize ( |
||
infos | ||
maxNumSegments | int | |
segmentsToOptimize | ISet |
|
Результат | MergeSpecification |
public FindMergesToExpungeDeletes ( |
||
segmentInfos | ||
Результат | MergeSpecification |
protected LogMergePolicy ( |
||
writer | ||
Результат | System |
protected MakeOneMerge ( |
||
infos | ||
infosToMerge | ||
Результат | OneMerge |
public SetUseCompoundDocStore ( bool useCompoundDocStore ) : void | ||
useCompoundDocStore | bool | |
Результат | void |
public SetUseCompoundFile ( bool useCompoundFile ) : void | ||
useCompoundFile | bool | |
Результат | void |
abstract protected Size ( |
||
info | ||
Результат | long |
protected SizeBytes ( |
||
info | ||
Результат | long |
protected SizeDocs ( |
||
info | ||
Результат | long |
public UseCompoundDocStore ( |
||
infos | ||
Результат | bool |
public UseCompoundFile ( |
||
infos | ||
info | ||
Результат | bool |
public static int DEFAULT_MAX_MERGE_DOCS | ||
Результат | int |
public static double DEFAULT_NO_CFS_RATIO | ||
Результат | double |
protected bool internalCalibrateSizeByDeletes | ||
Результат | bool |