类 GetWatchResponse

java.lang.Object
org.easysearch.client.watcher.GetWatchResponse

public class GetWatchResponse
extends java.lang.Object
  • 构造器概要

    构造器
    构造器 说明
    GetWatchResponse​(java.lang.String id)
    Ctor for missing watch
    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)  
  • 方法概要

    修饰符和类型 方法 说明
    boolean equals​(java.lang.Object o)  
    static GetWatchResponse fromXContent​(org.easysearch.common.xcontent.XContentParser parser)  
    org.easysearch.common.xcontent.XContentType getContentType()
    Returns the XContentType of the source
    java.lang.String getId()  
    long getPrimaryTerm()  
    long getSeqNo()  
    org.easysearch.common.bytes.BytesReference getSource()
    Returns the serialized watch
    java.util.Map<java.lang.String,​java.lang.Object> getSourceAsMap()
    Returns the source as a map
    WatchStatus getStatus()  
    long getVersion()  
    int hashCode()  
    boolean isFound()  

    从类继承的方法 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

      public WatchStatus getStatus()
    • getContentType

      public org.easysearch.common.xcontent.XContentType getContentType()
      Returns the XContentType of 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