Documentation ¶
Index ¶
- Variables
- type DataFile
- func (*DataFile) Descriptor() ([]byte, []int)deprecated
- func (x *DataFile) GetFirstBlock() uint64
- func (x *DataFile) GetLastBlock() uint64
- func (x *DataFile) GetName() string
- func (x *DataFile) GetSize() uint64
- func (x *DataFile) GetType() DataFileType
- func (*DataFile) ProtoMessage()
- func (x *DataFile) ProtoReflect() protoreflect.Message
- func (x *DataFile) Reset()
- func (x *DataFile) String() string
- type DataFileType
- func (DataFileType) Descriptor() protoreflect.EnumDescriptor
- func (x DataFileType) Enum() *DataFileType
- func (DataFileType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DataFileType) Number() protoreflect.EnumNumber
- func (x DataFileType) String() string
- func (DataFileType) Type() protoreflect.EnumType
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetBlockSize() uint32
- func (x *Metadata) GetDataFiles() []*DataFile
- func (x *Metadata) GetNumBlocks() uint64
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DataFileType_name = map[int32]string{ 0: "UNSPECIFIED", 1: "SPARSE_TABLE", 2: "WRITE_LOG", } DataFileType_value = map[string]int32{ "UNSPECIFIED": 0, "SPARSE_TABLE": 1, "WRITE_LOG": 2, } )
Enum value maps for DataFileType.
View Source
var File_metadata_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DataFile ¶
type DataFile struct { // Type of the data file. Type DataFileType `protobuf:"varint,1,opt,name=type,proto3,enum=metadata_pb.DataFileType" json:"type,omitempty"` // Name of the file. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Size of the data file, in bytes. Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // First/last block contained in the data file. FirstBlock uint64 `protobuf:"varint,16,opt,name=first_block,json=firstBlock,proto3" json:"first_block,omitempty"` LastBlock uint64 `protobuf:"varint,17,opt,name=last_block,json=lastBlock,proto3" json:"last_block,omitempty"` // contains filtered or unexported fields }
func (*DataFile) Descriptor
deprecated
func (*DataFile) GetFirstBlock ¶
func (*DataFile) GetLastBlock ¶
func (*DataFile) GetType ¶
func (x *DataFile) GetType() DataFileType
func (*DataFile) ProtoMessage ¶
func (*DataFile) ProtoMessage()
func (*DataFile) ProtoReflect ¶
func (x *DataFile) ProtoReflect() protoreflect.Message
type DataFileType ¶
type DataFileType int32
const ( DataFileType_UNSPECIFIED DataFileType = 0 DataFileType_SPARSE_TABLE DataFileType = 1 DataFileType_WRITE_LOG DataFileType = 2 )
func (DataFileType) Descriptor ¶
func (DataFileType) Descriptor() protoreflect.EnumDescriptor
func (DataFileType) Enum ¶
func (x DataFileType) Enum() *DataFileType
func (DataFileType) EnumDescriptor
deprecated
func (DataFileType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DataFileType.Descriptor instead.
func (DataFileType) Number ¶
func (x DataFileType) Number() protoreflect.EnumNumber
func (DataFileType) String ¶
func (x DataFileType) String() string
func (DataFileType) Type ¶
func (DataFileType) Type() protoreflect.EnumType
type Metadata ¶
type Metadata struct { // Block size, in bytes. BlockSize uint32 `protobuf:"varint,1,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"` // Size of device, in blocks. NumBlocks uint64 `protobuf:"varint,2,opt,name=num_blocks,json=numBlocks,proto3" json:"num_blocks,omitempty"` // List of data files, sorted oldest first. DataFiles []*DataFile `protobuf:"bytes,3,rep,name=data_files,json=dataFiles,proto3" json:"data_files,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetBlockSize ¶
func (*Metadata) GetDataFiles ¶
func (*Metadata) GetNumBlocks ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.