public class LazyHCatRecord extends HCatRecord
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
LazyHCatRecord(Object wrappedObject,
ObjectInspector oi) |
Modifier and Type | Method and Description |
---|---|
void |
copy(HCatRecord r) |
Object |
get(int fieldNum)
Gets the field at the specified index.
|
Object |
get(String fieldName,
HCatSchema recordSchema) |
List<Object> |
getAll()
Gets all the fields of the hcat record.
|
HCatRecord |
getWritable()
Convert this LazyHCatRecord to a DefaultHCatRecord.
|
void |
readFields(DataInput in) |
void |
remove(int idx) |
void |
set(int fieldNum,
Object value)
Sets the field at the specified index.
|
void |
set(String fieldName,
HCatSchema recordSchema,
Object value) |
int |
size()
Gets the size of the hcat record.
|
String |
toString() |
void |
write(DataOutput out) |
get, getBoolean, getByte, getByteArray, getChar, getDate, getDecimal, getDouble, getFloat, getInteger, getList, getLong, getMap, getShort, getString, getStruct, getTimestamp, getVarchar, setBoolean, setByte, setByteArray, setChar, setDate, setDecimal, setDouble, setFloat, setInteger, setList, setLong, setMap, setShort, setString, setStruct, setTimestamp, setVarchar
public LazyHCatRecord(Object wrappedObject, ObjectInspector oi) throws Exception
Exception
public Object get(int fieldNum)
HCatRecordable
fieldNum
- the field numberpublic List<Object> getAll()
HCatRecordable
public void set(int fieldNum, Object value)
HCatRecordable
fieldNum
- the field numbervalue
- the value to setpublic int size()
HCatRecordable
public void readFields(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
public Object get(String fieldName, HCatSchema recordSchema) throws HCatException
get
in class HCatRecord
HCatException
public void set(String fieldName, HCatSchema recordSchema, Object value) throws HCatException
set
in class HCatRecord
HCatException
public void remove(int idx) throws HCatException
remove
in class HCatRecord
HCatException
public void copy(HCatRecord r) throws HCatException
copy
in class HCatRecord
HCatException
public HCatRecord getWritable() throws HCatException
HCatException
Copyright © 2017 The Apache Software Foundation. All rights reserved.