if (property != null) {
query.setFilter(new FilterPredicate("property", FilterOperator.EQUAL, property));
}
query.setKeysOnly();
PreparedQuery preparedQuery = DATASTORE.prepare(tx, query);
return Iterables.transform(preparedQuery.asIterable(), ENTITY_TO_KEY);
}
public static void serializeToDatastoreProperty(
Transaction tx, Entity entity, String property, Serializable o, CompressionType compression) {
byte[] bytes = serializeToByteArray(o, false, compression);