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, waitwriteFieldprotected V extends ValueVector vector
public AbstractPojoWriter(String fieldName, TypeProtos.MajorType type)
public void init(OutputMutator output) throws SchemaChangeException
PojoWriterinit in interface PojoWriteroutput - output mutatorSchemaChangeExceptionpublic void allocate()
PojoWriterallocate in interface PojoWriterpublic void setValueCount(int valueCount)
PojoWritersetValueCount in interface PojoWritervalueCount - record countpublic void cleanup()
PojoWritercleanup in interface PojoWriterCopyright © 2017 The Apache Software Foundation. All rights reserved.