Class Value.DataValue

java.lang.Object
com.yahoo.data.access.simple.Value
com.yahoo.data.access.simple.Value.DataValue
All Implemented Interfaces:
Inspectable, Inspector
Enclosing class:
Value

public static class Value.DataValue extends Value
  • Constructor Details

    • DataValue

      public DataValue(byte[] v)
  • Method Details

    • valid

      public boolean valid()
      Description copied from interface: Inspector
      Check if the inspector is valid. If you try to access a field or array entry that does not exist, you will get an invalid Inspector returned.
      Specified by:
      valid in interface Inspector
      Overrides:
      valid in class Value
    • type

      public Type type()
      Description copied from interface: Inspector
      Get the type of an inspector
      Specified by:
      type in interface Inspector
      Overrides:
      type in class Value
    • asData

      public byte[] asData()
      Description copied from interface: Inspector
      Access the inspector's value if it's DATA; otherwise throws exception
      Specified by:
      asData in interface Inspector
      Overrides:
      asData in class Value
    • asData

      public byte[] asData(byte[] x)
      Description copied from interface: Inspector
      Get the inspector's value (or the supplied default), never throws
      Specified by:
      asData in interface Inspector
      Overrides:
      asData in class Value