Interface WindowSupportingAdapter

    • Method Detail

      • getDocumentSizeHistogram

        int[][] getDocumentSizeHistogram()
        Returns the histogram of the document sizes of the corpus.
        Returns:
        the histogram of the document sizes
      • requestWordPositionsInDocuments

        com.carrotsearch.hppc.IntObjectOpenHashMap<com.carrotsearch.hppc.IntArrayList[]> requestWordPositionsInDocuments​(String[] words,
                                                                                                                         com.carrotsearch.hppc.IntIntOpenHashMap docLengths)
        Returns the positions of the given words inside the corpus.
        Parameters:
        words - the words for which the positions inside the documents should be determined
        docLengths - empty int int map in which the document lengths and counts are inserted
        Returns:
        the positions of the given words inside the corpus