Sha256: 0c50d50005f32e985faf56cde63805f1012b15ed9794ea9cb83b9ebe0df061da

Contents?: true

Size: 756 Bytes

Versions: 9

Compression:

Stored size: 756 Bytes

Contents

Clip input tuples to a subset of attributes

SYNOPSIS

    #(signature)

OPTIONS

    #(summarized_options)

DESCRIPTION

This operator clips tuples on attributes whose names are specified in 
ATTRIBUTES. This is similar to the relational PROJECT operator, expect 
that CLIP does not remove duplicates afterwards.

Clipping may therefore lead to bags of tuples instead of sets. The result
is therefore **not** a valid relation unless a candidate key is preserved.

With the allbut option, the operator keeps attributes in ATTRIBUTES, instead 
of projecting them away. 

EXAMPLE

    # Clip suppliers on `name` and `city`
    !(alf clip suppliers -- name city)

    # Clip suppliers on all other attributes
    !(alf clip suppliers --allbut -- name city)

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
alf-shell-0.14.0 doc/operators/non_relational/clip.md
alf-shell-0.13.1 doc/operators/non_relational/clip.md
alf-0.12.2 doc/operators/non_relational/clip.md
alf-0.12.1 doc/operators/non_relational/clip.md
alf-0.12.0 doc/operators/non_relational/clip.md
alf-0.11.1 doc/operators/non_relational/clip.md
alf-0.11.0 doc/operators/non_relational/clip.md
alf-0.10.1 doc/operators/non_relational/clip.md
alf-0.10.0 doc/operators/non_relational/clip.md