Class RecordMetaData

  • All Implemented Interfaces:
    RecordMetaDataProvider

    @API(MAINTAINED)
    public class RecordMetaData
    extends Object
    implements RecordMetaDataProvider
    Meta-data for Record Layer record stores. Records are represented using Protobuf Messages. Each message Descriptors.Descriptor corresponds to a RecordType. All message types in the database come from a single Descriptors.FileDescriptor. The Protobuf file must also define a union message type (conventionally named RecordTypeUnion) with fields for each of the possible record types. When serializing, the record is put in the corresponding field and the whole saved as a byte string. Then when deserializing, the returned record can be of any of the allowed types. Meta-data can also define any number of secondary Indexes for record types.
    See Also:
    RecordMetaDataBuilder