Class LuceneIndexHistogramCreator

java.lang.Object
org.aksw.palmetto.corpus.lucene.creation.LuceneIndexHistogramCreator

public class LuceneIndexHistogramCreator extends Object
A simple class that iterates over a given Lucene index and creates a histogram of the document lengths stored inside a documentLengthField.
Author:
Michael Röder (roeder@informatik.uni-leipzig.de)
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • docLengthFieldName

      private String docLengthFieldName
  • Constructor Details

    • LuceneIndexHistogramCreator

      public LuceneIndexHistogramCreator(String docLengthFieldName)
  • Method Details

    • createLuceneIndexHistogram

      public void createLuceneIndexHistogram(String indexPath)
    • createHistogram

      protected int[][] createHistogram(String indexPath)
    • storeHistogram

      public void storeHistogram(int[][] histogram, String filename)