类 GetWatchResponse
java.lang.Object
org.easysearch.client.watcher.GetWatchResponse
public class GetWatchResponse
extends java.lang.Object
-
构造器概要
构造器 构造器 说明 GetWatchResponse(java.lang.String id)Ctor for missing watchGetWatchResponse(java.lang.String id, long version, long seqNo, long primaryTerm, WatchStatus status, org.easysearch.common.bytes.BytesReference source, org.easysearch.common.xcontent.XContentType xContentType) -
方法概要
修饰符和类型 方法 说明 booleanequals(java.lang.Object o)static GetWatchResponsefromXContent(org.easysearch.common.xcontent.XContentParser parser)org.easysearch.common.xcontent.XContentTypegetContentType()Returns theXContentTypeof the sourcejava.lang.StringgetId()longgetPrimaryTerm()longgetSeqNo()org.easysearch.common.bytes.BytesReferencegetSource()Returns the serialized watchjava.util.Map<java.lang.String,java.lang.Object>getSourceAsMap()Returns the source as a mapWatchStatusgetStatus()longgetVersion()inthashCode()booleanisFound()从类继承的方法 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
GetWatchResponse
public GetWatchResponse(java.lang.String id)Ctor for missing watch -
GetWatchResponse
public GetWatchResponse(java.lang.String id, long version, long seqNo, long primaryTerm, WatchStatus status, org.easysearch.common.bytes.BytesReference source, org.easysearch.common.xcontent.XContentType xContentType)
-
-
方法详细资料
-
getId
public java.lang.String getId() -
getVersion
public long getVersion() -
getSeqNo
public long getSeqNo() -
getPrimaryTerm
public long getPrimaryTerm() -
isFound
public boolean isFound() -
getStatus
-
getContentType
public org.easysearch.common.xcontent.XContentType getContentType()Returns theXContentTypeof the source -
getSource
public org.easysearch.common.bytes.BytesReference getSource()Returns the serialized watch -
getSourceAsMap
public java.util.Map<java.lang.String,java.lang.Object> getSourceAsMap()Returns the source as a map -
equals
public boolean equals(java.lang.Object o)- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中java.lang.Object
-
fromXContent
public static GetWatchResponse fromXContent(org.easysearch.common.xcontent.XContentParser parser) throws java.io.IOException- 抛出:
java.io.IOException
-