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, setVarchar
public DefaultHCatRecord()
public DefaultHCatRecord(int size)
public void remove(int idx) throws HCatException
remove
in class HCatRecord
HCatException
public Object get(int fieldNum)
HCatRecordable
fieldNum
- the field numberpublic List<Object> getAll()
HCatRecordable
public void set(int fieldNum, Object val)
HCatRecordable
fieldNum
- the field numberval
- 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 copy(HCatRecord r) throws HCatException
copy
in class HCatRecord
HCatException
Copyright © 2021 The Apache Software Foundation. All rights reserved.