public abstract class PlatformAbstractQueryCursor<T> extends PlatformAbstractTarget implements AutoCloseable
ERROR, FALSE, log, platformCtx, TRUE| Constructor and Description |
|---|
PlatformAbstractQueryCursor(PlatformContext platformCtx,
QueryCursorEx<T> cursor,
int batchSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
processInLongOutLong(int type,
long val)
Process IN operation.
|
void |
processOutStream(int type,
BinaryRawWriterEx writer)
Process OUT operation.
|
protected abstract void |
write(BinaryRawWriterEx writer,
T val)
Write value to the stream.
|
convertException, platformContext, processInObjectStreamOutObjectStream, processInStreamAsync, processInStreamOutLong, processInStreamOutLong, processInStreamOutObject, processInStreamOutStream, processOutObject, readAndListenFuture, readAndListenFuture, readAndListenFuture, readAndListenFuture, wrapListenablepublic PlatformAbstractQueryCursor(PlatformContext platformCtx, QueryCursorEx<T> cursor, int batchSize)
platformCtx - Context.cursor - Underlying cursor.batchSize - Batch size.public void processOutStream(int type,
BinaryRawWriterEx writer)
throws IgniteCheckedException
processOutStream in interface PlatformTargetprocessOutStream in class PlatformAbstractTargettype - Type.writer - Binary writer.IgniteCheckedException - In case of exception.public long processInLongOutLong(int type,
long val)
throws IgniteCheckedException
processInLongOutLong in interface PlatformTargetprocessInLongOutLong in class PlatformAbstractTargettype - Type.val - Value.IgniteCheckedException - In case of exception.public void close()
throws Exception
close in interface AutoCloseableExceptionprotected abstract void write(BinaryRawWriterEx writer, T val)
writer - Writer.val - Value.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017