- Type Parameters:
T- The type managed by theRecord.
- All Known Implementing Classes:
RecordImpl
A
Record is a Map containing Field data
structures with support for Column definitions. The Field
instances can be managed with the functionality provided by a Column.
A value can be retrieved from a Record by providing an according
Column definition, which verifies the value type. Also values can be
converted to and from the appropriate interchange and string formats by the
according Column instances.
In contrast to a Row, a Record relates the key (name) to its
values. Similar to a Row, a Record makes use of
Column instances (for example as provided by a Header or a
Header instance) to give the fields additional semantics.
-
Nested Class Summary
-
Method Summary
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
toFieldSet
-
toPurged
ThisRecordis taken and only all non null values are taken for the returnedRecord. In case of string objects, onlyStringinstances with a length greater than zero are taken into account for the returnedRecord.- Returns:
- The output
Recordwithout any keys which's values were null or in case of strings which's length was zero.
-
toType
Converts the content of theRecordto the according type. TheHeaderkeys must match the type's properties.- Type Parameters:
TYPE- The type of the element to which the line to be read is to be converted to.- Parameters:
aClass- the type of the instance to be created.- Returns:
- The instance of the type to which the
Recordis being converted to.
-