schematool

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTypeStr

func GetTypeStr(pT *parquet.Type, cT *parquet.ConvertedType) string

func ParquetTypeToGoTypeStr

func ParquetTypeToGoTypeStr(pT *parquet.Type, cT *parquet.ConvertedType) string

func ParquetTypeToParquetTypeStr

func ParquetTypeToParquetTypeStr(pT *parquet.Type, cT *parquet.ConvertedType) (string, string)

func Strip

func Strip(s string) string

Types

type Node

type Node struct {
	Indent   string
	SE       *parquet.SchemaElement
	Children []*Node
}

func NewNode

func NewNode(schema *parquet.SchemaElement) *Node

func (*Node) OutputJsonSchema

func (self *Node) OutputJsonSchema() string

func (*Node) OutputStruct

func (self *Node) OutputStruct(withName bool, withTags bool) string

type SchemaTree

type SchemaTree struct {
	Root *Node
}

func CreateSchemaTree

func CreateSchemaTree(schemas []*parquet.SchemaElement) *SchemaTree

func (*SchemaTree) OutputJsonSchema

func (self *SchemaTree) OutputJsonSchema() string

func (*SchemaTree) OutputStruct

func (self *SchemaTree) OutputStruct(withTags bool) string

Jump to

Keyboard shortcuts

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