Package org.terrier.structures.indexing
Class LexiconBuilder.BasicLexiconCollectionStaticticsCounter
- java.lang.Object
-
- org.terrier.structures.indexing.LexiconBuilder.BasicLexiconCollectionStaticticsCounter
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,LexiconBuilder.CollectionStatisticsCounter
- Enclosing class:
- LexiconBuilder
public static class LexiconBuilder.BasicLexiconCollectionStaticticsCounter extends java.lang.Object implements LexiconBuilder.CollectionStatisticsCounter
counts global statistics in the non-fields case
-
-
Constructor Summary
Constructors Constructor Description BasicLexiconCollectionStaticticsCounter(PropertiesIndex _index)
constructorBasicLexiconCollectionStaticticsCounter(PropertiesIndex _index, java.lang.String subset_name)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
count(LexiconEntry value)
The current count
-
-
-
Constructor Detail
-
BasicLexiconCollectionStaticticsCounter
public BasicLexiconCollectionStaticticsCounter(PropertiesIndex _index)
constructor- Parameters:
_index
-
-
BasicLexiconCollectionStaticticsCounter
public BasicLexiconCollectionStaticticsCounter(PropertiesIndex _index, java.lang.String subset_name)
constructor- Parameters:
_index
-subset_name
-
-
-
Method Detail
-
count
public void count(LexiconEntry value)
The current count- Specified by:
count
in interfaceLexiconBuilder.CollectionStatisticsCounter
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-