Transform
struct TransformA partition transform: a kind plus the [N]/[W] parameter.
Implements Copyable, Movable, Writable
- Fields
kind: UInt8param: Intraw: String: Original spelling — the only thing kept forT_UNKNOWN.
identity
def identity() -> Self bucket
def bucket(n: Int) -> Self truncate
def truncate(w: Int) -> Self void
def void() -> Self name
def name(self) -> String write_to
def write_to(self, mut writer: T) can_project
def can_project(self) -> Bool False when a predicate cannot be pushed through this transform.
is_time
def is_time(self) -> Bool preserves_order
def preserves_order(self) -> Bool True when a <= b implies T(a) <= T(b) — the projection rules for </> only hold for these.
result_type
def result_type(self, mut store: TypeStore, source: Int) -> Int The type a partition value of this transform has.
apply
def apply(self, v: Datum) -> Datum Transform one value. All transforms map null to null.