Package com.google.appengine.api.datastore

Examples of com.google.appengine.api.datastore.Index


        boolean exist = false;

        Map<Index, IndexState> indexes = service.getIndexes();
        assertTrue(indexes.size() > 0);
        for (Map.Entry<Index, IndexState> entry : indexes.entrySet()) {
            Index index = entry.getKey();
            if (index.getKind().equals("indextest2")) {
                exist = true;
                assertEquals(Index.IndexState.SERVING, entry.getValue());
                for (Property property : index.getProperties()) {
                    if (property.getName().equals("stringData")) {
                        assertEquals(Query.SortDirection.DESCENDING, property.getDirection());
                    } else if (property.getName().equals("age")) {
                        assertEquals(Query.SortDirection.ASCENDING, property.getDirection());
                    }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.datastore.Index

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.