package literal
import "github.com/substrait-io/substrait-go/v3/literal"
Index ¶
- func NewBool(value bool, nullable bool) expr.Literal
- func NewDate(days int, nullable bool) (expr.Literal, error)
- func NewDateFromString(value string, nullable bool) (expr.Literal, error)
- func NewDecimalFromApdDecimal(value *apd.Decimal, nullable bool) (expr.Literal, error)
- func NewDecimalFromString(value string, nullable bool) (expr.Literal, error)
- func NewDecimalFromTwosComplement(twosComplement []byte, precision, scale int32, nullable bool) (expr.Literal, error)
- func NewFixedBinary(value []byte, nullable bool) (expr.Literal, error)
- func NewFixedChar(value string, nullable bool) (expr.Literal, error)
- func NewFloat32(value float32, nullable bool) expr.Literal
- func NewFloat64(value float64, nullable bool) expr.Literal
- func NewInt16(value int16, nullable bool) expr.Literal
- func NewInt32(value int32, nullable bool) expr.Literal
- func NewInt64(value int64, nullable bool) expr.Literal
- func NewInt8(value int8, nullable bool) expr.Literal
- func NewIntervalDaysToSecond(days, seconds int32, micros int64, nullable bool) (expr.Literal, error)
- func NewIntervalDaysToSecondFromString(daysToSecond string, nullable bool) (expr.Literal, error)
- func NewIntervalYearsToMonth(years, months int32, nullable bool) (expr.Literal, error)
- func NewIntervalYearsToMonthFromString(yearsToMonth string, nullable bool) (expr.Literal, error)
- func NewList(elements []expr.Literal, nullable bool) (expr.Literal, error)
- func NewPrecisionTimestamp(precision types.TimePrecision, value int64, nullable bool) (expr.Literal, error)
- func NewPrecisionTimestampFromString(precision types.TimePrecision, value string, nullable bool) (expr.Literal, error)
- func NewPrecisionTimestampFromTime(precision types.TimePrecision, tm time.Time, nullable bool) (expr.Literal, error)
- func NewPrecisionTimestampTz(precision types.TimePrecision, value int64, nullable bool) (expr.Literal, error)
- func NewPrecisionTimestampTzFromString(precision types.TimePrecision, value string, nullable bool) (expr.Literal, error)
- func NewPrecisionTimestampTzFromTime(precision types.TimePrecision, tm time.Time, nullable bool) (expr.Literal, error)
- func NewString(value string, nullable bool) expr.Literal
- func NewTime(hours, minutes, seconds, microseconds int32, nullable bool) (expr.Literal, error)
- func NewTimeFromMicros(micros int64, nullable bool) (expr.Literal, error)
- func NewTimeFromString(value string, nullable bool) (expr.Literal, error)
- func NewTimestamp(timestamp time.Time, nullable bool) (expr.Literal, error)
- func NewTimestampFromMicros(micros int64, nullable bool) (expr.Literal, error)
- func NewTimestampFromString(value string, nullable bool) (expr.Literal, error)
- func NewTimestampTZ(timestamp time.Time, nullable bool) (expr.Literal, error)
- func NewTimestampTZFromMicros(micros int64, nullable bool) (expr.Literal, error)
- func NewTimestampTZFromString(value string, nullable bool) (expr.Literal, error)
- func NewUUID(guid uuid.UUID, nullable bool) (expr.Literal, error)
- func NewUUIDFromBytes(value []byte, nullable bool) (expr.Literal, error)
- func NewVarChar(value string, nullable bool) (expr.Literal, error)
Functions ¶
func NewBool ¶
func NewDate ¶
func NewDateFromString ¶
func NewDecimalFromApdDecimal ¶
func NewDecimalFromString ¶
NewDecimalFromString create a Decimal literal from decimal value string
func NewDecimalFromTwosComplement ¶
func NewDecimalFromTwosComplement(twosComplement []byte, precision, scale int32, nullable bool) (expr.Literal, error)
NewDecimalFromTwosComplement create a Decimal literal from twosComplement. twosComplement is a little-endian twos-complement integer representation of complete value
func NewFixedBinary ¶
func NewFixedChar ¶
func NewFloat32 ¶
func NewFloat64 ¶
func NewInt16 ¶
func NewInt32 ¶
func NewInt64 ¶
func NewInt8 ¶
func NewIntervalDaysToSecond ¶
func NewIntervalDaysToSecond(days, seconds int32, micros int64, nullable bool) (expr.Literal, error)
func NewIntervalDaysToSecondFromString ¶
func NewIntervalYearsToMonth ¶
func NewIntervalYearsToMonthFromString ¶
func NewList ¶
func NewPrecisionTimestamp ¶
func NewPrecisionTimestamp(precision types.TimePrecision, value int64, nullable bool) (expr.Literal, error)
NewPrecisionTimestamp creates a new PrecisionTimestamp literal with given precision and value.
func NewPrecisionTimestampFromString ¶
func NewPrecisionTimestampFromString(precision types.TimePrecision, value string, nullable bool) (expr.Literal, error)
func NewPrecisionTimestampFromTime ¶
func NewPrecisionTimestampFromTime(precision types.TimePrecision, tm time.Time, nullable bool) (expr.Literal, error)
NewPrecisionTimestampFromTime creates a new PrecisionTimestamp literal from a time.Time timestamp value with given precision.
func NewPrecisionTimestampTz ¶
func NewPrecisionTimestampTz(precision types.TimePrecision, value int64, nullable bool) (expr.Literal, error)
NewPrecisionTimestampTz creates a new PrecisionTimestampTz literal with given precision and value.
func NewPrecisionTimestampTzFromString ¶
func NewPrecisionTimestampTzFromString(precision types.TimePrecision, value string, nullable bool) (expr.Literal, error)
func NewPrecisionTimestampTzFromTime ¶
func NewPrecisionTimestampTzFromTime(precision types.TimePrecision, tm time.Time, nullable bool) (expr.Literal, error)
NewPrecisionTimestampTzFromTime creates a new PrecisionTimestampTz literal from a time.Time timestamp value with given precision.
func NewString ¶
func NewTime ¶
NewTime creates a new Time literal from the given hours, minutes, seconds and microseconds. The total microseconds should be in the range [0, 86400_000_000) to represent a valid time within a day.
func NewTimeFromMicros ¶
NewTimeFromMicros creates a new Time literal from the given microseconds.
func NewTimeFromString ¶
func NewTimestamp ¶
NewTimestamp creates a new Timestamp literal from a time.Time timestamp value. This uses the number of microseconds elapsed since January 1, 1970 00:00:00 UTC
func NewTimestampFromMicros ¶
func NewTimestampFromString ¶
func NewTimestampTZ ¶
NewTimestampTZ creates a new TimestampTz literal from a time.Time timestamp value. This uses the number of microseconds elapsed since January 1, 1970 00:00:00 UTC
func NewTimestampTZFromMicros ¶
func NewTimestampTZFromString ¶
func NewUUID ¶
func NewUUIDFromBytes ¶
func NewVarChar ¶
Source Files ¶
- Version
- v3.9.1 (latest)
- Published
- Apr 7, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 9 hours ago –
Tools for package owners.