public interface ResponseMeta
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCause()
如果发生异常,错误原因是个啥
|
String |
getClusterAlias()
获取集群别名
|
int |
getFrom()
获取文档偏移量
|
String |
getId()
获取文档Id
|
String |
getIndex()
获取执行操作的索引
|
String[] |
getMatchedQueries()
获取匹配查询
|
float |
getScore()
获取score
|
int |
getSize()
获取分页大小
|
Object[] |
getSortValues()
获取排序数组
|
Map<String,Object> |
getSourceAsMap()
获取map形式文档
|
String |
getSourceAsString()
获取文档字符串
|
int |
getTook()
获取执行时间
|
long |
getTotal()
获取文档总数
|
String |
getType()
获取操作的类型
|
long |
getVersion()
获取version
|
boolean |
isSuccess()
判读执行是否成功
|
boolean |
isTimeout()
判断执行是否超时
|
long getTotal()
int getFrom()
int getSize()
String getIndex()
String getType()
int getTook()
String getId()
boolean isTimeout()
trueboolean isSuccess()
trueString getCause()
float getScore()
long getVersion()
String getSourceAsString()
Object[] getSortValues()
String getClusterAlias()
String[] getMatchedQueries()
Copyright © 2021. All rights reserved.