Class FieldIterablePosting

    • Constructor Detail

      • FieldIterablePosting

        public FieldIterablePosting​(int _fieldCount)
        contructor
        Parameters:
        _fieldCount -
      • FieldIterablePosting

        public FieldIterablePosting​(BitIn fileReader,
                                    int entries,
                                    DocumentIndex _doi,
                                    int _fieldCount)
                             throws java.io.IOException
        constructor
        Parameters:
        fileReader -
        entries -
        _doi -
        _fieldCount -
        Throws:
        java.io.IOException
    • 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.
      • next

        public int next()
                 throws java.io.IOException
        Move this iterator to the next posting.
        Specified by:
        next in interface IterablePosting
        Overrides:
        next in class BasicIterablePosting
        Returns:
        id of next posting, or EOL if end of posting list.
        Throws:
        java.io.IOException
      • setFieldLengths

        public void setFieldLengths​(int[] fl)
        . This operation is unsupported.
        Specified by:
        setFieldLengths in interface FieldPosting
      • 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.
      • readFields

        public void readFields​(java.io.DataInput in)
                        throws java.io.IOException
        Read this posting from specified inputstream
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable
        Overrides:
        readFields in class BasicPostingImpl
        Throws:
        java.io.IOException
      • write

        public void write​(java.io.DataOutput out)
                   throws java.io.IOException
        Write this posting to specified outputstream
        Specified by:
        write in interface org.apache.hadoop.io.Writable
        Overrides:
        write in class BasicPostingImpl
        Throws:
        java.io.IOException