类 CountResponse

java.lang.Object
org.easysearch.client.core.CountResponse

public final class CountResponse
extends java.lang.Object
A response to _count API request.
  • 嵌套类概要

    嵌套类
    修饰符和类型 说明
    static class  CountResponse.ShardStats
    Encapsulates _shards section of count api response.
  • 构造器概要

    构造器
    构造器 说明
    CountResponse​(long count, java.lang.Boolean terminatedEarly, CountResponse.ShardStats shardStats)  
  • 方法概要

    修饰符和类型 方法 说明
    static CountResponse fromXContent​(org.easysearch.common.xcontent.XContentParser parser)  
    long getCount()
    Number of documents matching request.
    int getFailedShards()
    The failed number of shards the search was executed on.
    org.easysearch.action.search.ShardSearchFailure[] getShardFailures()
    The failures that occurred during the search.
    CountResponse.ShardStats getShardStats()  
    int getSkippedShards()
    The number of shards skipped due to pre-filtering
    int getSuccessfulShards()
    The successful number of shards the search was executed on.
    int getTotalShards()
    The total number of shards the search was executed on.
    java.lang.Boolean isTerminatedEarly()  
    org.easysearch.rest.RestStatus status()  
    java.lang.String toString()  

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • CountResponse

      public CountResponse​(long count, java.lang.Boolean terminatedEarly, CountResponse.ShardStats shardStats)
  • 方法详细资料

    • getShardStats

      public CountResponse.ShardStats getShardStats()
    • getCount

      public long getCount()
      Number of documents matching request.
    • getTotalShards

      public int getTotalShards()
      The total number of shards the search was executed on.
    • getSuccessfulShards

      public int getSuccessfulShards()
      The successful number of shards the search was executed on.
    • getSkippedShards

      public int getSkippedShards()
      The number of shards skipped due to pre-filtering
    • getFailedShards

      public int getFailedShards()
      The failed number of shards the search was executed on.
    • getShardFailures

      public org.easysearch.action.search.ShardSearchFailure[] getShardFailures()
      The failures that occurred during the search.
    • status

      public org.easysearch.rest.RestStatus status()
    • fromXContent

      public static CountResponse fromXContent​(org.easysearch.common.xcontent.XContentParser parser) throws java.io.IOException
      抛出:
      java.io.IOException
    • toString

      public java.lang.String toString()
      覆盖:
      toString 在类中 java.lang.Object
    • isTerminatedEarly

      public java.lang.Boolean isTerminatedEarly()