- Direct Known Subclasses:
public abstract class RowInRecordMapper extends Object implements RowMapper, RecordMapperLike
RowMapperexcept that the enclosing
Recordis also available. This defines a
RecordMapperwhich maps each row accordingly. When used as a
RowMapper, the record argument is set to null. This class is useful when performing a row-wise operation in records mode, as the enclosing record must be available in the expression language.
- See Also:
- Serialized Form
Constructors Constructor Description
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description
call(long rowId, Row row)
call(Record record)Maps a record to a list of rows.
call(Record record, long rowId, Row row)Maps a row, in the context of a record.
preservesRecordStructure()Is this mapper guaranteed to preserve the records structure, both as a record mapper and a row mapper?
preservesRowCount()If every record is mapped to a list with the same number of rows as what the record contains, set this boolean to true.
public static final RowInRecordMapper IDENTITY
callMaps a row, in the context of a record.
record- the record enclosing the row to map
rowId- the global index of the row in the entire grid
row- the row itself
public abstract boolean preservesRecordStructure()Is this mapper guaranteed to preserve the records structure, both as a record mapper and a row mapper?
callDescription copied from interface:
RecordMapperMaps a record to a list of rows. The rows may not form a single record, unless
public boolean preservesRowCount()Description copied from interface:
RecordMapperIf every record is mapped to a list with the same number of rows as what the record contains, set this boolean to true. This helps the underlying implementation avoid recomputing row ids.