Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadJsonSchema ¶
/ Load Schema in JSON format and convert to arrow schema in serialized bytes
func SerializeAsArrowSchema ¶
func ToArrowField ¶
func ToArrowField(f FieldWrapper) arrow.Field
Types ¶
type Field ¶
type Field struct {
ID uint `json:"id"`
Unicode rune `json:"unicode"`
Marker fbs.Marker `json:"marker"`
Deprecate bool `json:"deprecate"`
Name string `json:"name"`
// leave this as a json RawMessage in order to partially unmarshal as needed
// during marshal/unmarshal time so we can determine what the structure is
// actually expected to be.
//Type json.RawMessage `json:"type"`
Type string `json:"type"`
Nullable bool `json:"nullable"`
Children []FieldWrapper `json:"children"`
Metadata []metaKV `json:"metadata,omitempty"`
// contains filtered or unexported fields
}
type FieldWrapper ¶
type FieldWrapper struct {
Field
}
FieldWrapper gets used in order to hook into the JSON marshalling and unmarshalling without creating an infinite loop when dealing with the children fields.
func FromArrowField ¶
func FromArrowField(arrowField arrow.Field) FieldWrapper
func (FieldWrapper) MarshalJSON ¶
func (f FieldWrapper) MarshalJSON() ([]byte, error)
func (*FieldWrapper) UnmarshalJSON ¶
func (f *FieldWrapper) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.