Class MarkerWordItem

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

    public class MarkerWordItem
    extends WordItem
    Special words known by the index used for marking things. The reserved word itself is not public, while a symbol representation is.
    Author:
    bratseth
    • Method Detail

      • isStartAnchor

        public boolean isStartAnchor()
      • isEndAnchor

        public boolean isEndAnchor()
      • getEncodedWord

        protected java.lang.String getEncodedWord()
        Returns the marker word for encoding
        Overrides:
        getEncodedWord in class WordItem
      • equals

        public boolean equals​(java.lang.Object o)
        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 WordItem
      • disclose

        public void disclose​(com.yahoo.prelude.query.textualrepresentation.Discloser discloser)
        Overrides:
        disclose in class WordItem
      • createStartOfHost

        public static MarkerWordItem createStartOfHost​(java.lang.String indexName)
        Creates a special word item which marks the start of a host name
      • createStartOfHost

        public static MarkerWordItem createStartOfHost()
        Creates a special word item which marks the start of a host name, matching the default index
      • createEndOfHost

        public static MarkerWordItem createEndOfHost​(java.lang.String indexName)
        Creates a special word item which marks the end of a host name
      • createEndOfHost

        public static MarkerWordItem createEndOfHost()
        Creates a special word item which marks the end of a host name matching the default index