Documentation ¶
Index ¶
- type Element
- type Tree
- func (tree *Tree) Delete(name string)
- func (tree *Tree) Get(name string) (element *Element, ok bool)
- func (tree *Tree) Length() int
- func (tree *Tree) Range(f func(name string, element *Element) bool)
- func (tree *Tree) ReadOnly() bool
- func (tree *Tree) Set(name string, element *Element) error
- func (tree *Tree) String() string
- func (tree *Tree) ToParquetSchema() (schemaList []*parquet.SchemaElement, valueElements []*Element, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct { parquet.SchemaElement Encoding *parquet.Encoding // Optional; defaults is computed. CompressionType *parquet.CompressionCodec // Optional; defaults to SNAPPY. Children *Tree MaxDefinitionLevel int64 MaxRepetitionLevel int64 PathInTree string PathInSchema string // contains filtered or unexported fields }
Element - represents schema element and its children. Any element must have Name and RepetitionType fields set.
func NewElement ¶
func NewElement(name string, repetitionType parquet.FieldRepetitionType, elementType *parquet.Type, convertedType *parquet.ConvertedType, encoding *parquet.Encoding, compressionType *parquet.CompressionCodec, children *Tree) (*Element, error)
NewElement - creates new element.
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
Tree - represents tree of schema. Tree preserves order in which elements are added.
func (*Tree) Range ¶
Range - calls f sequentially for each name and its element. If f returns false, range stops the iteration.
func (*Tree) ToParquetSchema ¶
func (tree *Tree) ToParquetSchema() (schemaList []*parquet.SchemaElement, valueElements []*Element, err error)
ToParquetSchema - returns list of parquet SchemaElement and list of elements those stores values.
Click to show internal directories.
Click to hide internal directories.