Documentation ¶
Index ¶
- Constants
- func Generate(options *Options) error
- type Node
- func (n *Node) CastNativeBegin() string
- func (n *Node) CastNativeEnd() string
- func (n *Node) CastParquetBegin() string
- func (n *Node) CastParquetEnd() string
- func (n *Node) CheckValue() string
- func (n *Node) IsOptional() bool
- func (n *Node) IsRepeated() bool
- func (n *Node) ParquetType() string
- func (n *Node) Path() string
- func (n *Node) RelativePath() string
- func (n *Node) SimpleType() string
- func (n *Node) StructType(maxDef int) string
- type NodeParams
- type Nodes
- func (n Nodes) AccessorOwnerPath(endNodePos int) string
- func (n Nodes) DefCasePath(def int) string
- func (n Nodes) DefCasePathPos(def int) int
- func (n Nodes) DefCaseValue(def int) string
- func (n Nodes) DefNilNode(def int) *Node
- func (n Nodes) DefPos(def int) int
- func (n *Nodes) Init(omitEmpty bool)
- func (n Nodes) Leaf() *Node
- func (n Nodes) MaxDef() int
- func (n Nodes) MaxRep() int
- func (n Nodes) MethodSuffix() string
- func (n Nodes) Names() []string
- func (n Nodes) NewParams(code string) *NodeParams
- func (n Nodes) OwnerType() string
- func (n Nodes) Path() []string
- func (n Nodes) PathList() string
- func (n Nodes) RepCasePath(rep int) string
- func (n Nodes) RepCaseValue(rep int) string
- func (n Nodes) RepPos(rep int) int
- func (n Nodes) RepetitionTypes() []int
- func (n Nodes) RepetitionTypesList() string
- func (n Nodes) SchemaOptions() string
- type Options
- type Template
Constants ¶
View Source
const (
PARQUET_KEY = "parquet"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { OwnerType string OwnerPath string Def int Rep int Pos int Field *toolbox.FieldInfo FieldName string Parent *Node // contains filtered or unexported fields }
func (*Node) CastNativeBegin ¶
func (*Node) CastNativeEnd ¶
func (*Node) CastParquetBegin ¶
func (*Node) CastParquetEnd ¶
func (*Node) CheckValue ¶
func (*Node) IsOptional ¶
func (*Node) IsRepeated ¶
func (*Node) ParquetType ¶
func (*Node) RelativePath ¶
func (*Node) SimpleType ¶
func (*Node) StructType ¶
type NodeParams ¶
type NodeParams struct { MethodSuffix string OwnerType string ParquetType string ParquetTypeTitle string FieldName string OwnerPath string FieldPath string FieldType string Code string CastNativeBegin string CastNativeEnd string NativeType string CastParquetBegin string CastParquetEnd string StructType string OwnerAlias string MaxRep int }
type Nodes ¶
type Nodes []*Node
func (Nodes) AccessorOwnerPath ¶
func (Nodes) DefCasePath ¶
DefCaseAppendPath produces optional/repeated case mutator path
func (Nodes) DefCasePathPos ¶
DefCasePathPos returns the node position where supplied is equal or less to node rep, or -1 otherwise
func (Nodes) DefCaseValue ¶
DefCaseAppendPath produces case init value
func (Nodes) DefNilNode ¶
func (Nodes) MethodSuffix ¶
func (Nodes) NewParams ¶
func (n Nodes) NewParams(code string) *NodeParams
func (Nodes) RepCasePath ¶
DefCaseAppendPath produces accessorOpt to append at depth
func (Nodes) RepCaseValue ¶
RepCaseValue produces accessorOpt to append at depth
func (Nodes) RepetitionTypes ¶
func (Nodes) RepetitionTypesList ¶
func (Nodes) SchemaOptions ¶
type Options ¶
type Options struct { Source string `short:"s" long:"sourceURL" description:"source URL"` Dest string `short:"d" long:"destinationURL" description:"destination URL"` Type string `short:"t" long:"struct type" description:"struct type"` OmitEmpty bool `short:"o" long:"omitEmpty" description:"Omit Empty type"` }
Options represents Cli options
Click to show internal directories.
Click to hide internal directories.