Class FieldLexiconEntry

    • Field Detail

      • fieldFrequencies

        protected int[] fieldFrequencies
    • Constructor Detail

      • FieldLexiconEntry

        public FieldLexiconEntry​(int fieldCount)
        Construct an instance of the class with
        Parameters:
        fieldCount -
      • FieldLexiconEntry

        public FieldLexiconEntry​(int[] _fieldFrequencies)
        Construct an instance of the class with
        Parameters:
        _fieldFrequencies -
    • Method Detail

      • getFieldFrequencies

        public int[] getFieldFrequencies()
        Return the frequencies (total numbers of occurrences) of the term for each field.
        Specified by:
        getFieldFrequencies in interface FieldEntryStatistics
        Returns:
        the frequencies (total numbers of occurrences) of the term for each field.
      • setFieldFrequencies

        public void setFieldFrequencies​(int[] _fieldFrequencices)
        Set the frequencies for each field
      • readFields

        public void readFields​(java.io.DataInput in)
                        throws java.io.IOException
        Description copied from class: BasicLexiconEntry
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable
        Overrides:
        readFields in class BasicLexiconEntry
        Throws:
        java.io.IOException
      • write

        public void write​(java.io.DataOutput out)
                   throws java.io.IOException
        Description copied from class: BasicLexiconEntry
        Specified by:
        write in interface org.apache.hadoop.io.Writable
        Overrides:
        write in class BasicLexiconEntry
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Description copied from class: LexiconEntry
        returns a string representation of this lexicon entry
        Overrides:
        toString in class LexiconEntry