Class TableSchema


  • public class TableSchema
    extends java.lang.Object
    Schema information for bulk write operations.

    This class does NOT implement Serializable (Logger is not serializable). For broadcast to executors, BroadcastableTableSchema is used instead, and executors reconstruct TableSchema from the broadcastable data.

    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TableSchema

        public TableSchema​(org.apache.spark.sql.types.StructType dfSchema,
                           TableInfoProvider tableInfo,
                           WriteMode writeMode,
                           TTLOption ttlOption,
                           TimestampOption timestampOption,
                           java.lang.String lowestCassandraVersion,
                           boolean quoteIdentifiers)
      • TableSchema

        public TableSchema​(BroadcastableTableSchema broadcastable)
        Reconstruct TableSchema from BroadcastableTableSchema on executor. This constructor is used only on executors when reconstructing from broadcast data.
        Parameters:
        broadcastable - the broadcastable table schema from broadcast