Class SerializableTableWithSize

  • All Implemented Interfaces:, Table, org.apache.spark.util.KnownSizeEstimation

    public class SerializableTableWithSize
    extends SerializableTable
    implements org.apache.spark.util.KnownSizeEstimation
    This class provides a serializable table with a known size estimate. Spark calls its SizeEstimator class when broadcasting variables and this can be an expensive operation, so providing a known size estimate allows that operation to be skipped.
    See Also:
    Serialized Form
    • Constructor Detail

      • SerializableTableWithSize

        protected SerializableTableWithSize​(Table table)
    • Method Detail

      • estimatedSize

        public long estimatedSize()
        Specified by:
        estimatedSize in interface org.apache.spark.util.KnownSizeEstimation
      • copyOf

        public static Table copyOf​(Table table)