An immutable filter predicate that constrains a single property.
Inherits From: FilterPredicate
, expected_type
google.appengine.datastore.datastore_query.PropertyFilter(
op, value
)
Args |
op
|
A string representing the operator to use.
|
value
|
A entity_pb2.Property, the property and value to compare against.
|
Raises |
datastore_errors.BadArgumentError if op has an unsupported value or value
is not an entity_pb2.Property.
|
Methods
__call__
View source
__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__
View source
__eq__(
other
)
Return self==value.
__ne__
View source
__ne__(
other
)
Return self!=value.