Module datafusion::common::scalar
source · Expand description
This module provides ScalarValue, an enum that can be used for storage of single elements
Enums
- Represents a dynamically typed, nullable single value. This is the single-valued counter-part to arrow’s
Array
.
Constants
Traits
- Trait used to map a NativeType to a ScalarValue
Functions
- This function computes the duration (in microseconds) of the given daytime-interval.
- This function computes the duration (in milliseconds) of the given daytime-interval.
- This function computes the duration (in nanoseconds) of the given daytime-interval.
- This function computes the duration (in seconds) of the given daytime-interval.
- return a reference to the values array and the index into it for a dictionary array
- This function computes the duration (in microseconds) of the given month-day-nano-interval. Assumes a month is 30 days long.
- This function computes the duration (in milliseconds) of the given month-day-nano-interval. Assumes a month is 30 days long.
- This function computes the duration (in nanoseconds) of the given month-day-nano-interval. Assumes a month is 30 days long.
- This function computes the duration (in seconds) of the given month-day-nano-interval. Assumes a month is 30 days long.
- This function adds/subtracts two “raw” intervals (
lhs
andrhs
) of the same typeIntervalDayTimeType
. The argumentsign
chooses between addition and subtraction. The return value is an 64-bit integer. It can be involved in aIntervalDayTimeType
in the outer scope. - This function adds/subtracts two “raw” intervals (
lhs
andrhs
) of different types (IntervalDayTimeType
andIntervalMonthDayNanoType
, respectively). The argumentsign
chooses between addition and subtraction, the argumentcommute
swapslhs
andrhs
. The return value is an 128-bit integer. It can be involved in aIntervalMonthDayNanoType
in the outer scope. - This function adds/subtracts two “raw” intervals (
lhs
andrhs
) of the same typeIntervalMonthDayNanoType
. The argumentsign
chooses between addition and subtraction. The return value is an 128-bit integer. It can be involved in aIntervalMonthDayNanoType
in the outer scope. - This function adds/subtracts two “raw” intervals (
lhs
andrhs
) of the same typeIntervalYearMonthType
. The argumentsign
chooses between addition and subtraction. The return value is an 32-bit integer. It can be involved in aIntervalYearMonthType
in the outer scope. - This function adds/subtracts two “raw” intervals (
lhs
andrhs
) of different types (IntervalYearMonthType
andIntervalDayTimeType
, respectively). The argumentsign
chooses between addition and subtraction, the argumentcommute
swapslhs
andrhs
. The return value is an 128-bit integer. It can be involved in aIntervalMonthDayNanoType
in the outer scope. - This function adds/subtracts two “raw” intervals (
lhs
andrhs
) of different types (IntervalYearMonthType
andIntervalMonthDayNanoType
, respectively). The argumentsign
chooses between addition and subtraction, the argumentcommute
swapslhs
andrhs
. The return value is an 128-bit integer. It can be involved in aIntervalMonthDayNanoType
in the outer scope. - This function computes the duration (in milliseconds) of the given year-month-interval.
- This function computes the duration (in milliseconds) of the given year-month-interval.
- This function computes the duration (in nanoseconds) of the given year-month-interval.
- This function computes the duration (in milliseconds) of the given year-month-interval.