com.google.appengine.api.search
Class PutResponse
- java.lang.Object
-
- com.google.appengine.api.search.PutResponse
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<OperationResult>
public class PutResponse extends java.lang.Object implements java.lang.Iterable<OperationResult>, java.io.Serializable
Represents a result of putting a list of objects (documents or queries) into an index. The response contains a list ofOperationResult
indicating success or not of putting each of the objects into the index, and a list of Id of the objects which are those given in the request or allocated by the search service to those objects which do not have an Id supplied.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<java.lang.String>
getIds()
java.util.List<OperationResult>
getResults()
java.util.Iterator<OperationResult>
iterator()
java.lang.String
toString()
-
-
-
Method Detail
-
iterator
public java.util.Iterator<OperationResult> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<OperationResult>
-
getResults
public java.util.List<OperationResult> getResults()
- Returns:
- an unmodifiable list of
OperationResult
indicating whether eachDocument
was put or not
-
getIds
public java.util.List<java.lang.String> getIds()
- Returns:
- an unmodifiable list of Ids
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-