org.xcmis.search.lucene.index.merge
Class IndexSizeAggregatePolicy
java.lang.Object
org.xcmis.search.lucene.index.merge.IndexSizeAggregatePolicy
- All Implemented Interfaces:
- AggregatePolicy
- Direct Known Subclasses:
- DocumentCountAggregatePolicy
public class IndexSizeAggregatePolicy
- extends Object
- implements AggregatePolicy
Created by The eXo Platform SAS.
- Version:
- $Id: IndexSizeAggregatePolicy.java 2 2010-02-04 17:21:49Z andrew00x $
- Author:
- Sergey Kabashnyuk
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MAX_DIR_SIZE
public static final int DEFAULT_MAX_DIR_SIZE
- Maximum size of index chain.
- See Also:
- Constant Field Values
DEFAULT_MIN_DIR_SIZE
public static final int DEFAULT_MIN_DIR_SIZE
- Minimum size of index chain.
- See Also:
- Constant Field Values
IndexSizeAggregatePolicy
public IndexSizeAggregatePolicy()
getMinDirSize
public int getMinDirSize()
- Returns:
- Minimum size of index chain.
setMinDirSize
public void setMinDirSize(int minDirSize)
- Parameters:
minDirSize - - Minimum size of index chain.
getMaxDirSize
public int getMaxDirSize()
- Returns:
- maximum directory size.
setMaxDirSize
public void setMaxDirSize(int maxDirSize)
- Parameters:
maxDirSize - set maximim directory size.
findIndexDataManagerToAggrigate
public Collection<LuceneIndexDataManager> findIndexDataManagerToAggrigate(Collection<LuceneIndexDataManager> aggregateCandidat,
long requiredCandidatCount,
long reguiredTotalCandidatSize)
- Specified by:
findIndexDataManagerToAggrigate in interface AggregatePolicy
findIndexDataManagerToOptimize
public Collection<LuceneIndexDataManager> findIndexDataManagerToOptimize(Collection<LuceneIndexDataManager> aggregateCandidat)
- Specified by:
findIndexDataManagerToOptimize in interface AggregatePolicy
Copyright © 2010 eXo Platform SAS. All Rights Reserved.