expressions
AlwaysFalse
¶
Bases: BooleanExpression
, Singleton
FALSE expression.
Source code in pyiceberg/expressions/__init__.py
AlwaysTrue
¶
Bases: BooleanExpression
, Singleton
TRUE expression.
Source code in pyiceberg/expressions/__init__.py
And
¶
Bases: BooleanExpression
AND operation expression - logical conjunction.
Source code in pyiceberg/expressions/__init__.py
BooleanExpression
¶
Bases: ABC
An expression that evaluates to a boolean.
Source code in pyiceberg/expressions/__init__.py
Bound
¶
BoundEqualTo
¶
Bases: BoundLiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundGreaterThan
¶
Bases: BoundLiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundGreaterThanOrEqual
¶
Bases: BoundLiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundIn
¶
Bases: BoundSetPredicate[L]
Source code in pyiceberg/expressions/__init__.py
__eq__(other)
¶
Return the equality of two instances of the BoundIn class.
BoundIsNaN
¶
Bases: BoundUnaryPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundIsNull
¶
Bases: BoundUnaryPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundLessThan
¶
Bases: BoundLiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundLessThanOrEqual
¶
Bases: BoundLiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundLiteralPredicate
¶
Bases: BoundPredicate[L]
, ABC
Source code in pyiceberg/expressions/__init__.py
BoundNotEqualTo
¶
Bases: BoundLiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundNotIn
¶
Bases: BoundSetPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundNotNaN
¶
Bases: BoundUnaryPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundNotNull
¶
Bases: BoundUnaryPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundNotStartsWith
¶
Bases: BoundLiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundPredicate
¶
Bases: Generic[L]
, Bound
, BooleanExpression
, ABC
Source code in pyiceberg/expressions/__init__.py
__eq__(other)
¶
Return the equality of two instances of the BoundPredicate class.
BoundReference
¶
Bases: BoundTerm[L]
A reference bound to a field in a schema.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
field
|
NestedField
|
A referenced field in an Iceberg schema. |
required |
accessor
|
Accessor
|
An Accessor object to access the value at the field's position. |
required |
Source code in pyiceberg/expressions/__init__.py
__eq__(other)
¶
Return the equality of two instances of the BoundReference class.
__hash__()
¶
__repr__()
¶
eval(struct)
¶
Return the value at the referenced field's position in an object that abides by the StructProtocol.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
struct
|
StructProtocol
|
A row object that abides by the StructProtocol and returns values given a position. |
required |
Returns:
Any: The value at the referenced field's position in struct
.
Source code in pyiceberg/expressions/__init__.py
BoundSetPredicate
¶
Bases: BoundPredicate[L]
, ABC
Source code in pyiceberg/expressions/__init__.py
__eq__(other)
¶
Return the equality of two instances of the BoundSetPredicate class.
__getnewargs__()
¶
__repr__()
¶
Return the string representation of the BoundSetPredicate class.
Source code in pyiceberg/expressions/__init__.py
__str__()
¶
Return the string representation of the BoundSetPredicate class.
Source code in pyiceberg/expressions/__init__.py
BoundStartsWith
¶
Bases: BoundLiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
BoundTerm
¶
Represents a bound term.
Source code in pyiceberg/expressions/__init__.py
eval(struct)
abstractmethod
¶
Return the value at the referenced field's position in an object that abides by the StructProtocol.
BoundUnaryPredicate
¶
Bases: BoundPredicate[L]
, ABC
Source code in pyiceberg/expressions/__init__.py
EqualTo
¶
Bases: LiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
GreaterThan
¶
Bases: LiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
GreaterThanOrEqual
¶
Bases: LiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
In
¶
Bases: SetPredicate[L]
Source code in pyiceberg/expressions/__init__.py
IsNaN
¶
Bases: UnaryPredicate
Source code in pyiceberg/expressions/__init__.py
IsNull
¶
Bases: UnaryPredicate
Source code in pyiceberg/expressions/__init__.py
LessThan
¶
Bases: LiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
LessThanOrEqual
¶
Bases: LiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
LiteralPredicate
¶
Bases: UnboundPredicate[L]
, ABC
Source code in pyiceberg/expressions/__init__.py
Not
¶
Bases: BooleanExpression
NOT operation expression - logical negation.
Source code in pyiceberg/expressions/__init__.py
NotEqualTo
¶
Bases: LiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
NotIn
¶
Bases: SetPredicate[L]
, ABC
Source code in pyiceberg/expressions/__init__.py
NotNaN
¶
Bases: UnaryPredicate
Source code in pyiceberg/expressions/__init__.py
NotNull
¶
Bases: UnaryPredicate
Source code in pyiceberg/expressions/__init__.py
NotStartsWith
¶
Bases: LiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
Or
¶
Bases: BooleanExpression
OR operation expression - logical disjunction.
Source code in pyiceberg/expressions/__init__.py
Reference
¶
Bases: UnboundTerm[Any]
A reference not yet bound to a field in a schema.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the field. |
required |
Note
An unbound reference is sometimes referred to as a "named" reference.
Source code in pyiceberg/expressions/__init__.py
__eq__(other)
¶
__repr__()
¶
bind(schema, case_sensitive=True)
¶
Bind the reference to an Iceberg schema.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
schema
|
Schema
|
An Iceberg schema. |
required |
case_sensitive
|
bool
|
Whether to consider case when binding the reference to the field. |
True
|
Raises:
Type | Description |
---|---|
ValueError
|
If an empty name is provided. |
Returns:
Name | Type | Description |
---|---|---|
BoundReference |
BoundReference[L]
|
A reference bound to the specific field in the Iceberg schema. |
Source code in pyiceberg/expressions/__init__.py
SetPredicate
¶
Bases: UnboundPredicate[L]
, ABC
Source code in pyiceberg/expressions/__init__.py
__eq__(other)
¶
Return the equality of two instances of the SetPredicate class.
__getnewargs__()
¶
__repr__()
¶
Return the string representation of the SetPredicate class.
Source code in pyiceberg/expressions/__init__.py
__str__()
¶
Return the string representation of the SetPredicate class.
Source code in pyiceberg/expressions/__init__.py
StartsWith
¶
Bases: LiteralPredicate[L]
Source code in pyiceberg/expressions/__init__.py
Term
¶
UnaryPredicate
¶
Bases: UnboundPredicate[Any]
, ABC
Source code in pyiceberg/expressions/__init__.py
Unbound
¶
Bases: Generic[B]
, ABC
Represents an unbound value expression.
Source code in pyiceberg/expressions/__init__.py
UnboundPredicate
¶
Bases: Generic[L]
, Unbound[BooleanExpression]
, BooleanExpression
, ABC
Source code in pyiceberg/expressions/__init__.py
__eq__(other)
¶
Return the equality of two instances of the UnboundPredicate class.