delta

package
v0.0.0-...-2fdbb4a Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogDir             = "_delta_log"
	LastCheckPointFile = "_last_checkpoint"
	AddPath            = "add.path"
	RemovePath         = "remove.path"
	CDCPath            = "cdc.path"
	MetadataPath       = "metaData.id"
	TxnPath            = "txn.lastUpdated"
	ProtocolPath       = "protocol.minReaderVersion"
)

Variables

Functions

This section is empty.

Types

type Action

type Action struct {
	Path            string
	DataChange      bool
	PartitionValues map[string]string
	Size            int64
	Tags            map[string]string
}

type ActionFormat

type ActionFormat struct {
	Provider string
	Options  map[string]string
}

type ActionTypes

type ActionTypes interface {
	AddAction | RemoveAction | Metadata | CommitInfo | Protocol
}

type AddAction

type AddAction struct {
	Action
	ModificationTime      int64
	PartitionValuesParsed parquet.RowGroup
	Stats                 string
	StatsParsed           parquet.RowGroup
}

type Checkpoint

type Checkpoint struct {
	Version int64 //20 digit decimals
	Size    int64
	Parts   uint32 //10 digit decimals
}

type CommitInfo

type CommitInfo map[string]interface{}

type Metadata

type Metadata struct {
	ID               uuid.UUID
	Name             string
	Description      string
	Format           ActionFormat
	SchemaString     string
	PartitionColumns []string
	CreatedTime      int64
	Configuration    map[string]string
}

type Protocol

type Protocol struct {
	MinReaderVersion int32
	MinWriterVersion int32
}

type RemoveAction

type RemoveAction struct {
	Action
	DeletionTimestamp    int64
	ExtendedFileMetadata bool
}

type Table

type Table struct {
	Storage          storage.Backend
	Options          TableOptions
	Version          int64
	VersionTimestamp int64
	URI              string
	State            TableState
	// contains filtered or unexported fields
}

func LoadTable

func LoadTable(uri string) (*Table, error)

func NewTable

func NewTable(uri string) *Table

type TableOptions

type TableOptions struct {
	// contains filtered or unexported fields
}

type TableState

type TableState struct {
	Tombstones               map[string]RemoveAction
	Files                    []AddAction
	CommitInfos              []CommitInfo
	AppTransactionVersion    map[string]int64
	MinReaderVersion         int32
	MinWriterVersion         int32
	CurrentMetadata          Metadata
	TombstoneRetentionMillis int64
	LogRetentionMillis       int64
	EnableExpiredLogCleanup  bool
}

Directories

Path Synopsis
s3
utils

Jump to

Keyboard shortcuts

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