public static class Dispatcher.GetDocsumsResponseReceiver extends Object
Modifier and Type | Field and Description |
---|---|
private com.yahoo.compress.Compressor |
compressor |
private boolean |
hasReportedError
Whether we have already logged/notified about an error - to avoid spamming
|
private int |
outstandingResponses
The number of responses we should receive (and process) before this is complete
|
private BlockingQueue<Client.GetDocsumsResponseOrError> |
responses |
private Result |
result |
Constructor and Description |
---|
GetDocsumsResponseReceiver(int requestCount,
com.yahoo.compress.Compressor compressor,
Result result) |
Modifier and Type | Method and Description |
---|---|
private void |
addErrors(com.yahoo.slime.Inspector errors) |
private void |
fill(FastHit hit,
com.yahoo.data.access.Inspector summary) |
private int |
fill(List<FastHit> hits,
byte[] slimeBytes) |
private Object |
nativeTypeOf(com.yahoo.data.access.Inspector inspector) |
private int |
processResponse(Client.GetDocsumsResponseOrError responseOrError) |
void |
processResponses(Query query,
String summaryClass)
Call this from the dispatcher thread to initiate and complete processing of responses.
|
void |
receive(Client.GetDocsumsResponseOrError response)
Called by a thread belonging to the client when a valid response becomes available
|
private void |
throwTimeout() |
private final BlockingQueue<Client.GetDocsumsResponseOrError> responses
private final com.yahoo.compress.Compressor compressor
private final Result result
private boolean hasReportedError
private int outstandingResponses
public GetDocsumsResponseReceiver(int requestCount, com.yahoo.compress.Compressor compressor, Result result)
public void receive(Client.GetDocsumsResponseOrError response)
private void throwTimeout() throws TimeoutException
TimeoutException
public void processResponses(Query query, String summaryClass) throws TimeoutException
TimeoutException
private int processResponse(Client.GetDocsumsResponseOrError responseOrError)
private void addErrors(com.yahoo.slime.Inspector errors)
private void fill(FastHit hit, com.yahoo.data.access.Inspector summary)
private Object nativeTypeOf(com.yahoo.data.access.Inspector inspector)
Copyright © 2018. All rights reserved.