Class PureWeightedString

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class PureWeightedString
    extends PureWeightedItem
    Author:
    baldersheim
    • Constructor Detail

      • PureWeightedString

        public PureWeightedString​(java.lang.String value)
      • PureWeightedString

        public PureWeightedString​(java.lang.String value,
                                  int weight)
    • 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
      • encodeThis

        protected void encodeThis​(java.nio.ByteBuffer buffer)
        Overrides:
        encodeThis in class Item
      • getTermCount

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

        protected 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.
        Overrides:
        appendBodyString in class PureWeightedItem
      • getString

        public java.lang.String getString()