public final class ReflectionDatumReaderFactory extends Object implements DatumReaderFactory
DatumReaderFactory that creates ReflectionDatumReader.| Constructor and Description |
|---|
ReflectionDatumReaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> DatumReader<T> |
create(com.google.common.reflect.TypeToken<T> type,
Schema schema)
Creates a
DatumReader that can decode object of type T. |
public <T> DatumReader<T> create(com.google.common.reflect.TypeToken<T> type, Schema schema)
DatumReaderFactoryDatumReader that can decode object of type T.create in interface DatumReaderFactoryT - Type of the object.type - The object type to decode.schema - Schema of the object to decode to.DatumReader.Copyright © 2019 CDAP Licensed under the Apache License, Version 2.0.