public class DefaultHCatRecord extends HCatRecord
| Constructor and Description |
|---|
DefaultHCatRecord() |
DefaultHCatRecord(int size) |
DefaultHCatRecord(List<Object> list) |
| 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.
|
int |
hashCode() |
void |
readFields(DataInput in) |
void |
remove(int idx) |
void |
set(int fieldNum,
Object val)
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, setVarcharpublic DefaultHCatRecord()
public DefaultHCatRecord(int size)
public void remove(int idx)
throws HCatException
remove in class HCatRecordHCatExceptionpublic Object get(int fieldNum)
HCatRecordablefieldNum - the field numberpublic List<Object> getAll()
HCatRecordablepublic void set(int fieldNum,
Object val)
HCatRecordablefieldNum - the field numberval - the value to setpublic int size()
HCatRecordablepublic void readFields(DataInput in) throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
IOExceptionpublic Object get(String fieldName, HCatSchema recordSchema) throws HCatException
get in class HCatRecordHCatExceptionpublic void set(String fieldName, HCatSchema recordSchema, Object value) throws HCatException
set in class HCatRecordHCatExceptionpublic void copy(HCatRecord r) throws HCatException
copy in class HCatRecordHCatExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.