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

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • docLengthFieldName

        private String docLengthFieldName
    • Constructor Detail

      • LuceneIndexHistogramCreator

        public LuceneIndexHistogramCreator​(String docLengthFieldName)
    • Method Detail

      • createLuceneIndexHistogram

        public void createLuceneIndexHistogram​(String indexPath)
      • createHistogram

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

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