Interface Record


@UML(identifier="Record", specification=ISO_19103) public interface Record
A list of logically related fields as (name, value) pairs in a dictionary. A Record is an instance of an RecordType. For example, a Record may be a row in a table described by a RecordType.

Relationship with Java Record class

This interface serves a purpose similar to the Record abstract class provided by the standard Java platform, but is used in a different context. The standard Java Record class provides static records (i.e., with structure defined at compile time), while this GeoAPI Record interfaces provides dynamic records. The former is more convenient, efficient and type-safe, while the latter is the only option when the record structure is not known in advance, for example when it is determined by the content of a data file being read. If interoperability between the two models is desired, a GeoAPI Record implementation could delegate all operations to a wrapped Java Record using RecordComponent.
Since:
2.1
See Also: