schema

package
v1.16.9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByName

type ByName []Column

func (ByName) Len

func (a ByName) Len() int

func (ByName) Less

func (a ByName) Less(i, j int) bool

func (ByName) Swap

func (a ByName) Swap(i, j int)

type Column

type Column struct {
	Name                string   `yaml:"name"`
	DatabrewType        string   `yaml:"databrewType"`
	NativeConnectorType string   `yaml:"nativeConnectorType"`
	PK                  bool     `yaml:"pk"`
	Nullable            bool     `yaml:"nullable"`
	Columns             []Column `yaml:"columns,omitempty"`
}

type StreamSchema

type StreamSchema struct {
	StreamName string   `yaml:"stream"`
	Columns    []Column `yaml:"columns"`
}

StreamSchema represents YAML configuration of the source plugin schema. It's used to build Apache Arrow schema from this definition

func (*StreamSchema) AsArrow

func (s *StreamSchema) AsArrow() *arrow.Schema

func (*StreamSchema) SortColumnsAsc

func (s *StreamSchema) SortColumnsAsc()

type StreamSchemaObj

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

func NewStreamSchemaObj

func NewStreamSchemaObj(s []StreamSchema) *StreamSchemaObj

func (*StreamSchemaObj) AddField

func (s *StreamSchemaObj) AddField(streamName, name string, fieldType arrow.DataType, driverType string)

func (*StreamSchemaObj) FakeEvolve

func (s *StreamSchemaObj) FakeEvolve()

func (*StreamSchemaObj) GetLatestSchema

func (s *StreamSchemaObj) GetLatestSchema() []StreamSchema

func (*StreamSchemaObj) RemoveField

func (s *StreamSchemaObj) RemoveField(streamName, columnName string)

func (*StreamSchemaObj) RemoveFields

func (s *StreamSchemaObj) RemoveFields(streamName string, columnNames []string)

Jump to

Keyboard shortcuts

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