Documentation
¶
Index ¶
- Variables
- type Catalog
- func (r *Catalog) CatalogType() catalog.Type
- func (r *Catalog) CheckNamespaceExists(ctx context.Context, namespace table.Identifier) (bool, error)
- func (r *Catalog) CheckTableExists(ctx context.Context, identifier table.Identifier) (bool, error)
- func (r *Catalog) CheckViewExists(ctx context.Context, identifier table.Identifier) (bool, error)
- func (r *Catalog) CommitTable(ctx context.Context, tbl *table.Table, requirements []table.Requirement, ...) (table.Metadata, string, error)
- func (r *Catalog) CreateNamespace(ctx context.Context, namespace table.Identifier, props iceberg.Properties) error
- func (r *Catalog) CreateTable(ctx context.Context, identifier table.Identifier, schema *iceberg.Schema, ...) (*table.Table, error)
- func (r *Catalog) DropNamespace(ctx context.Context, namespace table.Identifier) error
- func (r *Catalog) DropTable(ctx context.Context, identifier table.Identifier) error
- func (r *Catalog) DropView(ctx context.Context, identifier table.Identifier) error
- func (r *Catalog) ListNamespaces(ctx context.Context, parent table.Identifier) ([]table.Identifier, error)
- func (r *Catalog) ListTables(ctx context.Context, namespace table.Identifier) iter.Seq2[table.Identifier, error]
- func (r *Catalog) ListViews(ctx context.Context, namespace table.Identifier) iter.Seq2[table.Identifier, error]
- func (r *Catalog) LoadNamespaceProperties(ctx context.Context, namespace table.Identifier) (iceberg.Properties, error)
- func (r *Catalog) LoadTable(ctx context.Context, identifier table.Identifier, props iceberg.Properties) (*table.Table, error)
- func (r *Catalog) Name() string
- func (r *Catalog) PurgeTable(ctx context.Context, identifier table.Identifier) error
- func (r *Catalog) RegisterTable(ctx context.Context, identifier table.Identifier, metadataLoc string) (*table.Table, error)
- func (r *Catalog) RenameTable(ctx context.Context, from, to table.Identifier) (*table.Table, error)
- func (r *Catalog) SetPageSize(ctx context.Context, sz int) context.Context
- func (r *Catalog) UpdateNamespaceProperties(ctx context.Context, namespace table.Identifier, removals []string, ...) (catalog.PropertiesUpdateSummary, error)
- func (r *Catalog) UpdateTable(ctx context.Context, ident table.Identifier, requirements []table.Requirement, ...) (*table.Table, error)
- type Option
- func WithAdditionalProps(props iceberg.Properties) Option
- func WithAuthURI(uri *url.URL) Option
- func WithAwsConfig(cfg aws.Config) Option
- func WithCredential(cred string) Option
- func WithMetadataLocation(loc string) Option
- func WithOAuthToken(token string) Option
- func WithPrefix(prefix string) Option
- func WithScope(scope string) Option
- func WithSigV4() Option
- func WithSigV4RegionSvc(region, service string) Option
- func WithTLSConfig(config *tls.Config) Option
- func WithWarehouseLocation(loc string) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRESTError = errors.New("REST error") ErrBadRequest = fmt.Errorf("%w: bad request", ErrRESTError) ErrForbidden = fmt.Errorf("%w: forbidden", ErrRESTError) ErrAuthorizationExpired = fmt.Errorf("%w: authorization expired", ErrRESTError) ErrServerError = fmt.Errorf("%w: server error", ErrRESTError) ErrCommitFailed = fmt.Errorf("%w: commit failed, refresh and try again", ErrRESTError) ErrCommitStateUnknown = fmt.Errorf("%w: commit failed due to unknown reason", ErrRESTError) ErrOAuthError = fmt.Errorf("%w: oauth error", ErrRESTError) )
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
func NewCatalog ¶
func (*Catalog) CatalogType ¶
func (*Catalog) CheckNamespaceExists ¶
func (*Catalog) CheckTableExists ¶
func (*Catalog) CheckViewExists ¶
func (*Catalog) CommitTable ¶
func (*Catalog) CreateNamespace ¶
func (r *Catalog) CreateNamespace(ctx context.Context, namespace table.Identifier, props iceberg.Properties) error
func (*Catalog) CreateTable ¶
func (*Catalog) DropNamespace ¶
func (*Catalog) ListNamespaces ¶
func (r *Catalog) ListNamespaces(ctx context.Context, parent table.Identifier) ([]table.Identifier, error)
func (*Catalog) ListTables ¶
func (r *Catalog) ListTables(ctx context.Context, namespace table.Identifier) iter.Seq2[table.Identifier, error]
func (*Catalog) ListViews ¶
func (r *Catalog) ListViews(ctx context.Context, namespace table.Identifier) iter.Seq2[table.Identifier, error]
func (*Catalog) LoadNamespaceProperties ¶
func (r *Catalog) LoadNamespaceProperties(ctx context.Context, namespace table.Identifier) (iceberg.Properties, error)
func (*Catalog) LoadTable ¶
func (r *Catalog) LoadTable(ctx context.Context, identifier table.Identifier, props iceberg.Properties) (*table.Table, error)
func (*Catalog) PurgeTable ¶
func (*Catalog) RegisterTable ¶
func (*Catalog) RenameTable ¶
func (*Catalog) SetPageSize ¶
func (*Catalog) UpdateNamespaceProperties ¶
func (r *Catalog) UpdateNamespaceProperties(ctx context.Context, namespace table.Identifier, removals []string, updates iceberg.Properties, ) (catalog.PropertiesUpdateSummary, error)
func (*Catalog) UpdateTable ¶
type Option ¶
type Option func(*options)
func WithAdditionalProps ¶
func WithAdditionalProps(props iceberg.Properties) Option
func WithAuthURI ¶
func WithAwsConfig ¶
func WithCredential ¶
func WithMetadataLocation ¶
func WithOAuthToken ¶
func WithPrefix ¶
func WithSigV4RegionSvc ¶
func WithTLSConfig ¶
func WithWarehouseLocation ¶
Click to show internal directories.
Click to hide internal directories.