public class Hit extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private Doc |
doc |
protected int |
docid |
(专用程序包) int |
doclen |
(专用程序包) QueryResponse |
hits |
protected long |
id |
protected double |
mark |
protected int |
segid |
(专用程序包) SouwenClient |
ss |
protected long |
time |
protected int |
weight |
| 构造器和说明 |
|---|
Hit(SouwenClient ss) |
Hit(SouwenClient ss,
QueryResponse hits) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
bytes2Me(byte[] buf,
int start,
Schema schema,
String charset) |
byte[] |
getByteArray(String fieldName) |
String |
getByteArrayOfHexStr(String fieldName) |
Doc |
getDoc() |
int |
getDocid() |
int |
getDoclen() |
String[] |
getFieldnames() |
double |
getFormulaResult() |
long |
getId() |
int |
getSegid() |
String |
getSummary(String fieldname,
String keyStr,
String startMark,
String endMark,
int reltLen) |
String |
getSummary4expr(String fieldname,
String keyStr,
String startMark,
String endMark,
int reltLen) |
String |
getSummary4fuzzy(String fieldname,
String keyStr,
String startMark,
String endMark,
int reltLen) |
long |
getTime() |
int |
getWeight() |
int |
intValue(String fieldName) |
long |
longValue(String fieldName) |
void |
setValue(String fieldname,
int value)
设置字段的内容。
|
void |
setValue(String fieldname,
long value)
设置字段的内容。
|
void |
setValue(String fieldname,
String value)
设置字段的内容。
|
String |
stringValue(String fieldName) |
String |
toString()
(non-Javadoc)
|
SouwenClient ss
protected long time
protected int segid
protected int docid
protected int weight
protected long id
protected double mark
private Doc doc
int doclen
QueryResponse hits
public Hit(SouwenClient ss, QueryResponse hits)
public Hit(SouwenClient ss)
public int getDocid()
public int getSegid()
public long getTime()
public Doc getDoc()
public int getWeight()
public String[] getFieldnames()
public int intValue(String fieldName)
public long longValue(String fieldName)
public byte[] getByteArray(String fieldName)
public String getSummary(String fieldname, String keyStr, String startMark, String endMark, int reltLen)
public String getSummary4expr(String fieldname, String keyStr, String startMark, String endMark, int reltLen)
public String getSummary4fuzzy(String fieldname, String keyStr, String startMark, String endMark, int reltLen)
public void setValue(String fieldname, String value)
fieldname - -- 字段名value - -- 字段内容public void setValue(String fieldname, long value)
fieldname - -- 字段名value - -- 字段内容public void setValue(String fieldname, int value)
fieldname - -- 字段名value - -- 字段内容public int bytes2Me(byte[] buf,
int start,
Schema schema,
String charset)
throws Exception
Exceptionpublic String toString()
toString 在类中 ObjectObject.toString()public long getId()
public int getDoclen()
public double getFormulaResult()
Copyright © 2023. All rights reserved.