
eclectic.orc.template.methodSpecialCaseSetup.stg Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eclectic-orc Show documentation
Show all versions of eclectic-orc Show documentation
Supports writing Java objects to ORC files.
The newest version!
methodSpecialCaseSetup(list) ::= <<
protected void specialCaseSetup() {
}
>>
specialCaseListInstruction(schemaColumn) ::= <<
{
vector = ()vectorizedRowBatch.cols[];
child = ()vector.child;
int nullLength = 1024 * ;
child.isNull = new boolean[nullLength];
vector.offsets = new long[nullLength];
int newLength = 1024 * ;
<(schemaColumn.complexType.listChild.complexType.templateNameListReinit)(schemaColumn, "child", "newLength", "nullLength")>
}
>>
initBytesList(schemaColumn, val, len, nullLength) ::= <<
.vector = new byte[][];
.start = new int[];
.length = new int[];
>>
initLongList(schemaColumn, val, len, nullLength) ::= <<
.vector = new long[];
>>
initDoubleList(schemaColumn, val, len, nullLength) ::= <<
.vector = new double[];
>>
initDecimalList(schemaColumn, val, len, nullLength) ::= <<
.vector = new HiveDecimalWritable[];
>>
initTimestampList(schemaColumn, val, len, nullLength) ::= <<
.time = new long[];
.nanos = new int[];
>>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy