public < T > QueryResults < T > queryNormal ( final EntityQuery query , final int chunkSize ) { log . trace ( "Starting normal query" ) ; // Normal queries are actually more complex than hybrid queries because we need the fetched entities to // be stuffed back into the engine to satisfy @Load instructions without extra fetching. Even though // this looks like we're doing hybrid load-by-key operations, the data is pulled from the stuffed values. final LoadEngine loadEngine = loader . createLoadEngine ( ) ; final QueryResults < Entity > entityResults = ds . run ( query ) ; final QueryResults < com . google . cloud . datastore . Key > stuffed = new StuffingQueryResults ( loadEngine , entityResults ) ; final QueryResults < Key < T > > keyResults = new KeyQueryResults <> ( stuffed ) ; return new HybridQueryResults <> ( loadEngine , keyResults , chunkSize ) ; }
A normal non - hybrid query