Class AndSegmentItem

  • All Implemented Interfaces:
    BlockItem, HasIndexItem, 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​(String rawWord,
                              boolean isFromQuery,
                              boolean stemmed)
      • AndSegmentItem

        public AndSegmentItem​(String rawWord,
                              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 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