Class RowMapper
java.lang.Object
com.datastax.astra.internal.serdes.tables.RowMapper
Pivot class to interact with Table is a Row. User can wirj POJO that will be converted to Row.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Row
mapAsRow
(T input) Map any object as a Rowstatic <T> T
mapFromRow
(Row row, DataAPISerializer serializer, Class<T> inputRowClass) Mapping a row to a bean.
-
Method Details
-
mapAsRow
Map any object as a Row- Type Parameters:
T
- type of the object- Parameters:
input
- input object- Returns:
- a row
-
mapFromRow
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 mapserializer
- serializerinputRowClass
- input class- Returns:
- the bean
-