@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class HCatRecord extends Object implements HCatRecordable
Constructor and Description |
---|
HCatRecord() |
Modifier and Type | Method and Description |
---|---|
abstract void |
copy(HCatRecord r) |
abstract Object |
get(String fieldName,
HCatSchema recordSchema) |
protected Object |
get(String fieldName,
HCatSchema recordSchema,
Class clazz) |
Boolean |
getBoolean(String fieldName,
HCatSchema recordSchema) |
Byte |
getByte(String fieldName,
HCatSchema recordSchema) |
byte[] |
getByteArray(String fieldName,
HCatSchema recordSchema) |
HiveChar |
getChar(String fieldName,
HCatSchema recordSchema) |
Date |
getDate(String fieldName,
HCatSchema recordSchema) |
HiveDecimal |
getDecimal(String fieldName,
HCatSchema recordSchema) |
Double |
getDouble(String fieldName,
HCatSchema recordSchema) |
Float |
getFloat(String fieldName,
HCatSchema recordSchema) |
Integer |
getInteger(String fieldName,
HCatSchema recordSchema) |
List<?> |
getList(String fieldName,
HCatSchema recordSchema) |
Long |
getLong(String fieldName,
HCatSchema recordSchema) |
Map<?,?> |
getMap(String fieldName,
HCatSchema recordSchema) |
Short |
getShort(String fieldName,
HCatSchema recordSchema) |
String |
getString(String fieldName,
HCatSchema recordSchema) |
List<? extends Object> |
getStruct(String fieldName,
HCatSchema recordSchema) |
Timestamp |
getTimestamp(String fieldName,
HCatSchema recordSchema) |
HiveVarchar |
getVarchar(String fieldName,
HCatSchema recordSchema) |
abstract void |
remove(int idx) |
abstract void |
set(String fieldName,
HCatSchema recordSchema,
Object value) |
void |
setBoolean(String fieldName,
HCatSchema recordSchema,
Boolean value) |
void |
setByte(String fieldName,
HCatSchema recordSchema,
Byte value) |
void |
setByteArray(String fieldName,
HCatSchema recordSchema,
byte[] value) |
void |
setChar(String fieldName,
HCatSchema recordSchema,
HiveChar value) |
void |
setDate(String fieldName,
HCatSchema recordSchema,
Date value)
Note that the proper way to construct a java.sql.Date for use with this object is
Date.valueOf("1999-12-31").
|
void |
setDecimal(String fieldName,
HCatSchema recordSchema,
HiveDecimal value) |
void |
setDouble(String fieldName,
HCatSchema recordSchema,
Double value) |
void |
setFloat(String fieldName,
HCatSchema recordSchema,
Float value) |
void |
setInteger(String fieldName,
HCatSchema recordSchema,
Integer value) |
void |
setList(String fieldName,
HCatSchema recordSchema,
List<?> value) |
void |
setLong(String fieldName,
HCatSchema recordSchema,
Long value) |
void |
setMap(String fieldName,
HCatSchema recordSchema,
Map<?,?> value) |
void |
setShort(String fieldName,
HCatSchema recordSchema,
Short value) |
void |
setString(String fieldName,
HCatSchema recordSchema,
String value) |
void |
setStruct(String fieldName,
HCatSchema recordSchema,
List<? extends Object> value) |
void |
setTimestamp(String fieldName,
HCatSchema recordSchema,
Timestamp value) |
void |
setVarchar(String fieldName,
HCatSchema recordSchema,
HiveVarchar value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getAll, set, size
public abstract Object get(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public abstract void set(String fieldName, HCatSchema recordSchema, Object value) throws HCatException
HCatException
public abstract void remove(int idx) throws HCatException
HCatException
public abstract void copy(HCatRecord r) throws HCatException
HCatException
protected Object get(String fieldName, HCatSchema recordSchema, Class clazz) throws HCatException
HCatException
public Boolean getBoolean(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setBoolean(String fieldName, HCatSchema recordSchema, Boolean value) throws HCatException
HCatException
public byte[] getByteArray(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setByteArray(String fieldName, HCatSchema recordSchema, byte[] value) throws HCatException
HCatException
public Byte getByte(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setByte(String fieldName, HCatSchema recordSchema, Byte value) throws HCatException
HCatException
public Short getShort(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setShort(String fieldName, HCatSchema recordSchema, Short value) throws HCatException
HCatException
public Integer getInteger(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setInteger(String fieldName, HCatSchema recordSchema, Integer value) throws HCatException
HCatException
public Long getLong(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setLong(String fieldName, HCatSchema recordSchema, Long value) throws HCatException
HCatException
public Float getFloat(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setFloat(String fieldName, HCatSchema recordSchema, Float value) throws HCatException
HCatException
public Double getDouble(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setDouble(String fieldName, HCatSchema recordSchema, Double value) throws HCatException
HCatException
public String getString(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setString(String fieldName, HCatSchema recordSchema, String value) throws HCatException
HCatException
public List<? extends Object> getStruct(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setStruct(String fieldName, HCatSchema recordSchema, List<? extends Object> value) throws HCatException
HCatException
public List<?> getList(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setList(String fieldName, HCatSchema recordSchema, List<?> value) throws HCatException
HCatException
public Map<?,?> getMap(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setMap(String fieldName, HCatSchema recordSchema, Map<?,?> value) throws HCatException
HCatException
public void setChar(String fieldName, HCatSchema recordSchema, HiveChar value) throws HCatException
HCatException
public HiveChar getChar(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setVarchar(String fieldName, HCatSchema recordSchema, HiveVarchar value) throws HCatException
HCatException
public HiveVarchar getVarchar(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setDecimal(String fieldName, HCatSchema recordSchema, HiveDecimal value) throws HCatException
HCatException
public HiveDecimal getDecimal(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setDate(String fieldName, HCatSchema recordSchema, Date value) throws HCatException
HCatException
public Date getDate(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
public void setTimestamp(String fieldName, HCatSchema recordSchema, Timestamp value) throws HCatException
HCatException
public Timestamp getTimestamp(String fieldName, HCatSchema recordSchema) throws HCatException
HCatException
Copyright © 2017 The Apache Software Foundation. All rights reserved.