@API(value=MAINTAINED) public interface RecordTypeOrBuilder
RecordType
and RecordTypeBuilder
classes that contains accessors that they are both expected to have. This includes
the data necessary to know what is in a record and what indexes are associated with it.Modifier and Type | Method and Description |
---|---|
Descriptors.Descriptor |
getDescriptor()
Get the descriptor of the underlying message type.
|
List<Index> |
getIndexes()
Get the list of indexes that are on this record and only this record.
|
List<Index> |
getMultiTypeIndexes()
Gets the list of indexes that are on multiple record types one of which is this type.
|
String |
getName()
Get the name of the record type.
|
KeyExpression |
getPrimaryKey()
Gets the primary key expression for this record type.
|
Object |
getRecordTypeKey()
Gets the
Tuple element value that will be used by RecordTypeKeyExpression for this record type. |
Integer |
getSinceVersion()
Gets a metadata version, which shows when this record type got introduced in the metadata.
|
@Nonnull String getName()
@Nonnull Descriptors.Descriptor getDescriptor()
@Nonnull List<Index> getIndexes()
@Nonnull List<Index> getMultiTypeIndexes()
Index
es that are on all record types (universal indexes) within a given
metadata configuration.@Nullable KeyExpression getPrimaryKey()
@Nullable Integer getSinceVersion()
null
if this information is not available)@Nullable Object getRecordTypeKey()
Tuple
element value that will be used by RecordTypeKeyExpression
for this record type.
The value should be unique among record types and stable in the face of meta-data changes.