Class NullItem

  • All Implemented Interfaces:

    public class NullItem
    extends Item
    A place holder for null queries to make searchers easier to write.
    Steinar Knutsen
    • Constructor Detail

      • NullItem

        public NullItem()
    • Method Detail

      • setIndexName

        public void setIndexName​(java.lang.String index)
        Does nothing
        Specified by:
        setIndexName in class Item
      • encode

        public int encode​(java.nio.ByteBuffer buffer)
        Specified by:
        encode in class Item
      • getItemType

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

        public void appendBodyString​(java.lang.StringBuilder buffer)
        Description copied from class: Item
        Override to append the item body in the canonical query language of this item. An item is usually represented by the string
         ([itemName] [body])
        The body must be appended appended by this method.
        Specified by:
        appendBodyString in class Item
      • appendHeadingString

        public void appendHeadingString​(java.lang.StringBuilder buffer)
        Description copied from class: Item
        Appends the heading of this string. As default getName() followed by a space.
        appendHeadingString 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
      • getTermCount

        public int getTermCount()
        Specified by:
        getTermCount in class Item