Search in sources :

Example 1 with CompositeIndices

use of com.google.apphosting.datastore.DatastoreV3Pb.CompositeIndices in project appengine-java-standard by GoogleCloudPlatform.

the class LocalDatastoreService method getIndices.

// status
@SuppressWarnings("unused")
public CompositeIndices getIndices(Status status, StringProto req) {
    Set<Index> indexSet = LocalCompositeIndexManager.getInstance().getIndexes();
    CompositeIndices answer = new CompositeIndices();
    for (Index index : indexSet) {
        CompositeIndex ci = wrapIndexInCompositeIndex(req.getValue(), index);
        answer.addIndex(ci);
    }
    return answer;
}
Also used : CompositeIndex(com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex) Index(com.google.storage.onestore.v3.OnestoreEntity.Index) CompositeIndex(com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex) CompositeIndices(com.google.apphosting.datastore.DatastoreV3Pb.CompositeIndices)

Aggregations

CompositeIndices (com.google.apphosting.datastore.DatastoreV3Pb.CompositeIndices)1 CompositeIndex (com.google.storage.onestore.v3.OnestoreEntity.CompositeIndex)1 Index (com.google.storage.onestore.v3.OnestoreEntity.Index)1