Class AndSegmentItem

  • All Implemented Interfaces:
    BlockItem, HasIndexItem, java.lang.Cloneable

    public class AndSegmentItem
    extends SegmentItem
    implements BlockItem
    An immutable and'ing of a collection of sub-expressions. It does not extend AndItem to avoid code using instanceof handling it as an AndItem.
    Author:
    Steinar Knutsen
    • Constructor Detail

      • AndSegmentItem

        public AndSegmentItem​(java.lang.String rawWord,
                              boolean isFromQuery,
                              boolean stemmed)
      • AndSegmentItem

        public AndSegmentItem​(java.lang.String rawWord,
                              java.lang.String current,
                              boolean isFromQuery,
                              boolean stemmed)
    • Method Detail

      • getItemType

        public Item.ItemType getItemType()
        Description copied from class: Item
        Return the enumerated type of this item.
        Specified by:
        getItemType in class Item
      • getName

        public java.lang.String getName()
        Description copied from class: Item
        Returns the name of this item
        Specified by:
        getName in class Item
      • setWeight

        public void setWeight​(int w)
        Description copied from class: Item
        Sets the relative importance of this term
        Overrides:
        setWeight in class Item