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