Interface SampleValue

All Superinterfaces:
org.json.simple.JSONAware
All Known Implementing Classes:
ByteBufSampleValue, ScalarStringSampleValue, ScalarValue, VectorStringSampleValue, VectorValue

public interface SampleValue extends org.json.simple.JSONAware
Get the value of this event. Within the archiver appliance, we only ask some form of converting to a string and perhaps a Number. The toString for vectors generates a JSON form of the vector...
Author:
mshankar
  • Method Details

    • toString

      String toString()
      Overrides:
      toString in class Object
    • getElementCount

      int getElementCount()
    • getValue

      Number getValue()
    • getValue

      Number getValue(int index)
    • getStringValue

      String getStringValue(int index)
    • toJSONString

      String toJSONString()
      Specified by:
      toJSONString in interface org.json.simple.JSONAware
    • getValues

      List getValues()
    • getValueAsBytes

      ByteBuffer getValueAsBytes()
      Return the value as a ByteBuffer that is ready to read.
      Returns:
      ByteBuffer