Documentation ¶
Index ¶
- Constants
- func ArrowColToParquetCol(field arrow.Field, col array.Interface, len int, el *parquet.SchemaElement) ([]interface{}, error)
- func CmpIntBinary(as string, bs string, order string, signed bool) bool
- func DeepCopy(src, dst interface{})
- func HeadToUpper(str string) string
- func Max(table FuncTable, a interface{}, b interface{}) interface{}
- func Min(table FuncTable, a interface{}, b interface{}) interface{}
- func NewLogicalTypeFromConvertedType(schemaElement *parquet.SchemaElement, info *Tag) *parquet.LogicalType
- func NewLogicalTypeFromFieldsMap(mp map[string]string) (*parquet.LogicalType, error)
- func NewSchemaElementFromTagMap(info *Tag) (*parquet.SchemaElement, error)
- func NewTable(rowLen, colLen int) [][]interface{}
- func PathStrIndex(str string) int
- func PathToStr(path []string) string
- func ReformPathStr(pathStr string) string
- func SizeOf(val reflect.Value) int64
- func Str2Bool(val string) (bool, error)
- func Str2Int32(val string) (int32, error)
- func StrToPath(str string) []string
- func StringToVariableName(str string) string
- func TransposeTable(table [][]interface{}) [][]interface{}
- type FuncTable
- type Tag
Constants ¶
View Source
const PAR_GO_PATH_DELIMITER = "\x01"
Variables ¶
This section is empty.
Functions ¶
func ArrowColToParquetCol ¶ added in v1.6.2
func ArrowColToParquetCol(field arrow.Field, col array.Interface, len int, el *parquet.SchemaElement) ([]interface{}, error)
ArrowColToParquetCol creates column with native parquet values from column with arrow values.
If a single record is not valid by the arrow definitions we assign it default value which we chose.
func HeadToUpper ¶
Convert the first letter of a string to uppercase
func NewLogicalTypeFromConvertedType ¶ added in v1.6.0
func NewLogicalTypeFromConvertedType(schemaElement *parquet.SchemaElement, info *Tag) *parquet.LogicalType
func NewLogicalTypeFromFieldsMap ¶ added in v1.6.0
func NewLogicalTypeFromFieldsMap(mp map[string]string) (*parquet.LogicalType, error)
func NewSchemaElementFromTagMap ¶
func NewSchemaElementFromTagMap(info *Tag) (*parquet.SchemaElement, error)
func NewTable ¶ added in v1.6.2
func NewTable(rowLen, colLen int) [][]interface{}
NewTable creates empty table with transposed columns and records
func PathStrIndex ¶ added in v1.4.0
Get the pathStr index in a path
func StringToVariableName ¶ added in v1.5.2
Convert string to a golang variable name
func TransposeTable ¶ added in v1.6.2
func TransposeTable(table [][]interface{}) [][]interface{}
TransposeTable transposes a table's rows and columns once per arrow record. We need to transpose the rows and columns because parquet-go library writes data row by row while the arrow library provides the data column by column.
Types ¶
type FuncTable ¶ added in v1.5.3
type FuncTable interface { LessThan(a interface{}, b interface{}) bool MinMaxSize(minVal interface{}, maxVal interface{}, val interface{}) (interface{}, interface{}, int32) }
func FindFuncTable ¶ added in v1.5.3
func FindFuncTable(pT *parquet.Type, cT *parquet.ConvertedType, logT *parquet.LogicalType) FuncTable
type Tag ¶
type Tag struct { InName string ExName string Type string KeyType string ValueType string ConvertedType string KeyConvertedType string ValueConvertedType string Length int32 KeyLength int32 ValueLength int32 Scale int32 KeyScale int32 ValueScale int32 Precision int32 KeyPrecision int32 ValuePrecision int32 IsAdjustedToUTC bool KeyIsAdjustedToUTC bool ValueIsAdjustedToUTC bool FieldID int32 KeyFieldID int32 ValueFieldID int32 Encoding parquet.Encoding KeyEncoding parquet.Encoding ValueEncoding parquet.Encoding OmitStats bool KeyOmitStats bool ValueOmitStats bool RepetitionType parquet.FieldRepetitionType KeyRepetitionType parquet.FieldRepetitionType ValueRepetitionType parquet.FieldRepetitionType LogicalTypeFields map[string]string KeyLogicalTypeFields map[string]string ValueLogicalTypeFields map[string]string }
`parquet:"name=Name, type=FIXED_LEN_BYTE_ARRAY, length=12"`
func StringToTag ¶
Click to show internal directories.
Click to hide internal directories.