com.atlassian.confluence.plugins.popularcontent
Class SimpleStatisticsMapper

java.lang.Object
  extended by com.atlassian.confluence.plugins.popularcontent.SimpleStatisticsMapper
All Implemented Interfaces:
com.atlassian.lucene.stats.LuceneFieldSorter, com.atlassian.lucene.stats.StatisticsMapper

public class SimpleStatisticsMapper
extends java.lang.Object
implements com.atlassian.lucene.stats.StatisticsMapper


Constructor Summary
SimpleStatisticsMapper(java.lang.String documentConstant, java.util.Comparator comparator)
           
 
Method Summary
 java.util.Comparator getComparator()
           
 java.lang.String getDocumentConstant()
           
 java.lang.Object getValueFromLuceneField(java.lang.String documentValue)
           
 boolean isValidValue(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.lucene.stats.LuceneFieldSorter
equals, hashCode
 

Constructor Detail

SimpleStatisticsMapper

public SimpleStatisticsMapper(java.lang.String documentConstant,
                              java.util.Comparator comparator)
Method Detail

isValidValue

public boolean isValidValue(java.lang.Object value)
Specified by:
isValidValue in interface com.atlassian.lucene.stats.StatisticsMapper

getDocumentConstant

public java.lang.String getDocumentConstant()
Specified by:
getDocumentConstant in interface com.atlassian.lucene.stats.LuceneFieldSorter

getValueFromLuceneField

public java.lang.Object getValueFromLuceneField(java.lang.String documentValue)
Specified by:
getValueFromLuceneField in interface com.atlassian.lucene.stats.LuceneFieldSorter

getComparator

public java.util.Comparator getComparator()
Specified by:
getComparator in interface com.atlassian.lucene.stats.LuceneFieldSorter


Copyright © 2003-2014 Atlassian. All Rights Reserved.