public class QueryResultPacket extends Packet
Modifier and Type | Field and Description |
---|---|
FS4Properties[] |
propsArray |
CODE_MASK, encodedBody, encodingBuffer, length
Modifier and Type | Method and Description |
---|---|
void |
addDocument(DocumentInfo document) |
protected void |
codeDecodedHook(int code)
Called when the packet code is decoded.
|
static QueryResultPacket |
create() |
void |
decodeBody(ByteBuffer buffer)
Decodes the body of this package from a byte buffer
positioned at the first byte of the package.
|
long |
getActiveDocs() |
int |
getCode()
Returns the code of this package
|
long |
getCoverageDocs() |
boolean |
getCoverageFeature() |
boolean |
getCoverageFull() |
int |
getDegradedReason() |
int |
getDocstamp() |
int |
getDocumentCount() |
List<DocumentInfo> |
getDocuments()
Returns a read-only list containing the DocumentInfo objects of this result
|
byte[] |
getGroupData()
Returns the opaque grouping results
|
int |
getMaxRank() |
boolean |
getMldFeature()
Returns whether this has the mysterious mld feature
|
short |
getNodesQueried() |
short |
getNodesReplied() |
int |
getOffset() |
long |
getSoonActiveDocs() |
long |
getTotalDocumentCount()
Returns the total number of documents avalable for this query
|
void |
setDocstamp(int docstamp) |
void |
setOffset(int offset)
Only for testing.
|
void |
setTotalDocumentCount(long totalDocumentCount)
Only for testing.
|
String |
toString() |
decode, encode, getChannel, hasChannelId, patchChannelId, setChannel
allocateAndEncode, decodeAndDecompressBody, encode, encodeAndCompressBody, encodeBody, ensureInstanceOf, getLength, getTimestamp, grantEncodingBuffer, grantEncodingBuffer, isEncoded, setCompressionLimit, setCompressionType, setEncodedBody, setTimestamp
public FS4Properties[] propsArray
public static QueryResultPacket create()
public void setDocstamp(int docstamp)
public int getDocstamp()
public boolean getMldFeature()
public boolean getCoverageFeature()
public long getCoverageDocs()
public long getActiveDocs()
public long getSoonActiveDocs()
public int getDegradedReason()
public boolean getCoverageFull()
public int getOffset()
public void setOffset(int offset)
public void decodeBody(ByteBuffer buffer)
BasicPacket
decodeBody
in class BasicPacket
public int getCode()
BasicPacket
getCode
in class BasicPacket
protected void codeDecodedHook(int code)
BasicPacket
codeDecodedHook
in class BasicPacket
public int getDocumentCount()
public byte[] getGroupData()
public long getTotalDocumentCount()
public void setTotalDocumentCount(long totalDocumentCount)
public List<DocumentInfo> getDocuments()
public void addDocument(DocumentInfo document)
public int getMaxRank()
public short getNodesQueried()
public short getNodesReplied()
Copyright © 2018. All rights reserved.