public class HashMapRecord extends HashMap<String,Object> implements Record
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
HashMapRecord()
Create an empty record.
|
HashMapRecord(Map<? extends String,? extends Object> inputValues)
Create a record out of a set of key-value pairs provided as a
Map . |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
asMap()
Convenience method that returns the
Map representation of the record. |
Set<String> |
getFieldNames()
Return the names of the
Field s contained within this Record. |
Object |
getFieldValue(String fieldName)
Get the value of a field.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public final Set<String> getFieldNames()
Record
Field
s contained within this Record.getFieldNames
in interface Record
public final Object getFieldValue(String fieldName)
Record
getFieldValue
in interface Record
fieldName
- the name of the field.Copyright © 2005–2016 Zementis, Inc.. All rights reserved.