public abstract class AbstractPojoWriter<V extends ValueVector> extends Object implements PojoWriter
Constructor and Description |
---|
AbstractPojoWriter(String fieldName,
TypeProtos.MajorType type) |
Modifier and Type | Method and Description |
---|---|
void |
allocate()
Allocates new buffer for value vector.
|
void |
cleanup()
Performs clean up if needed.
|
void |
init(OutputMutator output)
Initializes value vector.
|
void |
setValueCount(int valueCount)
Sets number of written records.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeField
protected V extends ValueVector vector
public AbstractPojoWriter(String fieldName, TypeProtos.MajorType type)
public void init(OutputMutator output) throws SchemaChangeException
PojoWriter
init
in interface PojoWriter
output
- output mutatorSchemaChangeException
public void allocate()
PojoWriter
allocate
in interface PojoWriter
public void setValueCount(int valueCount)
PojoWriter
setValueCount
in interface PojoWriter
valueCount
- record countpublic void cleanup()
PojoWriter
cleanup
in interface PojoWriter
Copyright © 1970 The Apache Software Foundation. All rights reserved.