Sha256: e0142503cb0a981f913003fcfebdad3470491768e0dedcf8977a70dff2def580
Contents?: true
Size: 930 Bytes
Versions: 3
Compression:
Stored size: 930 Bytes
Contents
.TH Extend .PP Extends input tuples with derived/computed attributes .SH Signature .PP .RS .nf extend(operand: Relation, ext: TupleComputation) \-> Relation .fi .RE .SH Examples .PP .RS .nf extend(suppliers, big: \->(t){ t.name.upcase }, small: \->(t){ t.name.downcase }) .fi .RE .SH Description .PP Computes a relation which is the same as \fB\fCoperand\fR, except that each of its tuples has new attributes whose value is the result of evaluating the tuple expressions specified in \fB\fCext\fR\&. .SH Implementation notes .PP As of current Alf version, this operator cannot be translated to SQL code. In other words, all computations are done in ruby, which may seriously hurt performance. .PP Similarly, as \fB\fCextend\fR tends to be a showstopper during compilation, it is strongly recommended to use it as high as possible in query expressions trees so as to delegate the largest possible query parts to data engines.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alf-shell-0.16.3 | doc/man/extend.man |
alf-shell-0.16.2 | doc/man/extend.man |
alf-shell-0.16.1 | doc/man/extend.man |