T
- The type of the elementpublic abstract class Vectorizer<T> extends Object implements Serializable
VectorizedRowBatch
.
Users have to extend this class and override the vectorize() method with the logic to
transform the element to a VectorizedRowBatch
.
Constructor and Description |
---|
Vectorizer(String schema) |
Modifier and Type | Method and Description |
---|---|
org.apache.orc.TypeDescription |
getSchema()
Provides the ORC schema.
|
abstract void |
vectorize(T element,
org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch)
Transforms the provided element to ColumnVectors and sets them in the exposed
VectorizedRowBatch.
|
public Vectorizer(String schema)
public org.apache.orc.TypeDescription getSchema()
public abstract void vectorize(T element, org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch) throws IOException
element
- The input elementbatch
- The batch to write the ColumnVectorsIOException
- if there is an error while transforming the input.Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.