public class OrcPipelineOutput extends FileSinkPipelineOutput
internalId, internalName, log, TIMESTAMP_FORMATSERIALIZED_CLASS_NAME, TYPEXML_SERIALIZED_CLASS_NAME| Constructor and Description |
|---|
OrcPipelineOutput() |
| Modifier and Type | Method and Description |
|---|---|
OrcPipelineOutput |
addConfiguration(Map<String,String> configuration)
Sets the Orc configuration parameters.
|
OrcPipelineOutput |
addConfiguration(String key,
String value)
Sets the Orc configuration parameters.
|
DataWriter |
createDataWriter() |
OrcPipelineOutput |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
OrcPipelineOutput |
fromXmlElement(Element pipelineOutputElement) |
void |
generateJavaCode(JavaCodeBuilder javaCodeBuilder) |
int |
getBatchSize()
Indicates the maximum number of records to buffer when writing ORC data (default 1024).
|
int |
getBigDecimalPrecision()
Returns default precision value for BigDecimal type of values.
|
int |
getBigDecimalScale()
Indicates the scale used when writing BigDecimal values (default 10).
|
CompressionKind |
getCompressionKind()
Indicates the compression used for writing (default NONE).
|
Map<String,String> |
getConfiguration()
Returns the Orc configuration parameters.
|
FileSink |
getFileSink() |
String |
getName() |
RoundingMode |
getRoundingMode()
Indicates the rounding algorithm used for all BigDecimal values (default is
RoundingMode.HALF_UP). |
RowBatchVersion |
getRowBatchVersion()
Returns
RowBatchVersion to store ORC data. |
TypeDescription |
getSchema()
Returns the schema used to write the file.
|
boolean |
isOverwrite()
Overwrites the file if true, otherwise, throws an exception if the file already exists.
|
boolean |
isUseTimestampInstant()
Indicates if
Instants should be used to store datetime values. |
boolean |
isUTC()
Indicates if datetime values are adjusted to UTC.
|
boolean |
isWriteUuidAsString()
Indicates whether UUID values are written as strings or bytes.
|
OrcPipelineOutput |
setBatchSize(int batchSize)
Indicates the maximum number of records to buffer when writing ORC data (default 1024).
|
OrcPipelineOutput |
setBigDecimalPrecision(int bigDecimalPrecision)
Sets default precision value for BigDecimal type of values.
|
OrcPipelineOutput |
setBigDecimalScale(int bigDecimalScale)
Indicates the scale used when writing BigDecimal values (default 10).
|
OrcPipelineOutput |
setCompressionKind(CompressionKind compressionKind)
Indicates the compression used for writing (default NONE).
|
OrcPipelineOutput |
setFileSink(FileSink fileSink) |
OrcPipelineOutput |
setOverwrite(boolean overwrite)
Overwrites the file if true, otherwise, throws an exception if the file already exists.
|
OrcPipelineOutput |
setRoundingMode(RoundingMode roundingMode)
Indicates the rounding algorithm used for all BigDecimal values (default is
RoundingMode.HALF_UP). |
OrcPipelineOutput |
setRowBatchVersion(RowBatchVersion rowBatchVersion)
Sets
RowBatchVersion to store ORC data. |
OrcPipelineOutput |
setSchema(TypeDescription schema)
Sets the schema used to write the file.
|
OrcPipelineOutput |
setUseTimestampInstant(boolean useTimestampInstant)
Indicates if
Instants should be used to store datetime values. |
void |
setUTC(boolean UTC)
Indicates if datetime values are adjusted to UTC.
|
OrcPipelineOutput |
setWriteUuidAsString(boolean writeUuidAsString)
Indicates whether UUID values are written as strings or bytes.
|
Record |
toRecord() |
Element |
toXmlElement(Document document) |
generateSaveCodegetNestedPipelineOutput, getRootPipelineOutputaddExceptionProperties, assertValid, assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalIdequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecordnewInstanceFromJsonforEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXmladdExceptionProperties, contributeExceptionProperties, contributeExceptionPropertiespublic String getName()
getName in class FileSinkPipelineOutputpublic FileSink getFileSink()
getFileSink in class FileSinkPipelineOutputpublic OrcPipelineOutput setFileSink(FileSink fileSink)
setFileSink in class FileSinkPipelineOutputpublic DataWriter createDataWriter()
public void generateJavaCode(JavaCodeBuilder javaCodeBuilder)
public TypeDescription getSchema()
public OrcPipelineOutput setSchema(TypeDescription schema)
public Map<String,String> getConfiguration()
public OrcPipelineOutput addConfiguration(Map<String,String> configuration)
public OrcPipelineOutput addConfiguration(String key, String value)
public int getBatchSize()
public OrcPipelineOutput setBatchSize(int batchSize)
public boolean isUseTimestampInstant()
Instants should be used to store datetime values.public OrcPipelineOutput setUseTimestampInstant(boolean useTimestampInstant)
Instants should be used to store datetime values.public boolean isOverwrite()
public OrcPipelineOutput setOverwrite(boolean overwrite)
public boolean isUTC()
public void setUTC(boolean UTC)
public boolean isWriteUuidAsString()
Indicates whether UUID values are written as strings or bytes. If set to false, UUID values will be written as bytes.
Default value is true.
public OrcPipelineOutput setWriteUuidAsString(boolean writeUuidAsString)
Indicates whether UUID values are written as strings or bytes. If set to false, UUID values will be written as bytes.
Default value is true.
public RowBatchVersion getRowBatchVersion()
RowBatchVersion to store ORC data. precision > TypeDescription.MAX_DECIMAL64_PRECISION (18) then DecimalColumnVector
is used instead of Decimal64ColumnVector.public OrcPipelineOutput setRowBatchVersion(RowBatchVersion rowBatchVersion)
RowBatchVersion to store ORC data. If BigDecimal value has precision > TypeDescription.MAX_DECIMAL64_PRECISION (18) then
DecimalColumnVector is used instead of Decimal64ColumnVector.public int getBigDecimalPrecision()
public OrcPipelineOutput setBigDecimalPrecision(int bigDecimalPrecision)
public int getBigDecimalScale()
public OrcPipelineOutput setBigDecimalScale(int bigDecimalScale)
public RoundingMode getRoundingMode()
RoundingMode.HALF_UP).public OrcPipelineOutput setRoundingMode(RoundingMode roundingMode)
RoundingMode.HALF_UP).public CompressionKind getCompressionKind()
public OrcPipelineOutput setCompressionKind(CompressionKind compressionKind)
public Record toRecord()
toRecord in interface RecordSerializabletoRecord in class Beanpublic OrcPipelineOutput fromRecord(Record source)
RecordSerializablethis (for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord in interface RecordSerializablefromRecord in class PipelineOutputpublic Element toXmlElement(Document document)
toXmlElement in interface XmlSerializabletoXmlElement in class PipelineOutputpublic OrcPipelineOutput fromXmlElement(Element pipelineOutputElement)
Copyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.