Expression
s are used to define filter logic for passing to a Dataset
Scanner. FieldExpression
s refer to columns in the Dataset
and are
compared to ScalarExpression
s using ComparisonExpression
s.
ComparisonExpression
s may be combined with AndExpression
or
OrExpression
and negated with NotExpression
.
FieldExpression$create(name)
takes a string name as input. This string should
refer to a column in a Dataset
at the time it is evaluated, but you can
construct a FieldExpression
independently of any Dataset
.
ScalarExpression$create(x)
takes a scalar (length-1) R value as input.
ComparisonExpression$create(OP, e1, e2)
takes a string operator name
(e.g. "==", "!=", ">", etc.) and two Expression
objects.
AndExpression$create(e1, e2)
and OrExpression$create(e1, e2)
take
two Expression
objects, while NotExpression$create(e1)
takes a single
Expression
.
arrow::Object
-> Expression
ToString()
Expression$ToString()
clone()
The objects of this class are cloneable with this method.
Expression$clone(deep = FALSE)
deep
Whether to make a deep clone.
arrow::Object
-> arrow::Expression
-> FieldExpression
clone()
The objects of this class are cloneable with this method.
FieldExpression$clone(deep = FALSE)
deep
Whether to make a deep clone.
arrow::Object
-> arrow::Expression
-> ScalarExpression
clone()
The objects of this class are cloneable with this method.
ScalarExpression$clone(deep = FALSE)
deep
Whether to make a deep clone.
arrow::Object
-> arrow::Expression
-> ComparisonExpression
clone()
The objects of this class are cloneable with this method.
ComparisonExpression$clone(deep = FALSE)
deep
Whether to make a deep clone.
arrow::Object
-> arrow::Expression
-> AndExpression
clone()
The objects of this class are cloneable with this method.
AndExpression$clone(deep = FALSE)
deep
Whether to make a deep clone.
arrow::Object
-> arrow::Expression
-> OrExpression
clone()
The objects of this class are cloneable with this method.
OrExpression$clone(deep = FALSE)
deep
Whether to make a deep clone.
arrow::Object
-> arrow::Expression
-> NotExpression
clone()
The objects of this class are cloneable with this method.
NotExpression$clone(deep = FALSE)
deep
Whether to make a deep clone.