Package com.linkedin.davinci.client
Class DaVinciRecordTransformerResult<O>
- java.lang.Object
-
- com.linkedin.davinci.client.DaVinciRecordTransformerResult<O>
-
- Type Parameters:
O
- the type of the output value
public class DaVinciRecordTransformerResult<O> extends java.lang.Object
This class encapsulates the result ofDaVinciRecordTransformer.transform(com.linkedin.venice.utils.lazy.Lazy<K>, com.linkedin.venice.utils.lazy.Lazy<V>)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DaVinciRecordTransformerResult.Result
-
Constructor Summary
Constructors Constructor Description DaVinciRecordTransformerResult(DaVinciRecordTransformerResult.Result result)
Use this constructor if result isDaVinciRecordTransformerResult.Result.SKIP
orDaVinciRecordTransformerResult.Result.UNCHANGED
DaVinciRecordTransformerResult(DaVinciRecordTransformerResult.Result result, O value)
Use this constructor if result isDaVinciRecordTransformerResult.Result.TRANSFORMED
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DaVinciRecordTransformerResult.Result
getResult()
O
getValue()
-
-
-
Constructor Detail
-
DaVinciRecordTransformerResult
public DaVinciRecordTransformerResult(DaVinciRecordTransformerResult.Result result)
Use this constructor if result isDaVinciRecordTransformerResult.Result.SKIP
orDaVinciRecordTransformerResult.Result.UNCHANGED
-
DaVinciRecordTransformerResult
public DaVinciRecordTransformerResult(DaVinciRecordTransformerResult.Result result, O value)
Use this constructor if result isDaVinciRecordTransformerResult.Result.TRANSFORMED
-
-
Method Detail
-
getResult
public DaVinciRecordTransformerResult.Result getResult()
-
getValue
public O getValue()
- Returns:
- the transformed record
-
-