Class Value.EmptyValue

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

public static class Value.EmptyValue extends Value
  • Constructor Details

    • EmptyValue

      public EmptyValue()
  • 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
    • asBool

      public boolean asBool()
      Description copied from interface: Inspector
      Access the inspector's value if it's a BOOLEAN; otherwise throws exception
      Specified by:
      asBool in interface Inspector
      Overrides:
      asBool in class Value
    • asLong

      public long asLong()
      Description copied from interface: Inspector
      Access the inspector's value if it's a LONG (or DOUBLE); otherwise throws exception
      Specified by:
      asLong in interface Inspector
      Overrides:
      asLong in class Value
    • asDouble

      public double asDouble()
      Description copied from interface: Inspector
      Access the inspector's value if it's a DOUBLE (or LONG); otherwise throws exception
      Specified by:
      asDouble in interface Inspector
      Overrides:
      asDouble in class Value
    • asString

      public String asString()
      Description copied from interface: Inspector
      Access the inspector's value if it's a STRING; otherwise throws exception
      Specified by:
      asString in interface Inspector
      Overrides:
      asString in class Value
    • asUtf8

      public byte[] asUtf8()
      Description copied from interface: Inspector
      Access the inspector's value (in utf-8 representation) if it's a STRING; otherwise throws exception
      Specified by:
      asUtf8 in interface Inspector
      Overrides:
      asUtf8 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