schematool

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 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 (n *Node) OutputJsonSchema() string

func (*Node) OutputStruct

func (n *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 (st *SchemaTree) OutputJsonSchema() string

func (*SchemaTree) OutputStruct

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

Jump to

Keyboard shortcuts

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