Class PureWeightedInteger

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class PureWeightedInteger
    extends PureWeightedItem
    Author:
    baldersheim
    • Constructor Detail

      • PureWeightedInteger

        public PureWeightedInteger​(long value)
      • PureWeightedInteger

        public PureWeightedInteger​(long 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
      • getValue

        public long getValue()