org.elasticsearch.action.update
Class UpdateResponse

java.lang.Object
  extended by org.elasticsearch.action.update.UpdateResponse
All Implemented Interfaces:
ActionResponse, Streamable

public class UpdateResponse
extends Object
implements ActionResponse


Constructor Summary
UpdateResponse()
           
UpdateResponse(String index, String type, String id, long version)
           
 
Method Summary
 GetResult getGetResult()
           
 String getId()
          The id of the document indexed.
 String getIndex()
          The index the document was indexed into.
 List<String> getMatches()
          Returns the percolate queries matches.
 GetResult getResult()
           
 String getType()
          The type of the document indexed.
 long getVersion()
          Returns the version of the doc indexed.
 String id()
          The id of the document indexed.
 String index()
          The index the document was indexed into.
 List<String> matches()
          Returns the percolate queries matches.
 void matches(List<String> matches)
          Internal.
 void readFrom(StreamInput in)
           
 String type()
          The type of the document indexed.
 long version()
          Returns the version of the doc indexed.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateResponse

public UpdateResponse()

UpdateResponse

public UpdateResponse(String index,
                      String type,
                      String id,
                      long version)
Method Detail

index

public String index()
The index the document was indexed into.


getIndex

public String getIndex()
The index the document was indexed into.


type

public String type()
The type of the document indexed.


getType

public String getType()
The type of the document indexed.


id

public String id()
The id of the document indexed.


getId

public String getId()
The id of the document indexed.


version

public long version()
Returns the version of the doc indexed.


getVersion

public long getVersion()
Returns the version of the doc indexed.


matches

public List<String> matches()
Returns the percolate queries matches. null if no percolation was requested.


getMatches

public List<String> getMatches()
Returns the percolate queries matches. null if no percolation was requested.


getResult

public GetResult getResult()

getGetResult

public GetResult getGetResult()

matches

public void matches(List<String> matches)
Internal.


readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.