class ColumnarCachedBatchSerializer extends CachedBatchSerializer with SQLConfHelper
Feature: 1. This serializer supports column pruning 2. TODO: support push down filter 3. Super TODO: support store offheap object directly
The data transformation pipeline:
- Serializer ColumnarBatch -> CachedColumnarBatch -> serialize to byte[]
- Deserializer CachedColumnarBatch -> ColumnarBatch -> deserialize to byte[] to create Velox ColumnarBatch
- Serializer InternalRow -> CachedColumnarBatch (support RowToColumnar) -> Convert InternalRow to ColumnarBatch -> Serializer ColumnarBatch -> CachedColumnarBatch
- Serializer InternalRow -> DefaultCachedBatch (unsupport RowToColumnar) -> Convert InternalRow to DefaultCachedBatch using vanilla Spark serializer
- Deserializer CachedColumnarBatch -> InternalRow (support ColumnarToRow) -> Deserializer CachedColumnarBatch -> ColumnarBatch -> Convert ColumnarBatch to InternalRow
- Deserializer DefaultCachedBatch -> InternalRow (unsupport ColumnarToRow) -> Convert DefaultCachedBatch to InternalRow using vanilla Spark serializer
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ColumnarCachedBatchSerializer
- SQLConfHelper
- CachedBatchSerializer
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ColumnarCachedBatchSerializer()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
buildFilter(predicates: Seq[Expression], cachedAttributes: Seq[Attribute]): (Int, Iterator[CachedBatch]) ⇒ Iterator[CachedBatch]
- Definition Classes
- ColumnarCachedBatchSerializer → CachedBatchSerializer
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
conf: SQLConf
- Definition Classes
- SQLConfHelper
-
def
convertCachedBatchToColumnarBatch(input: RDD[CachedBatch], cacheAttributes: Seq[Attribute], selectedAttributes: Seq[Attribute], conf: SQLConf): RDD[ColumnarBatch]
- Definition Classes
- ColumnarCachedBatchSerializer → CachedBatchSerializer
-
def
convertCachedBatchToInternalRow(input: RDD[CachedBatch], cacheAttributes: Seq[Attribute], selectedAttributes: Seq[Attribute], conf: SQLConf): RDD[InternalRow]
- Definition Classes
- ColumnarCachedBatchSerializer → CachedBatchSerializer
-
def
convertColumnarBatchToCachedBatch(input: RDD[ColumnarBatch], schema: Seq[Attribute], storageLevel: StorageLevel, conf: SQLConf): RDD[CachedBatch]
- Definition Classes
- ColumnarCachedBatchSerializer → CachedBatchSerializer
-
def
convertInternalRowToCachedBatch(input: RDD[InternalRow], schema: Seq[Attribute], storageLevel: StorageLevel, conf: SQLConf): RDD[CachedBatch]
- Definition Classes
- ColumnarCachedBatchSerializer → CachedBatchSerializer
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
supportsColumnarInput(schema: Seq[Attribute]): Boolean
- Definition Classes
- ColumnarCachedBatchSerializer → CachedBatchSerializer
-
def
supportsColumnarOutput(schema: StructType): Boolean
- Definition Classes
- ColumnarCachedBatchSerializer → CachedBatchSerializer
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
vectorTypes(attributes: Seq[Attribute], conf: SQLConf): Option[Seq[String]]
- Definition Classes
- CachedBatchSerializer
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()