Expand description
Data types in RisingWave.
Re-exportsยง
pub use crate::array::ListRef;pub use crate::array::ListValue;pub use crate::array::MapRef;pub use crate::array::MapValue;pub use crate::array::StructRef;pub use crate::array::StructValue;pub use crate::array::VectorRef;pub use crate::array::VectorVal;
Modulesยง
- cow ๐
- data_
types - Convenient macros to generate match arms for
DataType. - datetime ๐
- Date, time, and timestamp types.
- decimal ๐
- fields ๐
- from_
sql ๐ - interval ๐
- jsonb ๐
- list_
type ๐ - macros ๐
- map_
type ๐ - native_
type ๐ - num256 ๐
- ops ๐
- ordered ๐
ScalarImplandDatumwrappers that implementPartialOrdandOrdwith default order type.- ordered_
float ๐ - Wrappers for total order on Floats. See the
OrderedFloatdocs for details. - postgres_
type - private ๐
- scalar_
impl ๐ - sentinel ๐
- serial ๐
- struct_
type ๐ - successor ๐
- test_
utils - A separate mod so that
use types::*oruse interval::*does notuse IntervalTestExtby accident. - timestamptz ๐
- to_
binary ๐ - to_sql ๐
- to_text ๐
- with_
data_ ๐type
Macrosยง
- impl_
convert ๐ impl_convertimplements several conversions forScalar.- impl_
self_ ๐as_ scalar_ ref - scalar_
impl_ ๐enum - Define
ScalarImplandScalarRefImplwith macro.
Structsยง
- Date
- Default
Ordered - Wrapper that delegates
PartialOrdandOrdto theDefaultPartialOrdandDefaultOrdimplementations of inner type. - Int256
- A 256-bit signed integer.
- Int256
Ref - A reference to an
Int256value. - Interval
- Every interval can be represented by a
Interval. - Interval
Display - Wrapper so that
Debug for IntervalDisplaywould use the concise format ofDisplay for Interval. - Jsonb
Ref - Jsonb
Val - List
Type - A list type, or
ARRAYtype in PostgreSQL. - MapType
- Refer to
super::super::array::MapArrayfor the invariants of a map value. - Serial
- Struct
Type - A cheaply cloneable struct type.
- Time
- Timestamp
- Timestamptz
- Timestamp with timezone.
Enumsยง
- Data
Type - The set of datatypes that are supported in RisingWave.
- Data
Type Name - Auto-generated discriminant enum variants
- Date
Time Field - Datum
Cow - ๐ฎ A borrowed
DatumRefor an ownedDatum. - Decimal
- Decimal
PowError - Scalar
Impl ScalarImplembeds all possible scalars in the evaluation framework.- Scalar
RefImpl ScalarRefImplembeds all possible scalar references in the evaluation framework.- Sentinelled
Sentinelled<T>wraps typeTto provide smallest (smaller than any normalTvalue) and largest (larger than ant normalTvalue) sentinel value forT.
Constantsยง
Staticsยง
Traitsยง
- Checked
Add - A more general version of
num_traits::CheckedAddthat allowsRhsandOutputto be different. - Default
Ord - Variant of
Ordthat compares with default order. - Default
Partial Ord - Fields
- A struct can implements
Fieldswhen if can be represented as a relational Row. - Float
Ext - Similar to
num_traits::Float, but without requiringNumCastandToPrimitive. - Into
Ordered - IsNegative
- A simplified version of
num_traits::Signed. UnlikeSigned::is_negativeorf64::is_sign_negative, this returnsfalsefor-0.0to keep consistency among integers, decimals and floats. - Native
Type - Scalar
Scalaris a trait over all possible owned types in the evaluation framework.- Scalar
Partial Ord ScalarPartialOrdallows comparison betweenScalarandScalarRef.- Scalar
Ref ScalarRefis a trait over all possible references in the evaluation framework.- Self
AsScalar Ref - To make sure there is
as_scalar_reffor all scalar ref types. See https://github.com/risingwavelabs/risingwave/pull/9977/files#r1208972881 - Successor
- A successor is a term that comes right after a particular value. Suppose n is a number (where n belongs to any whole number), then the successor of n is โn+1โ. The other terminologies used for a successor are just after, immediately after, and next value.
- ToDatum
Ref - ToOwned
Datum - This trait is to implement
to_owned_datumforOption<ScalarImpl> - ToText
- Converts
ScalarRefto pgwire โTEXTโ format. - With
Data Type - A trait for all physical types that can be associated with a
DataType.
Functionsยง
- default_
partial_ cmp_ scalar_ ref_ impl - hash_
datum - Feeds the raw scalar reference of
datumto the givenstate, which should behave the same ascrate::array::Array::hash_at, where NULL value will be carefully handled. - literal_
type_ match - Returns whether the
literalmatches thedata_type. - write_
date_ time_ tz
Type Aliasesยง
- Datum
- Datum
Ref - F32
- A 32-bit floating point type with total order.
- F64
- A 64-bit floating point type with total order.