public class CassandraServiceImpl<T> extends java.lang.Object implements CassandraService<T>
CassandraService
that actually use a Cassandra instance.Modifier and Type | Class and Description |
---|---|
protected class |
CassandraServiceImpl.WriterImpl
Writer storing an entity into Apache Cassandra database.
|
CassandraService.Writer<T>
Constructor and Description |
---|
CassandraServiceImpl() |
Modifier and Type | Method and Description |
---|---|
org.apache.beam.sdk.io.cassandra.CassandraServiceImpl.CassandraReaderImpl |
createReader(org.apache.beam.sdk.io.cassandra.CassandraIO.CassandraSource<T> source)
Returns a
BoundedSource.BoundedReader that will read from
Cassandra using the spec from CassandraIO.CassandraSource . |
CassandraService.Writer |
createWriter(CassandraIO.Write<T> spec)
Create a
CassandraService.Writer that writes entities into the Cassandra instance. |
long |
getEstimatedSizeBytes(CassandraIO.Read<T> spec)
Returns an estimation of the size that could be read.
|
java.util.List<BoundedSource<T>> |
split(CassandraIO.Read<T> spec,
long desiredBundleSizeBytes)
Split a table read into several sources.
|
public org.apache.beam.sdk.io.cassandra.CassandraServiceImpl.CassandraReaderImpl createReader(org.apache.beam.sdk.io.cassandra.CassandraIO.CassandraSource<T> source)
CassandraService
BoundedSource.BoundedReader
that will read from
Cassandra using the spec from CassandraIO.CassandraSource
.createReader
in interface CassandraService<T>
public long getEstimatedSizeBytes(CassandraIO.Read<T> spec)
CassandraService
getEstimatedSizeBytes
in interface CassandraService<T>
public java.util.List<BoundedSource<T>> split(CassandraIO.Read<T> spec, long desiredBundleSizeBytes)
CassandraService
split
in interface CassandraService<T>
public CassandraService.Writer createWriter(CassandraIO.Write<T> spec)
CassandraService
CassandraService.Writer
that writes entities into the Cassandra instance.createWriter
in interface CassandraService<T>