pb

package
v0.0.0-...-b92c3bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use DataFile.ProtoReflect.Descriptor instead.

func (*DataFile) GetFirstBlock

func (x *DataFile) GetFirstBlock() uint64

func (*DataFile) GetLastBlock

func (x *DataFile) GetLastBlock() uint64

func (*DataFile) GetName

func (x *DataFile) GetName() string

func (*DataFile) GetSize

func (x *DataFile) GetSize() uint64

func (*DataFile) GetType

func (x *DataFile) GetType() DataFileType

func (*DataFile) ProtoMessage

func (*DataFile) ProtoMessage()

func (*DataFile) ProtoReflect

func (x *DataFile) ProtoReflect() protoreflect.Message

func (*DataFile) Reset

func (x *DataFile) Reset()

func (*DataFile) String

func (x *DataFile) String() string

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) Enum

func (x DataFileType) Enum() *DataFileType

func (DataFileType) EnumDescriptor deprecated

func (DataFileType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataFileType.Descriptor instead.

func (DataFileType) Number

func (DataFileType) String

func (x DataFileType) String() string

func (DataFileType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetBlockSize

func (x *Metadata) GetBlockSize() uint32

func (*Metadata) GetDataFiles

func (x *Metadata) GetDataFiles() []*DataFile

func (*Metadata) GetNumBlocks

func (x *Metadata) GetNumBlocks() uint64

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL