public class ChunkOutputStream<T> extends OutputStream
OutputStream which will write to a row. The written data
will be split up by chunks of the given chunkSize. Each chunk we get written
to own column which will have the chunk number (starting at 0) as column key
(Long).
This implementation is not thread-safe!| Constructor and Description |
|---|
ChunkOutputStream(Keyspace keyspace,
String cf,
T key,
Serializer<T> keySerializer,
int chunkSize) |
public ChunkOutputStream(Keyspace keyspace, String cf, T key, Serializer<T> keySerializer, int chunkSize)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionCopyright © 2014. All Rights Reserved.