Class MemoryFieldsIterablePosting

    • Constructor Detail

      • MemoryFieldsIterablePosting

        public MemoryFieldsIterablePosting​(DocumentIndex docindex,
                                           gnu.trove.TIntArrayList docids,
                                           gnu.trove.TIntArrayList freqs,
                                           gnu.trove.TIntObjectHashMap<int[]> fields)
        Constructor (docid,freq,(fields)).
    • Method Detail

      • getFieldFrequencies

        public int[] getFieldFrequencies()
        Returns the frequencies of the term in each field of the document.
        Specified by:
        getFieldFrequencies in interface FieldPosting
        Returns:
        the frequencies of the term in each field of the document.
      • getFieldLengths

        public int[] getFieldLengths()
        Returns the lengths of the each field in the current document.
        Specified by:
        getFieldLengths in interface FieldPosting
        Returns:
        the lengths of the each field in the current document.