File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
gcloud-java-datastore/src/main/java/com/google/gcloud/datastore Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -106,11 +106,11 @@ Object fromPb(byte[] bytesPb) throws InvalidProtocolBufferException {
106
106
com .google .protobuf .Timestamp .parseFrom (bytesPb )));
107
107
}
108
108
109
- protected static long timestampPbToMicroseconds (com .google .protobuf .Timestamp timestampPb ) {
109
+ static long timestampPbToMicroseconds (com .google .protobuf .Timestamp timestampPb ) {
110
110
return timestampPb .getSeconds () * 1000000 + timestampPb .getNanos () / 1000 ;
111
111
}
112
112
113
- protected static com .google .protobuf .Timestamp microsecondsToTimestampPb (long microseconds ) {
113
+ static com .google .protobuf .Timestamp microsecondsToTimestampPb (long microseconds ) {
114
114
long seconds = microseconds / 1000000 ;
115
115
int nanos = (int ) (microseconds % 1000000 ) * 1000 ;
116
116
return com .google .protobuf .Timestamp .newBuilder ().setSeconds (seconds ).setNanos (nanos ).build ();
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ protected T computeNext() {
93
93
sendRequest ();
94
94
}
95
95
if (!entityResultPbIter .hasNext ()) {
96
+ cursor = runQueryResponsePb .getBatch ().getEndCursor ();
96
97
return endOfData ();
97
98
}
98
99
com .google .datastore .v1beta3 .EntityResult entityResultPb = entityResultPbIter .next ();
You can’t perform that action at this time.
0 commit comments