public class TeradataBinaryDataOutputStream
extends org.apache.commons.io.output.ByteArrayOutputStream
org.apache.commons.io.output.AbstractByteArrayOutputStream.InputStreamConstructor<T extends InputStream>| Constructor and Description |
|---|
TeradataBinaryDataOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
writeChar(HiveCharWritable writable,
int length)
Write CHAR(N).
|
void |
writeDate(DateWritableV2 date)
Write DATE.
|
void |
writeDecimal(HiveDecimalWritable writable,
int byteNum,
int scale)
Write DECIMAL(P, S).
|
void |
writeDouble(double d)
Write DOUBLE.
|
void |
writeInt(int i)
Write INT.
|
void |
writeLong(long l)
Write LONG.
|
void |
writeShort(short s)
Write SHORT.
|
void |
writeTimestamp(TimestampWritableV2 timestamp,
int byteNum)
Write TIMESTAMP(N).
|
void |
writeVarByte(org.apache.hadoop.io.BytesWritable writable)
Write VARBYTE(N).
|
void |
writeVarChar(HiveVarcharWritable writable)
Write VARCHAR(N).
|
reset, size, toBufferedInputStream, toBufferedInputStream, toByteArray, toInputStream, write, write, write, writeToclose, needNewBuffer, resetImpl, toByteArrayImpl, toInputStream, toString, toString, toString, writeImpl, writeImpl, writeImpl, writeToImplflush, writepublic void writeVarChar(HiveVarcharWritable writable) throws IOException
writable - the writableIOException - the io exceptionpublic void writeInt(int i)
throws IOException
i - theIOException - the io exceptionpublic void writeTimestamp(TimestampWritableV2 timestamp, int byteNum) throws IOException
timestamp - the timestampbyteNum - the byte number the timestamp will writeIOException - the io exceptionpublic void writeDouble(double d)
throws IOException
d - the dIOException - the io exceptionpublic void writeDate(DateWritableV2 date) throws IOException
date - the dateIOException - the io exceptionpublic void writeLong(long l)
throws IOException
l - the lIOException - the io exceptionpublic void writeChar(HiveCharWritable writable, int length) throws IOException
writable - the writablelength - the byte nIOException - the io exceptionpublic void writeDecimal(HiveDecimalWritable writable, int byteNum, int scale) throws IOException
writable - the writablebyteNum - the byte numIOException - the io exceptionpublic void writeShort(short s)
throws IOException
s - the sIOException - the io exceptionpublic void writeVarByte(org.apache.hadoop.io.BytesWritable writable)
throws IOException
writable - the writableIOException - the io exceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.