Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Mar 1, 2016
1 parent c95e5e7 commit f6cc097
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,28 +114,27 @@ interface TransactionCallable<T> {
Entity get(Key key, ReadOption... options);

/**
* Returns an {@link Entity} for each given {@link Key} that exists in the Datastore.
* The order of the result is unspecified.
* Results are loaded lazily, so it is possible to get a {@code DatastoreException}
* from the returned {@code Iterator}'s {@link Iterator#hasNext hasNext} or
* {@link Iterator#next next} methods. {@link ReadOption}s can be specified if desired.
* Returns an {@link Entity} for each given {@link Key} that exists in the Datastore. The order of
* the result is unspecified. Results are loaded lazily, so it is possible to get a
* {@code DatastoreException} from the returned {@code Iterator}'s
* {@link Iterator#hasNext hasNext} or {@link Iterator#next next} methods. {@link ReadOption}s can
* be specified if desired.
*
* @throws DatastoreException upon failure
* @see #get(Key)
*/
Iterator<Entity> get(Iterable<Key> keys, ReadOption... options);

/**
* Returns a list with a value for each given key (ordered by input).
* {@code null} values are returned for nonexistent keys.
* When possible prefer using {@link #get(Key...)} to avoid eagerly loading the results.
* {@link ReadOption}s can be specified if desired.
* Returns a list with a value for each given key (ordered by input). {@code null} values are
* returned for nonexistent keys. When possible prefer using {@link #get(Key...)} to avoid eagerly
* loading the results. {@link ReadOption}s can be specified if desired.
*/
List<Entity> fetch(Iterable<Key> keys, ReadOption... options);

/**
* Submits a {@link Query} and returns its result.
* {@link ReadOption}s can be specified if desired.
* Submits a {@link Query} and returns its result. {@link ReadOption}s can be specified if
* desired.
*
* @throws DatastoreException upon failure
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,20 @@ public interface DatastoreReader {
Entity get(Key key);

/**
* Returns an {@link Entity} for each given {@link Key} that exists in the Datastore.
* The order of the result is unspecified.
* Results are loaded lazily, so it is possible to get a {@code DatastoreException}
* from the returned {@code Iterator}'s {@link Iterator#hasNext hasNext} or
* {@link Iterator#next next} methods.
* Returns an {@link Entity} for each given {@link Key} that exists in the Datastore. The order of
* the result is unspecified. Results are loaded lazily, so it is possible to get a
* {@code DatastoreException} from the returned {@code Iterator}'s
* {@link Iterator#hasNext hasNext} or {@link Iterator#next next} methods.
*
* @throws DatastoreException upon failure
* @see #get(Key)
*/
Iterator<Entity> get(Key... key);

/**
* Returns a list with a value for each given key (ordered by input).
* {@code null} values are returned for nonexistent keys.
* When possible prefer using {@link #get(Key...)} to avoid eagerly loading the results.
* Returns a list with a value for each given key (ordered by input). {@code null} values are
* returned for nonexistent keys. When possible prefer using {@link #get(Key...)} to avoid eagerly
* loading the results.
*/
List<Entity> fetch(Key... keys);

Expand Down

0 comments on commit f6cc097

Please sign in to comment.