Class QueryChunkResponseParser
java.lang.Object
com.couchbase.client.core.io.netty.chunk.BaseChunkResponseParser<QueryChunkHeader,QueryChunkRow,QueryChunkTrailer>
com.couchbase.client.core.io.netty.query.QueryChunkResponseParser
- All Implemented Interfaces:
ChunkResponseParser<QueryChunkHeader,QueryChunkRow, QueryChunkTrailer>
public class QueryChunkResponseParser
extends BaseChunkResponseParser<QueryChunkHeader,QueryChunkRow,QueryChunkTrailer>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGive subclasses a chance to reset their state.error()If the parser sees an error, it should fill this optional so that if the IO layer needs to fail the topmost future it will be passed in.header(boolean lastChunk) Once the header is completely available, returns a non-absent value of it.protected JsonStreamParser.BuilderSubclass implements this to return the "meat" of the decoding, the chunk parser.voidCalled when the JSON stream has been parsed completely and successfully.Methods inherited from class com.couchbase.client.core.io.netty.chunk.BaseChunkResponseParser
cleanup, completeRows, completeTrailer, decodingFailure, emitRow, endOfInput, failRows, feed, initialize, isHeaderComplete, markHeaderComplete, requestContext, responseHeader, rows, trailer, updateRequestContext, updateResponseHeader
-
Constructor Details
-
QueryChunkResponseParser
public QueryChunkResponseParser()
-
-
Method Details
-
doCleanup
protected void doCleanup()Description copied from class:BaseChunkResponseParserGive subclasses a chance to reset their state.- Specified by:
doCleanupin classBaseChunkResponseParser<QueryChunkHeader,QueryChunkRow, QueryChunkTrailer>
-
parserBuilder
Description copied from class:BaseChunkResponseParserSubclass implements this to return the "meat" of the decoding, the chunk parser.- Specified by:
parserBuilderin classBaseChunkResponseParser<QueryChunkHeader,QueryChunkRow, QueryChunkTrailer>
-
header
Description copied from interface:ChunkResponseParserOnce the header is completely available, returns a non-absent value of it.It is important to provide a non-absent value even if some parts are optional because the related IO components will only proceed if a header is available eventually.
- Parameters:
lastChunk- if we are currently parsing the last chunk.
-
error
Description copied from interface:ChunkResponseParserIf the parser sees an error, it should fill this optional so that if the IO layer needs to fail the topmost future it will be passed in. -
signalComplete
public void signalComplete()Description copied from class:BaseChunkResponseParserCalled when the JSON stream has been parsed completely and successfully.- Specified by:
signalCompletein classBaseChunkResponseParser<QueryChunkHeader,QueryChunkRow, QueryChunkTrailer>
-