Package org.trellisldp.ext.cassandra
Class LazyChunkInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.trellisldp.ext.cassandra.LazyFilterInputStream
-
- org.trellisldp.ext.cassandra.LazyChunkInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class LazyChunkInputStream extends LazyFilterInputStream
AnInputStreambacked by a Cassandra query to retrieve one binary chunk.Not thread-safe!
- See Also:
InputStreamCodec
-
-
Constructor Summary
Constructors Constructor Description LazyChunkInputStream(CqlSession session, BoundStatement query)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InputStreaminitialize()Implementations of this method should useLazyFilterInputStream.initialize()to fillLazyFilterInputStream.wrapped.-
Methods inherited from class org.trellisldp.ext.cassandra.LazyFilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
LazyChunkInputStream
public LazyChunkInputStream(CqlSession session, BoundStatement query)
- Parameters:
session- The Cassandra session to usequery- the CQL query to use
-
-
Method Detail
-
initialize
protected InputStream initialize()
Description copied from class:LazyFilterInputStreamImplementations of this method should useLazyFilterInputStream.initialize()to fillLazyFilterInputStream.wrapped.- Specified by:
initializein classLazyFilterInputStream- Returns:
- a wrapped
InputStream
-
-