Interface StoredValue


public interface StoredValue
Representation of a field stored on the index. Used to load field values from different index backends.
  • Method Details

    • asString

      String asString()
      Returns the String value of the field.
    • asStrings

      Iterable<String> asStrings()
      Returns the String values of the field.
    • asInteger

      Integer asInteger()
      Returns the Integer value of the field.
    • asIntegers

      Iterable<Integer> asIntegers()
      Returns the Integer values of the field.
    • asLong

      Long asLong()
      Returns the Long value of the field.
    • asLongs

      Iterable<Long> asLongs()
      Returns the Long values of the field.
    • asTimestamp

      Timestamp asTimestamp()
      Returns the Timestamp value of the field.
    • asByteArray

      byte[] asByteArray()
      Returns the byte[] value of the field.
    • asByteArrays

      Iterable<byte[]> asByteArrays()
      Returns the byte[] values of the field.
    • asProto

      com.google.protobuf.MessageLite asProto()
      Returns the MessageLite value of the field.

      Returns null if value is not stored as protos (e.g. stored as bytes). asByteArray() can be called instead to obtain the value.

    • asProtos

      Iterable<com.google.protobuf.MessageLite> asProtos()
      Returns the MessageLite values of the field.

      Returns null if value is not stored as protos (e.g. stored as bytes). asByteArrays() can be called instead to obtain the value.