Class MemoryFieldsLexiconEntry

    • Constructor Detail

      • MemoryFieldsLexiconEntry

        public MemoryFieldsLexiconEntry​(int termid,
                                        int df,
                                        int tf,
                                        int[] fields)
        Constructor (termid, df, tf, fields).
      • MemoryFieldsLexiconEntry

        public MemoryFieldsLexiconEntry​(int df,
                                        int tf,
                                        int[] fields)
        Constructor (df, tf, fields).
      • MemoryFieldsLexiconEntry

        public MemoryFieldsLexiconEntry​(int termid)
        Constructor (termid).
    • 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.
      • add

        public void add​(EntryStatistics le)
        Increment the statistics of this object by that of another.
        Specified by:
        add in interface EntryStatistics
        Overrides:
        add in class MemoryLexiconEntry
        Parameters:
        le - the other object whose statistics are used to increment the statistics of this object.
      • subtract

        public void subtract​(EntryStatistics le)
        Decrement the statistics of this object by that of another.
        Specified by:
        subtract in interface EntryStatistics
        Overrides:
        subtract in class MemoryLexiconEntry
        Parameters:
        le - the other object whose statistics are used to decrement the statistics of this object.