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 Details

    • AndSegmentItem

      public AndSegmentItem(String rawWord, boolean isFromQuery, boolean stemmed)
    • AndSegmentItem

      public AndSegmentItem(String rawWord, String current, boolean isFromQuery, boolean stemmed)
    • AndSegmentItem

      public AndSegmentItem(PhraseSegmentItem item)
  • Method Details

    • 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
    • getIndexName

      public String getIndexName()
      Specified by:
      getIndexName in interface HasIndexItem
    • setWeight

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