Interface RowMapper

    • Field Detail

      • IDENTITY

        static final RowMapper IDENTITY
        A row mapper which returns unchanged rows.
    • Method Detail

      • call

        Row call​(long rowId,
                 Row row)
      • preservesRecordStructure

        default boolean preservesRecordStructure()
        If this mapper is guaranteed to preserve record boundaries (for instance because it does not touch the key column).
      • conditionalMapper

        static RowMapper conditionalMapper​(RowFilter filter,
                                           RowMapper positive,
                                           RowMapper negative)
        Returns a mapper which applies one of the two mappers provided depending on the outcome of the filter. If the filter evaluates to true, the positive mapper is evaluated, otherwise the negative one is used.
        Parameters:
        filter - the filter to use for the disjunction
        positive - what to do if the filter evaluates to true
        negative - what to do otherwise
        Returns:
        the conditional mapper