Package com.google.gerrit.index
Interface StoredValue
public interface StoredValue
Representation of a field stored on the index. Used to load field values from different index
backends.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns thebyte[]
value of the field.Iterable<byte[]>
Returns thebyte[]
values of the field.Returns theInteger
value of the field.Returns theInteger
values of the field.asLong()
Returns theLong
value of the field.asLongs()
Returns theLong
values of the field.com.google.protobuf.MessageLite
asProto()
Returns theMessageLite
value of the field.Iterable<com.google.protobuf.MessageLite>
asProtos()
Returns theMessageLite
values of the field.asString()
Returns theString
value of the field.Returns theString
values of the field.Returns theTimestamp
value of the field.
-
Method Details
-
asString
String asString()Returns theString
value of the field. -
asStrings
Returns theString
values of the field. -
asInteger
Integer asInteger()Returns theInteger
value of the field. -
asIntegers
Returns theInteger
values of the field. -
asLong
Long asLong()Returns theLong
value of the field. -
asLongs
Returns theLong
values of the field. -
asTimestamp
Timestamp asTimestamp()Returns theTimestamp
value of the field. -
asByteArray
byte[] asByteArray()Returns thebyte[]
value of the field. -
asByteArrays
Iterable<byte[]> asByteArrays()Returns thebyte[]
values of the field. -
asProto
com.google.protobuf.MessageLite asProto()Returns theMessageLite
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 theMessageLite
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.
-