public class WritableResolver extends Plugin implements ReadResolver, WriteResolver
RecordkeyAdapter.| Constructor and Description |
|---|
WritableResolver(InputData input)
Constructs a WritableResolver.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<OneField> |
getFields(OneRow onerow)
Gets the
OneField list of one row. |
OneRow |
setFields(java.util.List<OneField> record)
Sets customWritable fields and creates a OneRow object.
|
isThreadSafepublic WritableResolver(InputData input) throws java.lang.Exception
input - all input parameters coming from the clientjava.lang.Exception - if schema file is missing, cannot be found in
classpath or fails to instantiatepublic java.util.List<OneField> getFields(OneRow onerow) throws java.lang.Exception
ReadResolverOneField list of one row.getFields in interface ReadResolveronerow - the row to get the fields fromOneField list of one row.java.lang.Exception - if decomposing the row into fields failedpublic OneRow setFields(java.util.List<OneField> record) throws java.lang.Exception
setFields in interface WriteResolverrecord - list of OneFieldOneRowjava.lang.Exception - if constructing a row from the fields failed