org.apache.spark.sql.catalyst.expressions
Returns a new AttributeSet that contains elem
in addition to the current elements.
Returns a new AttributeSet that contains all of the Attributes found
in other
.
Returns a new AttributeSet that does not contain elem
.
Returns a new AttributeSet that does not contain any of the Attributes found
in other
.
Returns true if this set contains an Attribute with the same expression id as elem
Returns true if the members of this AttributeSet and other are the same.
Returns true if the members of this AttributeSet and other are the same.
Returns a new AttributeSet contain only the Attributes where f
evaluates to
true.
Returns a new AttributeSet contain only the Attributes where f
evaluates to
true.
Returns a new AttributeSet that only contains Attributes that are found in
this
and other
.
Returns an iterator containing all of the attributes in the set.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Returns true if the Attributes in this set are a subset of the Attributes in
other
.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
A Set designed to hold AttributeReference objects, that performs equality checking using expression id instead of standard java equality. Using expression id means that these sets will correctly test for membership, even when the AttributeReferences in question differ cosmetically (e.g., the names have different capitalizations).
Note that we do not override equality for Attribute references as it is really weird when
AttributeReference("a"...) == AttributeReference("b", ...)
. This tactic leads to broken tests, and also makes doing transformations hard (we always try keep older trees instead of new ones when the transformation was a no-op).