java.lang.Object
com.datastax.astra.internal.serdes.tables.RowMapper

public class RowMapper extends Object
Pivot class to interact with Table is a Row. User can wirj POJO that will be converted to Row.
  • Method Details

    • mapAsRow

      public static <T> Row mapAsRow(T input)
      Map any object as a Row
      Type Parameters:
      T - type of the object
      Parameters:
      input - input object
      Returns:
      a row
    • mapFromRow

      public static <T> T mapFromRow(Row row, DataAPISerializer serializer, Class<T> inputRowClass)
      Mapping a row to a bean. If the bean is annotated with @Entity, the column names will be used.
      Type Parameters:
      T - type of the bean
      Parameters:
      row - row to map
      serializer - serializer
      inputRowClass - input class
      Returns:
      the bean