View source on GitHub |
An abstract base class for all query filters.
Inherits From: expected_type
All sub-classes must be immutable as these are often stored without creating a defensive copy.
Methods
__call__
__call__(
entity
)
Applies the filter predicate to the given entity.
Args | |
---|---|
entity
|
the datastore_pb.EntityProto to test. |
Returns | |
---|---|
True if the given entity matches the filter, False otherwise. |
__eq__
__eq__(
other
)
Return self==value.
__ne__
__ne__(
other
)
Return self!=value.