Sha256: 2121ff6652f88212d02a3de25f7cf2a8dcedb0b5e452011e19784e2a826c7961
Contents?: true
Size: 927 Bytes
Versions: 2
Compression:
Stored size: 927 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-shell-0.16.4 | doc/man/extend.man |
alf-shell-0.16.0 | doc/man/extend.man |