public class SimpleStateMapper<T> extends Object implements StateMapper<T>
Constructor and Description |
---|
SimpleStateMapper(Fields fields,
StateType stateType) |
Modifier and Type | Method and Description |
---|---|
T |
fromValues(List<Values> valuesSet) |
Fields |
getStateFields() |
static <U> StateMapper<U> |
nontransactional(String field) |
static <U> StateMapper<TransactionalValue<U>> |
opaque(String txIdField,
String field) |
static <U> StateMapper<OpaqueValue<U>> |
opaque(String txIdField,
String previousField,
String field) |
String |
toString() |
Values |
toValues(T value) |
public static <U> StateMapper<OpaqueValue<U>> opaque(String txIdField, String previousField, String field)
public static <U> StateMapper<TransactionalValue<U>> opaque(String txIdField, String field)
public static <U> StateMapper<U> nontransactional(String field)
public Fields getStateFields()
getStateFields
in interface StateMapper<T>
public Values toValues(T value)
toValues
in interface StateMapper<T>
public T fromValues(List<Values> valuesSet)
fromValues
in interface StateMapper<T>
Copyright © 2022 The Apache Software Foundation. All rights reserved.