public final class BinarySortableSerializeWrite extends Object implements SerializeWrite
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
BinarySortableSerializeWrite(boolean[] columnSortOrderIsDesc,
byte[] columnNullMarker,
byte[] columnNotNullMarker) |
BinarySortableSerializeWrite(int fieldCount) |
Modifier and Type | Method and Description |
---|---|
void |
beginList(List list) |
void |
beginMap(Map<?,?> map) |
void |
beginStruct(List fieldValues) |
void |
beginUnion(int tag) |
void |
finishList() |
void |
finishMap() |
void |
finishStruct() |
void |
finishUnion() |
void |
reset() |
void |
separateKey() |
void |
separateKeyValuePair() |
void |
separateList() |
void |
separateStruct() |
void |
set(ByteStream.Output output) |
void |
setAppend(ByteStream.Output output) |
void |
writeBinary(byte[] v) |
void |
writeBinary(byte[] v,
int start,
int length) |
void |
writeBoolean(boolean v) |
void |
writeByte(byte v) |
void |
writeDate(Date date) |
void |
writeDate(int dateAsDays) |
void |
writeDecimal64(long decimal64Long,
int scale) |
void |
writeDouble(double vd) |
void |
writeFloat(float vf) |
void |
writeHiveChar(HiveChar hiveChar) |
void |
writeHiveDecimal(org.apache.hadoop.hive.common.type.HiveDecimal dec,
int scale) |
void |
writeHiveDecimal(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable decWritable,
int scale) |
void |
writeHiveIntervalDayTime(org.apache.hadoop.hive.common.type.HiveIntervalDayTime vidt) |
void |
writeHiveIntervalYearMonth(HiveIntervalYearMonth viyt) |
void |
writeHiveIntervalYearMonth(int totalMonths) |
void |
writeHiveVarchar(HiveVarchar hiveVarchar) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeNull() |
void |
writeShort(short v) |
void |
writeString(byte[] v) |
void |
writeString(byte[] v,
int start,
int length) |
void |
writeTimestamp(Timestamp vt) |
public BinarySortableSerializeWrite(boolean[] columnSortOrderIsDesc, byte[] columnNullMarker, byte[] columnNotNullMarker)
public BinarySortableSerializeWrite(int fieldCount)
public void set(ByteStream.Output output)
set
in interface SerializeWrite
public void setAppend(ByteStream.Output output)
setAppend
in interface SerializeWrite
public void reset()
reset
in interface SerializeWrite
public void writeNull() throws IOException
writeNull
in interface SerializeWrite
IOException
public void writeBoolean(boolean v) throws IOException
writeBoolean
in interface SerializeWrite
IOException
public void writeByte(byte v) throws IOException
writeByte
in interface SerializeWrite
IOException
public void writeShort(short v) throws IOException
writeShort
in interface SerializeWrite
IOException
public void writeInt(int v) throws IOException
writeInt
in interface SerializeWrite
IOException
public void writeLong(long v) throws IOException
writeLong
in interface SerializeWrite
IOException
public void writeFloat(float vf) throws IOException
writeFloat
in interface SerializeWrite
IOException
public void writeDouble(double vd) throws IOException
writeDouble
in interface SerializeWrite
IOException
public void writeString(byte[] v) throws IOException
writeString
in interface SerializeWrite
IOException
public void writeString(byte[] v, int start, int length) throws IOException
writeString
in interface SerializeWrite
IOException
public void writeHiveChar(HiveChar hiveChar) throws IOException
writeHiveChar
in interface SerializeWrite
IOException
public void writeHiveVarchar(HiveVarchar hiveVarchar) throws IOException
writeHiveVarchar
in interface SerializeWrite
IOException
public void writeBinary(byte[] v) throws IOException
writeBinary
in interface SerializeWrite
IOException
public void writeBinary(byte[] v, int start, int length)
writeBinary
in interface SerializeWrite
public void writeDate(Date date) throws IOException
writeDate
in interface SerializeWrite
IOException
public void writeDate(int dateAsDays) throws IOException
writeDate
in interface SerializeWrite
IOException
public void writeTimestamp(Timestamp vt) throws IOException
writeTimestamp
in interface SerializeWrite
IOException
public void writeHiveIntervalYearMonth(HiveIntervalYearMonth viyt) throws IOException
writeHiveIntervalYearMonth
in interface SerializeWrite
IOException
public void writeHiveIntervalYearMonth(int totalMonths) throws IOException
writeHiveIntervalYearMonth
in interface SerializeWrite
IOException
public void writeHiveIntervalDayTime(org.apache.hadoop.hive.common.type.HiveIntervalDayTime vidt) throws IOException
writeHiveIntervalDayTime
in interface SerializeWrite
IOException
public void writeDecimal64(long decimal64Long, int scale) throws IOException
writeDecimal64
in interface SerializeWrite
IOException
public void writeHiveDecimal(org.apache.hadoop.hive.common.type.HiveDecimal dec, int scale) throws IOException
writeHiveDecimal
in interface SerializeWrite
IOException
public void writeHiveDecimal(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable decWritable, int scale) throws IOException
writeHiveDecimal
in interface SerializeWrite
IOException
public void beginList(List list)
beginList
in interface SerializeWrite
public void separateList()
separateList
in interface SerializeWrite
public void finishList()
finishList
in interface SerializeWrite
public void beginMap(Map<?,?> map)
beginMap
in interface SerializeWrite
public void separateKey()
separateKey
in interface SerializeWrite
public void separateKeyValuePair()
separateKeyValuePair
in interface SerializeWrite
public void finishMap()
finishMap
in interface SerializeWrite
public void beginStruct(List fieldValues)
beginStruct
in interface SerializeWrite
public void separateStruct()
separateStruct
in interface SerializeWrite
public void finishStruct()
finishStruct
in interface SerializeWrite
public void beginUnion(int tag) throws IOException
beginUnion
in interface SerializeWrite
IOException
public void finishUnion()
finishUnion
in interface SerializeWrite
Copyright © 2022 The Apache Software Foundation. All rights reserved.