fields

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Type            string
	FieldNames      []string
	FieldTypes      []string
	TypeName        string
	FieldType       string
	ParquetType     string
	ColumnName      string
	Category        string
	RepetitionTypes []RepetitionType
}

func (Field) Child

func (f Field) Child(i int) Field

func (Field) DefChild

func (f Field) DefChild(def int) Field

func (Field) DefIndex

func (f Field) DefIndex(def int) int

func (Field) Defs

func (f Field) Defs() []int

func (Field) Len

func (f Field) Len() int

func (Field) MaxDef

func (f Field) MaxDef() int

func (Field) MaxRep

func (f Field) MaxRep() uint

func (Field) NDefs

func (f Field) NDefs() int

func (Field) NilField

func (f Field) NilField(i int) (string, RepetitionType, int, int)

func (Field) NthDef

func (f Field) NthDef(i int) (int, RepetitionType)

func (Field) Optional

func (f Field) Optional() bool

func (Field) Parent

func (f Field) Parent(i int) Field

func (Field) Path

func (f Field) Path() string

func (Field) RepCases

func (f Field) RepCases(seen int) []RepCase

func (Field) RepIndex

func (f Field) RepIndex(rep int) int

func (Field) Repeated

func (f Field) Repeated() bool

func (Field) RepetitionType

func (f Field) RepetitionType() string

func (Field) Required

func (f Field) Required() bool

type RepCase

type RepCase struct {
	Case string
	Rep  int
}

type RepetitionType

type RepetitionType int
const (
	Required RepetitionType = 0
	Optional RepetitionType = 1
	Repeated RepetitionType = 2
)

type RepetitionTypes

type RepetitionTypes []RepetitionType

func (RepetitionTypes) MaxDef

func (r RepetitionTypes) MaxDef() uint8

func (RepetitionTypes) MaxRep

func (r RepetitionTypes) MaxRep() uint8

Jump to

Keyboard shortcuts

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