Package org.teiid.client.lob
Class StreamingLobChunckProducer
- java.lang.Object
-
- org.teiid.client.lob.StreamingLobChunckProducer
-
- All Implemented Interfaces:
LobChunkProducer
public class StreamingLobChunckProducer extends Object implements LobChunkProducer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StreamingLobChunckProducer.Factory
-
Constructor Summary
Constructors Constructor Description StreamingLobChunckProducer(DQP dqp, long requestId, Streamable<?> streamable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the underlaying stream of producing the chunksLobChunk
getNextChunk()
Gets the next LobChunk from the source, based on the chunk size configured
-
-
-
Constructor Detail
-
StreamingLobChunckProducer
public StreamingLobChunckProducer(DQP dqp, long requestId, Streamable<?> streamable)
-
-
Method Detail
-
getNextChunk
public LobChunk getNextChunk() throws IOException
Description copied from interface:LobChunkProducer
Gets the next LobChunk from the source, based on the chunk size configured- Specified by:
getNextChunk
in interfaceLobChunkProducer
- Returns:
- LobChunk at position in the streamble object.
- Throws:
IOException
-
close
public void close() throws IOException
Description copied from interface:LobChunkProducer
Close the underlaying stream of producing the chunks- Specified by:
close
in interfaceLobChunkProducer
- Throws:
IOException
-
-