public class TermIndexTopNCleaner extends AbstractTermIndexCleaner
TermIndex
after having ranked
them according to a parameter term property.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOP_N |
CLEANING_PERIOD, CLEANING_PROPERTY, cleaningPeriod, KEEP_VARIANTS, keepVariants, NUM_TERMS_CLEANING_TRIGGER, numTermsCleaningTrigger, PERIODIC_CAS_CLEAN_ON, periodicCasClean, property, termIndexResource
Constructor and Description |
---|
TermIndexTopNCleaner() |
Modifier and Type | Method and Description |
---|---|
protected void |
doCleaningPartition(java.util.Set<Term> keptTerms,
java.util.Set<Term> removedTerms)
Does the specialized cleaning job (on which the logic
for variant keeping will apply)
|
java.lang.String |
toString() |
clean, collectionProcessComplete, initialize, process
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final java.lang.String TOP_N
protected void doCleaningPartition(java.util.Set<Term> keptTerms, java.util.Set<Term> removedTerms)
AbstractTermIndexCleaner
doCleaningPartition
in class AbstractTermIndexCleaner
keptTerms
- The set of terms to keep in index (to be fill by implementor)removedTerms
- The set of terms to remove index (to be fill by implementor)public java.lang.String toString()
toString
in class java.lang.Object