Class RegExpItem

    • Constructor Detail

      • RegExpItem

        public RegExpItem​(String indexName,
                          boolean isFromQuery,
                          String expression)
    • Method Detail

      • stringValue

        public String stringValue()
        Description copied from interface: BlockItem
        Returns the value of this term as a string
      • isStemmed

        public boolean isStemmed()
      • getNumWords

        public int getNumWords()
        Description copied from interface: HasIndexItem
        Returns how many phrase words does this item contain
      • setValue

        public void setValue​(String expression)
        Description copied from class: TermItem
        Sets the value of this item from a string.
        Specified by:
        setValue in class TermItem
      • getRawWord

        public String getRawWord()
        Description copied from class: TermItem
        Returns the raw form of the text leading to this term, exactly as received, including original casing
        Specified by:
        getRawWord in interface BlockItem
        Specified by:
        getRawWord in class TermItem
      • isWords

        public boolean isWords()
        Description copied from interface: BlockItem
        Returns whether this item represents normal text
        Specified by:
        isWords in interface BlockItem
        Specified by:
        isWords in class TermItem
      • 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
      • toString

        public String toString()
        Description copied from class: Item
        Returns the canonical query language string of this item. The canonical language represent an item by the string
         ([itemName] [body])
         
        where the body may recursively be other items.

        TODO (Vespa 8?): Output YQL

        Overrides:
        toString in class Item
      • equals

        public boolean equals​(Object obj)
        Description copied from class: Item
        Returns whether this item is of the same class and contains the same state as the given item.
        Overrides:
        equals in class TermItem
      • getRegexp

        public Pattern getRegexp()