ExprValue

interface ExprValue : Iterable<ExprValue> , Faceted

Representation of a value within the context of an Expression.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun <T : Any> asFacet(p0: Class<T>): T
Link copied to clipboard
open fun forEach(p0: Consumer<in ExprValue>)
Link copied to clipboard
abstract operator override fun iterator(): Iterator<ExprValue>

Iterates over this value's child elements.

Link copied to clipboard
open fun spliterator(): Spliterator<ExprValue>

Properties

Link copied to clipboard
abstract val bindings: Bindings<ExprValue>

Returns the Bindings over this value.

Link copied to clipboard
abstract val ordinalBindings: OrdinalBindings

Returns the OrdinalBindings over this value.

Link copied to clipboard
abstract val scalar: Scalar

Returns the Scalar view of this value.

Link copied to clipboard
abstract val type: ExprValueType

The type of value independent of its implementation.

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
val ExprValue.address: ExprValue?
Link copied to clipboard
fun ExprValue.asNamed(): Named

Wraps this ExprValue as a Named instance.

Link copied to clipboard
fun ExprValue.booleanValue(): Boolean
Link copied to clipboard
fun ExprValue.bytesValue(): ByteArray
Link copied to clipboard
fun ExprValue.cast(targetType: SingleType, typedOpBehavior: TypedOpBehavior, locationMeta: SourceLocationMeta?, defaultTimezoneOffset: ZoneOffset): ExprValue

Casts this ExprValue to the target type.

Link copied to clipboard
operator fun ExprValue.compareTo(other: ExprValue): Int

Provides the comparison predicate--which is not a total ordering.

Link copied to clipboard
fun ExprValue.dateValue(): LocalDate
Link copied to clipboard
fun ExprValue.exprEquals(other: ExprValue): Boolean

Provides the default equality function.

Link copied to clipboard
val ExprValue.name: ExprValue?
Link copied to clipboard
fun ExprValue.namedValue(nameValue: ExprValue): ExprValue

Binds the given name value as a Named facet delegate over this ExprValue.

Link copied to clipboard
fun ExprValue.numberValue(): Number
Link copied to clipboard
val ExprValue.orderedNames: List<String>?
Link copied to clipboard
fun ExprValue.orderedNamesValue(names: List<String>): ExprValue

Wraps the given ExprValue with a delegate that provides the OrderedBindNames facet.

Link copied to clipboard
fun ExprValue.rangeOver(): Iterable<ExprValue>

Implements the FROM range operation. Specifically, this is distinct from the normal ExprValue.iterator in that types that are notExprValueType.isRangeFrom get treated as a singleton as per PartiQL specification.

Link copied to clipboard
fun ExprValue.stringify(): String

A very simple string representation--to be used for diagnostic purposes only.

Link copied to clipboard
fun ExprValue.stringValue(): String
Link copied to clipboard
fun ExprValue.timestampValue(): Timestamp
Link copied to clipboard
fun ExprValue.timeValue(): Time
Link copied to clipboard
fun ExprValue.toIonValue(ion: IonSystem): IonValue

This method should only be used in case we want to get result from querying an Ion file or an IonValue

Link copied to clipboard
fun ExprValue.unnamedValue(): ExprValue

Wraps this ExprValue in a delegate that always masks the Named facet.