Class EntityProtoComparators.EntityProtoComparator

  • All Implemented Interfaces:
    Comparator<com.google.storage.onestore.v3.OnestoreEntity.EntityProto>
    Enclosing class:
    EntityProtoComparators

    public static final class EntityProtoComparators.EntityProtoComparator
    extends Object
    A comparator for OnestoreEntity.EntityProto objects with the same ordering as EntityComparator.
    • Constructor Detail

      • EntityProtoComparator

        public EntityProtoComparator​(List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order> orders)
      • EntityProtoComparator

        public EntityProtoComparator​(List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order> orders,
                                     List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Filter> filters)
    • Method Detail

      • getAdjustedOrders

        public List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order> getAdjustedOrders()
      • matches

        public boolean matches​(com.google.storage.onestore.v3.OnestoreEntity.EntityProto proto)
      • matches

        public boolean matches​(com.google.storage.onestore.v3.OnestoreEntity.Property prop)
      • compare

        public int compare​(EntityT entityA,
                           EntityT entityB)
        Specified by:
        compare in interface Comparator<EntityT>