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 JSONTypeToParquetType(val reflect.Value, pT *parquet.Type, cT *parquet.ConvertedType, length int, ...) interface{}
- 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{}
- 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 DECIMAL_BYTE_ARRAY_ToString ¶ added in v1.7.0
func DECIMAL_INT_ToString ¶ added in v1.7.0
func INT96ToTime ¶ added in v1.7.0
func InterfaceToParquetType ¶ added in v1.7.0
func JSONTypeToParquetType ¶
func ParquetTypeToGoReflectType ¶ added in v1.4.0
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{}
Scan a string to parquet value; length and scale just for decimal
func TIMESTAMP_MICROSToTime ¶ added in v1.7.0
func TIMESTAMP_MILLISToTime ¶ added in v1.7.0
func TIMESTAMP_NANOSToTime ¶ added in v1.7.0
func TimeToINT96 ¶ added in v1.7.0
func TimeToTIMESTAMP_MICROS ¶ added in v1.7.0
func TimeToTIMESTAMP_MILLIS ¶ added in v1.7.0
func TimeToTIMESTAMP_NANOS ¶ added in v1.7.0
func TimeToTIME_MICROS ¶ added in v1.7.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.