Class FieldTermStack.TermInfo

  • All Implemented Interfaces:
    java.lang.Comparable<FieldTermStack.TermInfo>
    Enclosing class:
    FieldTermStack

    public static class FieldTermStack.TermInfo
    extends java.lang.Object
    implements java.lang.Comparable<FieldTermStack.TermInfo>
    Single term with its position/offsets in the document and IDF weight. It is Comparable but considers only position.
    • Constructor Detail

      • TermInfo

        public TermInfo​(java.lang.String text,
                        int startOffset,
                        int endOffset,
                        int position,
                        float weight)
    • Method Detail

      • getNext

        public FieldTermStack.TermInfo getNext()
        Returns the next TermInfo at this same position. This is a circular list!
      • getText

        public java.lang.String getText()
      • getStartOffset

        public int getStartOffset()
      • getEndOffset

        public int getEndOffset()
      • getPosition

        public int getPosition()
      • getWeight

        public float getWeight()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object