public class QueryResponse extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private SouwenClient |
client |
private byte[] |
databuf |
private int |
doc_num |
private int |
doc_total |
(专用程序包) List<Hit> |
hits |
(专用程序包) QueryRequest |
queryReq |
(专用程序包) List<XWord> |
schOpKeyWs |
| 构造器和说明 |
|---|
QueryResponse(SouwenClient souwen) |
QueryResponse(SouwenClient souwen,
QueryRequest req) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addHit(Hit hit) |
QueryResponse |
bytes2Me(byte[] buf)
convert a byte array to Hits class
|
QueryResponse |
bytes2Me(byte[] buf,
int i) |
Hit |
get(int i) |
byte[] |
getDataBuf() |
int |
getDocNum() |
int |
getDocTotal() |
QueryRequest |
getQueryRequest() |
SouwenClient |
getSS() |
Iterator<Hit> |
iterator() |
void |
setHits(List<Hit> hits) |
List<XWord> |
tokenSearchOpKey(String keyStr) |
String |
toString() |
private int doc_num
private int doc_total
QueryRequest queryReq
private SouwenClient client
private byte[] databuf
public QueryResponse(SouwenClient souwen, QueryRequest req)
public QueryResponse(SouwenClient souwen)
public SouwenClient getSS()
public void addHit(Hit hit)
public int getDocNum()
public int getDocTotal()
public Hit get(int i)
public QueryResponse bytes2Me(byte[] buf) throws Exception
buf - IOExceptionExceptionpublic QueryResponse bytes2Me(byte[] buf, int i) throws Exception
Exceptionpublic byte[] getDataBuf()
public QueryRequest getQueryRequest()
Copyright © 2023. All rights reserved.