public class DefaultHCatRecord extends HCatRecord
Constructor and Description |
---|
DefaultHCatRecord() |
DefaultHCatRecord(int size) |
DefaultHCatRecord(java.util.List<java.lang.Object> list) |
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.
|
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
void |
remove(int idx) |
void |
set(int fieldNum,
java.lang.Object val)
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 DefaultHCatRecord()
public DefaultHCatRecord(int size)
public DefaultHCatRecord(java.util.List<java.lang.Object> list)
public void remove(int idx) throws HCatException
remove
in class HCatRecord
HCatException
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 val)
HCatRecordable
fieldNum
- the field numberval
- 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 int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
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 copy(HCatRecord r) throws HCatException
copy
in class HCatRecord
HCatException
Copyright © 2012 The Apache Software Foundation