org.xcmis.search.lucene.index.merge
Class IndexSizeAggregatePolicy

java.lang.Object
  extended by 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

Field Summary
static int DEFAULT_MAX_DIR_SIZE
          Maximum size of index chain.
static int DEFAULT_MIN_DIR_SIZE
          Minimum size of index chain.
 
Constructor Summary
IndexSizeAggregatePolicy()
           
 
Method Summary
 Collection<LuceneIndexDataManager> findIndexDataManagerToAggrigate(Collection<LuceneIndexDataManager> aggregateCandidat, long requiredCandidatCount, long reguiredTotalCandidatSize)
           
 Collection<LuceneIndexDataManager> findIndexDataManagerToOptimize(Collection<LuceneIndexDataManager> aggregateCandidat)
           
 int getMaxDirSize()
           
 int getMinDirSize()
           
 void setMaxDirSize(int maxDirSize)
           
 void setMinDirSize(int minDirSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

IndexSizeAggregatePolicy

public IndexSizeAggregatePolicy()
Method Detail

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 © 2003-2013 eXo Platform SAS. All Rights Reserved.