Class Tr4FieldLexiconEntry

    • Field Detail

      • fieldFrequencies

        protected int[] fieldFrequencies
    • Constructor Detail

      • Tr4FieldLexiconEntry

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

        public Tr4FieldLexiconEntry​(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: Tr4BasicLexiconEntry
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable
        Overrides:
        readFields in class Tr4BasicLexiconEntry
        Throws:
        java.io.IOException
      • write

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