public class StreamingQueryRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StreamingQueryRequest.DocumentStreamingMode |
Constructor and Description |
---|
StreamingQueryRequest(QueryRequest queryRequest) |
StreamingQueryRequest(QueryRequest queryRequest,
boolean streamFacets) |
StreamingQueryRequest(QueryRequest queryRequest,
StreamingQueryRequest.DocumentStreamingMode documentStreamingMode) |
StreamingQueryRequest(QueryRequest queryRequest,
StreamingQueryRequest.DocumentStreamingMode documentStreamingMode,
boolean streamFacets) |
Modifier and Type | Method and Description |
---|---|
int |
getBufferSize()
Registers the buffer size (in bytes) to be used by this
StreamingResponseClientBuilder when building a
StreamingQueryResponse ; |
long |
getConnectTimeout()
Registers the connection timeout (milliseconds) to be used by this
StreamingResponseClientBuilder when building
a StreamingQueryResponse ; |
StreamingQueryRequest.DocumentStreamingMode |
getDocumentStreamingMode() |
long |
getKeepAlivePingFrequency()
Registers a time (milliseconds) to be used to be used by this
StreamingResponseClientBuilder
when building a StreamingQueryResponse ; |
QueryRequest |
getQueryRequest() |
boolean |
isStreamFacets()
Registers a flag indicating whether or not to stream facets.
|
void |
setBufferSize(int bufferSize) |
void |
setConnectTimeout(long connectTimeout) |
void |
setDocumentStreamingMode(StreamingQueryRequest.DocumentStreamingMode documentStreamingMode) |
void |
setKeepAlivePingFrequency(long keepAlivePingFrequency) |
void |
setQueryRequest(QueryRequest queryRequest) |
void |
setStreamFacets(boolean streamFacets) |
public StreamingQueryRequest(QueryRequest queryRequest)
public StreamingQueryRequest(QueryRequest queryRequest, StreamingQueryRequest.DocumentStreamingMode documentStreamingMode, boolean streamFacets)
public StreamingQueryRequest(QueryRequest queryRequest, boolean streamFacets)
public StreamingQueryRequest(QueryRequest queryRequest, StreamingQueryRequest.DocumentStreamingMode documentStreamingMode)
public long getConnectTimeout()
StreamingResponseClientBuilder
when building
a StreamingQueryResponse
;
The client must connect to the stream within this timeout or the query will fail.
The default is 60,000 milliseconds or 1 minute.
public int getBufferSize()
StreamingResponseClientBuilder
when building a
StreamingQueryResponse
;
The default is 16,384 bytes or 16 kilobytes.
public StreamingQueryRequest.DocumentStreamingMode getDocumentStreamingMode()
public boolean isStreamFacets()
StreamingResponseClientBuilder
when building a StreamingQueryResponse
;
The default is not to stream facets.
public long getKeepAlivePingFrequency()
StreamingResponseClientBuilder
when building a StreamingQueryResponse
;
This is the time between keep alive ping attempts.
A value of 0 indicates not to attempt to keep the connection alive. This is the default.
public void setConnectTimeout(long connectTimeout)
public void setBufferSize(int bufferSize)
public void setDocumentStreamingMode(StreamingQueryRequest.DocumentStreamingMode documentStreamingMode)
public void setStreamFacets(boolean streamFacets)
public void setKeepAlivePingFrequency(long keepAlivePingFrequency)
public QueryRequest getQueryRequest()
public void setQueryRequest(QueryRequest queryRequest)
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.