public class TeradataBinaryDataInputStream
extends org.apache.commons.io.input.SwappedDataInputStream
in| Constructor and Description |
|---|
TeradataBinaryDataInputStream(InputStream input)
Instantiates a new Teradata binary data input stream.
|
| Modifier and Type | Method and Description |
|---|---|
String |
readChar(int totalLength)
Read CHAR(N).
|
Date |
readDate()
Read DATE.
|
HiveDecimal |
readDecimal(int scale,
int byteNum)
Read DECIMAL(P, S).
|
Timestamp |
readTimestamp(Integer byteNum)
Read TIMESTAMP(P).
|
byte[] |
readVarbyte()
Read VARBYTE(N).
|
String |
readVarchar()
Read VARCHAR(N).
|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytespublic TeradataBinaryDataInputStream(InputStream input)
input - the inputpublic String readVarchar() throws IOException
IOException - the io exceptionpublic Timestamp readTimestamp(Integer byteNum) throws IOException
byteNum - the byte number that will be read from inputstreamIOException - the io exceptionpublic Date readDate() throws IOException, ParseException
IOException - the io exceptionParseException - the parse exceptionpublic String readChar(int totalLength) throws IOException
totalLength - the total lengthIOException - the io exceptionpublic HiveDecimal readDecimal(int scale, int byteNum) throws IOException
scale - the scalebyteNum - the byte numIOException - the io exceptionpublic byte[] readVarbyte()
throws IOException
IOException - the io exceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.