Constructor and Description |
---|
PacketWrapper(CacheKey key,
BasicPacket[] packets)
Only used by PacketCacheTestCase, should not be used otherwise
|
PacketWrapper(CacheKey key,
DocsumPacketKey[] packetKeys,
BasicPacket[] bpackets,
Optional<Integer> distributionKey) |
Modifier and Type | Method and Description |
---|---|
void |
addDocsums(DocsumPacketKey[] packetKeys,
BasicPacket[] bpackets,
int offset) |
void |
addDocsums(DocsumPacketKey[] packetKeys,
Packet[] packets) |
void |
addResultPacket(QueryResultPacket resultPacket) |
Object |
clone()
Straightforward shallow copy.
|
Optional<Integer> |
distributionKey()
Returns the distribution key of the content node producing these hits,
or empty if the hits were returned through dispatch
|
List<DocumentInfo> |
getDocuments(int offset,
int hits)
Returns the list of documents, null if not all are available
|
QueryResultPacket |
getFirstResultPacket() |
int |
getNumPackets() |
int |
getPacketsSize() |
List<BasicPacket> |
getResultPackets()
Only for testing.
|
void |
setTimestamp(long timestamp) |
public PacketWrapper(CacheKey key, DocsumPacketKey[] packetKeys, BasicPacket[] bpackets, Optional<Integer> distributionKey)
public PacketWrapper(CacheKey key, BasicPacket[] packets)
public QueryResultPacket getFirstResultPacket()
public Optional<Integer> distributionKey()
public List<DocumentInfo> getDocuments(int offset, int hits)
public void addResultPacket(QueryResultPacket resultPacket)
public List<BasicPacket> getResultPackets()
public void addDocsums(DocsumPacketKey[] packetKeys, BasicPacket[] bpackets, int offset)
public void addDocsums(DocsumPacketKey[] packetKeys, Packet[] packets)
public int getNumPackets()
public void setTimestamp(long timestamp)
public int getPacketsSize()
Copyright © 2018. All rights reserved.