org.apache.hadoop.hbase.hbql.impl
Class HRecordImpl
java.lang.Object
org.apache.hadoop.hbase.hbql.impl.HRecordImpl
- All Implemented Interfaces:
- Serializable, HRecord
- Direct Known Subclasses:
- AggregateRecord
public class HRecordImpl
- extends Object
- implements HRecord
- See Also:
- Serialized Form
Method Summary |
void |
addElement(Value value)
|
void |
addNameToPositionList(String name)
|
void |
clearValues()
|
String |
getAttribName(int i)
|
Set<String> |
getColumnNameList()
|
ColumnValue |
getColumnValue(String name,
boolean inMapping)
|
protected ElementMap<ColumnValue> |
getColumnValuesMap()
|
Object |
getCurrentValue(String name)
|
MappingContext |
getMappingContext()
|
ResultAccessor |
getResultAccessor()
|
TableMapping |
getTableMapping()
|
long |
getTimestamp()
|
Map<String,byte[]> |
getUnMappedValueMap(String name)
|
Map<String,NavigableMap<Long,byte[]>> |
getUnMappedVersionMap(String name)
|
Map<Long,Object> |
getVersionMap(String name)
|
boolean |
isColumnDefined(String name)
|
boolean |
isCurrentValueSet(ColumnAttrib attrib)
|
void |
reset()
|
void |
setCurrentValue(String name,
long timestamp,
Object val,
boolean inMapping)
|
void |
setCurrentValue(String name,
Object val)
|
void |
setCurrentValue(String family,
String column,
long timestamp,
Object val)
|
void |
setMappingContext(MappingContext mappingContext)
|
void |
setTimestamp(long timestamp)
|
void |
setUnMappedCurrentValue(String familyName,
String columnName,
long timestamp,
byte[] val)
|
void |
setUnMappedVersionMap(String familyName,
String columnName,
NavigableMap<Long,byte[]> val)
|
void |
setVersionValue(String familyName,
String columnName,
long timestamp,
Object val,
boolean inMapping)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HRecordImpl
public HRecordImpl()
HRecordImpl
public HRecordImpl(MappingContext mappingContext)
getMappingContext
public MappingContext getMappingContext()
setMappingContext
public void setMappingContext(MappingContext mappingContext)
getTimestamp
public long getTimestamp()
getAttribName
public String getAttribName(int i)
throws HBqlException
- Throws:
HBqlException
addNameToPositionList
public void addNameToPositionList(String name)
getTableMapping
public TableMapping getTableMapping()
throws HBqlException
- Throws:
HBqlException
getResultAccessor
public ResultAccessor getResultAccessor()
throws HBqlException
- Throws:
HBqlException
getColumnValuesMap
protected ElementMap<ColumnValue> getColumnValuesMap()
addElement
public void addElement(Value value)
throws HBqlException
- Throws:
HBqlException
clearValues
public void clearValues()
getColumnValue
public ColumnValue getColumnValue(String name,
boolean inMapping)
throws HBqlException
- Throws:
HBqlException
setCurrentValue
public void setCurrentValue(String family,
String column,
long timestamp,
Object val)
throws HBqlException
- Throws:
HBqlException
isCurrentValueSet
public boolean isCurrentValueSet(ColumnAttrib attrib)
throws HBqlException
- Throws:
HBqlException
setCurrentValue
public void setCurrentValue(String name,
long timestamp,
Object val,
boolean inMapping)
throws HBqlException
- Throws:
HBqlException
setVersionValue
public void setVersionValue(String familyName,
String columnName,
long timestamp,
Object val,
boolean inMapping)
throws HBqlException
- Throws:
HBqlException
setUnMappedCurrentValue
public void setUnMappedCurrentValue(String familyName,
String columnName,
long timestamp,
byte[] val)
throws HBqlException
- Throws:
HBqlException
setUnMappedVersionMap
public void setUnMappedVersionMap(String familyName,
String columnName,
NavigableMap<Long,byte[]> val)
throws HBqlException
- Throws:
HBqlException
reset
public void reset()
- Specified by:
reset
in interface HRecord
setTimestamp
public void setTimestamp(long timestamp)
- Specified by:
setTimestamp
in interface HRecord
setCurrentValue
public void setCurrentValue(String name,
Object val)
throws HBqlException
- Specified by:
setCurrentValue
in interface HRecord
- Throws:
HBqlException
isColumnDefined
public boolean isColumnDefined(String name)
throws HBqlException
- Throws:
HBqlException
getCurrentValue
public Object getCurrentValue(String name)
throws HBqlException
- Specified by:
getCurrentValue
in interface HRecord
- Throws:
HBqlException
getColumnNameList
public Set<String> getColumnNameList()
throws HBqlException
- Specified by:
getColumnNameList
in interface HRecord
- Throws:
HBqlException
getVersionMap
public Map<Long,Object> getVersionMap(String name)
throws HBqlException
- Specified by:
getVersionMap
in interface HRecord
- Throws:
HBqlException
getUnMappedValueMap
public Map<String,byte[]> getUnMappedValueMap(String name)
throws HBqlException
- Specified by:
getUnMappedValueMap
in interface HRecord
- Throws:
HBqlException
getUnMappedVersionMap
public Map<String,NavigableMap<Long,byte[]>> getUnMappedVersionMap(String name)
throws HBqlException
- Specified by:
getUnMappedVersionMap
in interface HRecord
- Throws:
HBqlException
Copyright © 2011. All Rights Reserved.