Skip to content

DefaultCachedBatchSerializer

DefaultCachedBatchSerializer is a SimpleMetricsCachedBatchSerializer.

supportsColumnarInput

Signature
supportsColumnarInput(
  schema: Seq[Attribute]): Boolean

supportsColumnarInput is part of the CachedBatchSerializer abstraction.

supportsColumnarInput is false.

supportsColumnarOutput

Signature
supportsColumnarOutput(
  schema: StructType): Boolean

supportsColumnarOutput is part of the CachedBatchSerializer abstraction.

supportsColumnarOutput is true when all the fields of the given schema are of the following types:

  • BooleanType
  • ByteType
  • DoubleType
  • FloatType
  • IntegerType
  • LongType
  • ShortType