public abstract class DeserializeRead extends Object
Modifier and Type | Field and Description |
---|---|
protected ObjectInspector.Category[] |
categories |
boolean |
currentBoolean |
byte |
currentByte |
byte[] |
currentBytes |
int |
currentBytesLength |
int |
currentBytesStart |
org.apache.hadoop.hive.serde2.io.DateWritable |
currentDateWritable |
double |
currentDouble |
boolean |
currentExternalBufferNeeded |
int |
currentExternalBufferNeededLen |
float |
currentFloat |
org.apache.hadoop.hive.serde2.io.HiveDecimalWritable |
currentHiveDecimalWritable |
HiveIntervalDayTimeWritable |
currentHiveIntervalDayTimeWritable |
HiveIntervalYearMonthWritable |
currentHiveIntervalYearMonthWritable |
int |
currentInt |
long |
currentLong |
short |
currentShort |
TimestampWritable |
currentTimestampWritable |
protected PrimitiveObjectInspector.PrimitiveCategory[] |
primitiveCategories |
protected TypeInfo[] |
typeInfos |
protected boolean |
useExternalBuffer |
Modifier | Constructor and Description |
---|---|
protected |
DeserializeRead() |
|
DeserializeRead(TypeInfo[] typeInfos,
boolean useExternalBuffer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
copyToExternalBuffer(byte[] externalBuffer,
int externalBufferStart) |
abstract String |
getDetailedReadPositionString() |
abstract boolean |
isEndOfInputReached() |
boolean |
isReadFieldSupported() |
boolean |
readField(int fieldIndex) |
abstract boolean |
readNextField() |
abstract void |
set(byte[] bytes,
int offset,
int length) |
abstract void |
skipNextField() |
TypeInfo[] |
typeInfos() |
protected TypeInfo[] typeInfos
protected boolean useExternalBuffer
protected ObjectInspector.Category[] categories
protected PrimitiveObjectInspector.PrimitiveCategory[] primitiveCategories
public boolean currentBoolean
public byte currentByte
public short currentShort
public int currentInt
public long currentLong
public float currentFloat
public double currentDouble
public boolean currentExternalBufferNeeded
public int currentExternalBufferNeededLen
public byte[] currentBytes
public int currentBytesStart
public int currentBytesLength
public org.apache.hadoop.hive.serde2.io.DateWritable currentDateWritable
public TimestampWritable currentTimestampWritable
public HiveIntervalYearMonthWritable currentHiveIntervalYearMonthWritable
public HiveIntervalDayTimeWritable currentHiveIntervalDayTimeWritable
public org.apache.hadoop.hive.serde2.io.HiveDecimalWritable currentHiveDecimalWritable
public DeserializeRead(TypeInfo[] typeInfos, boolean useExternalBuffer)
typeInfos
- useExternalBuffer
- Specify true when the caller is prepared to provide a bytes buffer
to receive a string/char/varchar/binary field that needs format
conversion.protected DeserializeRead()
public TypeInfo[] typeInfos()
public abstract void set(byte[] bytes, int offset, int length)
public abstract boolean readNextField() throws IOException
IOException
public abstract void skipNextField() throws IOException
IOException
public boolean isReadFieldSupported()
public boolean readField(int fieldIndex) throws IOException
IOException
public abstract boolean isEndOfInputReached()
public abstract String getDetailedReadPositionString()
public void copyToExternalBuffer(byte[] externalBuffer, int externalBufferStart) throws IOException
IOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.