Documentation ¶
Index ¶
- Variables
- func LoadFromReader(r io.Reader) (*pb.Metadata, error)
- func StoreToWriter(w io.Writer, m *pb.Metadata) error
- type DataFile
- type DataFileType
- type Metadata
- func (m *Metadata) BlockSize() int
- func (m *Metadata) CompactWriteLog(writeLogName string, sparseFileName string)
- func (m *Metadata) ListDataFiles() []DataFile
- func (m *Metadata) NumBlocks() uint64
- func (m *Metadata) PrependReaderFiles(fs []string)
- func (m *Metadata) PushSparseDataFile(name string)
- func (m *Metadata) PushWriteLog(name string)
- func (m *Metadata) RemoveSparseDataFile(name string)
- func (m *Metadata) RemoveWriteLog(name string)
- func (m *Metadata) Save() error
- func (m *Metadata) SaveNoError()
- func (m *Metadata) Size() int64
- func (m *Metadata) String() string
- type MetadataStore
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEntryNotFound = errors.New("metadata: entry not found")
)
Functions ¶
Types ¶
type DataFile ¶
type DataFile interface { Name() string Type() DataFileType }
type DataFileType ¶
type DataFileType int
const ( DataFile_UNSPECIFIED DataFileType = iota DataFile_WRITE_LOG DataFile_SPARSE_TABLE )
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
func LoadMetadata ¶
func LoadMetadata(store MetadataStore) (*Metadata, error)
func NewMetadata ¶
func NewMetadata(store MetadataStore, size int64) *Metadata
func NewMetadata_BlockStore ¶
func NewMetadata_BlockStore(store MetadataStore, blockSize int, numBlocks uint64) *Metadata
func (*Metadata) CompactWriteLog ¶
func (*Metadata) ListDataFiles ¶
func (*Metadata) PrependReaderFiles ¶
func (*Metadata) PushSparseDataFile ¶
func (*Metadata) PushWriteLog ¶
func (*Metadata) RemoveSparseDataFile ¶
func (*Metadata) RemoveWriteLog ¶
func (*Metadata) SaveNoError ¶
func (m *Metadata) SaveNoError()
Click to show internal directories.
Click to hide internal directories.