Documentation ¶
Index ¶
- Constants
- type Schema
- func (s *Schema) Clone() (c Schema)
- func (s Schema) Columns() []string
- func (s Schema) Compare(desired Schema) (Schema, bool)
- func (s Schema) Contains(key string, typ Type) bool
- func (s Schema) Except(other Schema) Schema
- func (s Schema) String() string
- func (s Schema) Union(other Schema) (Schema, bool)
- type Type
- func (t Type) Category() orc.Category
- func (t Type) MarshalJSON() ([]byte, error)
- func (t *Type) MarshalText() ([]byte, error)
- func (t Type) Reflect() reflect.Type
- func (t Type) SQL() string
- func (t Type) String() string
- func (t *Type) UnmarshalJSON(b []byte) error
- func (t *Type) UnmarshalText(text []byte) error
Constants ¶
View Source
const ( Unsupported = Type(iota) Int32 Int64 Float64 String Bool Timestamp JSON )
The types of the columns supported
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schema ¶
Schema represents a mapping between columns and their types
func (Schema) Compare ¶
Compare the schema against a desired schema and returns mismatching columns/types.
func (Schema) Except ¶
Except returns a subset of the schema which does not contain the specified schema
type Type ¶
type Type byte
Type represents the type enum
func FromOrc ¶
func FromOrc(desc *orc.TypeDescription) (Type, bool)
FromOrc maps the orc type description to our type.
func (Type) MarshalJSON ¶
MarshalJSON encodes the type to JSON
func (*Type) MarshalText ¶
MarshalText encodes the type to text
func (*Type) UnmarshalJSON ¶
UnmarshalJSON decodes the json-encoded type
func (*Type) UnmarshalText ¶
UnmarshalText unmarshals the type from text
Click to show internal directories.
Click to hide internal directories.