metadata

package
v0.0.0-...-f465334 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Index *index.Config
}

type IndexInfo

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

func NewIndexInfo

func NewIndexInfo(
	indexName string,
	fieldName schema.FieldName,
	tableSchema *schema.Schema,
	tx *transaction.Transaction,
	statInfo StatInfo,
	cfg *index.Config,
) (*IndexInfo, error)

func (*IndexInfo) BlockAccessed

func (i *IndexInfo) BlockAccessed() int

func (*IndexInfo) DistinctValues

func (i *IndexInfo) DistinctValues(fieldName schema.FieldName) int

func (*IndexInfo) FieldName

func (i *IndexInfo) FieldName() schema.FieldName

func (*IndexInfo) IndexName

func (i *IndexInfo) IndexName() string

func (*IndexInfo) Open

func (i *IndexInfo) Open() (index.Index, error)

func (*IndexInfo) RecordsOutput

func (i *IndexInfo) RecordsOutput() int

type IndexManager

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

func NewIndexManager

func NewIndexManager(isNew bool, tableManager *TableManager, statManager *StatManager, tx *transaction.Transaction, cfg *Config) (*IndexManager, error)

func (*IndexManager) CreateIndex

func (m *IndexManager) CreateIndex(indexName, tableName string, fieldName schema.FieldName, tx *transaction.Transaction) error

func (*IndexManager) IndexInfo

func (m *IndexManager) IndexInfo(tableName string, tx *transaction.Transaction) (map[schema.FieldName]IndexInfo, error)

type Manager

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

func NewManager

func NewManager(isNew bool, tx *transaction.Transaction, cfg *Config) (*Manager, error)

func (*Manager) CreateIndex

func (m *Manager) CreateIndex(indexName, tableName string, fieldName schema.FieldName, tx *transaction.Transaction) error

func (*Manager) CreateTable

func (m *Manager) CreateTable(tableName string, s schema.Schema, tx *transaction.Transaction) error

func (*Manager) CreateView

func (m *Manager) CreateView(viewName, viewDef string, tx *transaction.Transaction) error

func (*Manager) IndexInfo

func (m *Manager) IndexInfo(tableName string, tx *transaction.Transaction) (map[schema.FieldName]IndexInfo, error)

func (*Manager) Layout

func (m *Manager) Layout(tableName string, tx *transaction.Transaction) (*record.Layout, error)

func (*Manager) StatInfo

func (m *Manager) StatInfo(tableName string, layout *record.Layout, tx *transaction.Transaction) (StatInfo, error)

func (*Manager) ViewDef

func (m *Manager) ViewDef(viewName string, tx *transaction.Transaction) (string, bool, error)

type StatInfo

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

func NewStatInfo

func NewStatInfo(numBlocks, numRecords int) StatInfo

func (StatInfo) BlocksAccessed

func (s StatInfo) BlocksAccessed() int

func (StatInfo) DistinctValues

func (s StatInfo) DistinctValues(f schema.FieldName) int

func (StatInfo) RecordsOutput

func (s StatInfo) RecordsOutput() int

type StatManager

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

func NewStatManager

func NewStatManager(tableManager *TableManager, tx *transaction.Transaction) (*StatManager, error)

func (*StatManager) StatInfo

func (m *StatManager) StatInfo(tableName string, layout *record.Layout, tx *transaction.Transaction) (StatInfo, error)

type TableManager

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

func NewTableManager

func NewTableManager(isNew bool, tx *transaction.Transaction) (*TableManager, error)

func (*TableManager) CreateTable

func (m *TableManager) CreateTable(tableName string, schema schema.Schema, tx *transaction.Transaction) error

func (*TableManager) Layout

func (m *TableManager) Layout(tableName string, tx *transaction.Transaction) (*record.Layout, error)

type ViewManager

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

func NewViewManager

func NewViewManager(isNew bool, tableManager *TableManager, tx *transaction.Transaction) (*ViewManager, error)

func (*ViewManager) CreateView

func (m *ViewManager) CreateView(viewName, viewDef string, tx *transaction.Transaction) error

func (*ViewManager) ViewDef

func (m *ViewManager) ViewDef(viewName string, tx *transaction.Transaction) (string, bool, error)

Jump to

Keyboard shortcuts

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