public class SerializableTableWithSize extends SerializableTable implements org.apache.spark.util.KnownSizeEstimation, java.lang.AutoCloseable
This class also implements AutoCloseable to avoid leaking resources upon broadcasting. Broadcast variables are destroyed and cleaned up on the driver and executors once they are garbage collected on the driver. The implementation ensures only resources used by copies of the main table are released.
Modifier and Type | Class and Description |
---|---|
static class |
SerializableTableWithSize.SerializableMetadataTableWithSize |
SerializableTable.SerializableMetadataTable
Modifier | Constructor and Description |
---|---|
protected |
SerializableTableWithSize(Table table) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static Table |
copyOf(Table table) |
long |
estimatedSize() |
currentSnapshot, encryption, expireSnapshots, history, io, location, locationProvider, manageSnapshots, name, newAppend, newBatchScan, newDelete, newOverwrite, newReplacePartitions, newRewrite, newRowDelta, newScan, newTable, newTransaction, operations, partitionStatisticsFiles, properties, refresh, refs, replaceSortOrder, rewriteManifests, schema, schemas, snapshot, snapshots, sortOrder, sortOrders, spec, specs, statisticsFiles, updateLocation, updatePartitionStatistics, updateProperties, updateSchema, updateSpec, updateStatistics, uuid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newFastAppend, newIncrementalAppendScan, newIncrementalChangelogScan, snapshot
protected SerializableTableWithSize(Table table)