Interface StoredValue


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

      • asString

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

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

        Long asLong()
        Returns the Long 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.