Interface BulkWriterContext
-
- All Known Implementing Classes:
AbstractBulkWriterContext,CassandraBulkWriterContext,CassandraCoordinatedBulkWriterContext
public interface BulkWriterContextContext for bulk write operations, providing access to cluster, job, schema, and transport information.Serialization Architecture: This interface does NOT extend Serializable. BulkWriterContext instances are never broadcast to executors. Instead,
BulkWriterConfigis broadcast, and executors reconstruct BulkWriterContext instances from the config using the factory methodfrom(BulkWriterConfig).The implementations (
CassandraBulkWriterContext,CassandraCoordinatedBulkWriterContext) do NOT have serialVersionUID fields as they are never serialized.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.cassandra.bridge.CassandraBridgebridge()ClusterInfocluster()static BulkWriterContextfrom(BulkWriterConfig config)Factory method to create a BulkWriterContext from a BulkWriterConfig on executors.JobInfojob()org.apache.cassandra.spark.common.stats.JobStatsPublisherjobStats()SchemaInfoschema()voidshutdown()TransportContexttransportContext()
-
-
-
Method Detail
-
cluster
ClusterInfo cluster()
-
job
JobInfo job()
-
jobStats
org.apache.cassandra.spark.common.stats.JobStatsPublisher jobStats()
-
schema
SchemaInfo schema()
-
bridge
org.apache.cassandra.bridge.CassandraBridge bridge()
-
shutdown
void shutdown()
-
transportContext
TransportContext transportContext()
-
from
static BulkWriterContext from(BulkWriterConfig config)
Factory method to create a BulkWriterContext from a BulkWriterConfig on executors. This method reconstructs context instances on executors from the broadcast configuration. The driver creates contexts directly using constructors, not this method.- Parameters:
config- the immutable configuration object broadcast from driver- Returns:
- a new BulkWriterContext instance
-
-