Class EntityProtoComparators.EntityProtoComparator (2.0.0)

public static final class EntityProtoComparators.EntityProtoComparator extends BaseEntityComparator<OnestoreEntity.EntityProto>

A comparator for com.google.storage.onestore.v3.OnestoreEntity.EntityProto objects with the same ordering as EntityComparator.

Inheritance

java.lang.Object > com.google.appengine.api.datastore.BaseEntityComparator > EntityProtoComparators.EntityProtoComparator

Constructors

EntityProtoComparator(List<DatastoreV3Pb.Query.Order> orders)

public EntityProtoComparator(List<DatastoreV3Pb.Query.Order> orders)
Parameter
Name Description
orders List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order>

EntityProtoComparator(List<DatastoreV3Pb.Query.Order> orders, List<DatastoreV3Pb.Query.Filter> filters)

public EntityProtoComparator(List<DatastoreV3Pb.Query.Order> orders, List<DatastoreV3Pb.Query.Filter> filters)
Parameters
Name Description
orders List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order>
filters List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Filter>

Methods

getAdjustedOrders()

public List<DatastoreV3Pb.Query.Order> getAdjustedOrders()
Returns
Type Description
List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order>

matches(OnestoreEntity.EntityProto proto)

public boolean matches(OnestoreEntity.EntityProto proto)
Parameter
Name Description
proto com.google.storage.onestore.v3.OnestoreEntity.EntityProto
Returns
Type Description
boolean

matches(OnestoreEntity.Property prop)

public boolean matches(OnestoreEntity.Property prop)
Parameter
Name Description
prop com.google.storage.onestore.v3.OnestoreEntity.Property
Returns
Type Description
boolean