Documentation ¶
Index ¶
- Constants
- func DECIMAL_BYTE_ARRAY_ToString(dec []byte, precision int, scale int) string
- func DECIMAL_INT_ToString(dec int64, precision int, scale int) string
- func INT96ToTime(int96 string) time.Time
- func InterfaceToParquetType(src interface{}, pT *parquet.Type) interface{}
- func IsUint(kind reflect.Kind) bool
- func JSONTypeToParquetType(val reflect.Value, pT *parquet.Type, cT *parquet.ConvertedType, length int, ...) (interface{}, error)
- func ParquetTypeToGoReflectType(pT *parquet.Type, rT *parquet.FieldRepetitionType) reflect.Type
- func StrIntToBinary(num string, order string, length int, signed bool) string
- func StrToParquetType(s string, pT *parquet.Type, cT *parquet.ConvertedType, length int, scale int) (interface{}, error)
- func TIMESTAMP_MICROSToTime(micros int64, adjustedToUTC bool) time.Time
- func TIMESTAMP_MILLISToTime(millis int64, adjustedToUTC bool) time.Time
- func TIMESTAMP_NANOSToTime(nanos int64, adjustedToUTC bool) time.Time
- func TimeToINT96(t time.Time) string
- func TimeToTIMESTAMP_MICROS(t time.Time, adjustedToUTC bool) int64
- func TimeToTIMESTAMP_MILLIS(t time.Time, adjustedToUTC bool) int64
- func TimeToTIMESTAMP_NANOS(t time.Time, adjustedToUTC bool) int64
- func TimeToTIME_MICROS(t time.Time, adjustedToUTC bool) int64
- func TimeToTIME_MILLIS(t time.Time, adjustedToUTC bool) int64
Constants ¶
View Source
const ( JULIAN_DAY_OF_EPOCH int64 = 2440588 MICROS_PER_DAY int64 = 3600 * 24 * 1000 * 1000 )
Variables ¶
This section is empty.
Functions ¶
func INT96ToTime ¶
func InterfaceToParquetType ¶
func JSONTypeToParquetType ¶
func StrIntToBinary ¶
order=LittleEndian or BigEndian; length is byte num
func StrToParquetType ¶
func StrToParquetType(s string, pT *parquet.Type, cT *parquet.ConvertedType, length int, scale int) (interface{}, error)
Scan a string to parquet value; length and scale just for decimal
func TIMESTAMP_MICROSToTime ¶
func TIMESTAMP_MILLISToTime ¶
func TimeToINT96 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.