Package org.apache.drill.exec.store.pojo
Class PojoWriters
java.lang.Object
org.apache.drill.exec.store.pojo.PojoWriters
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPojo writer for boolean.static classPojo writer for decimal.static classPojo writer for double.static classPojo writer for Enum.static classPojo writer for float.static classPojo writer for int.static classPojo writer for long.static classPojo writer for Long.static classPojo writer for Boolean.static classPojo writer for Double.static classPojo writer for Float.static classPojo writer for Integer.static classPojo writer for Timestamp.static classPojo writer for String. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PojoWriterCreates matching writer to the given field type.
-
Constructor Details
-
PojoWriters
public PojoWriters()
-
-
Method Details
-
getWriter
public static PojoWriter getWriter(Class<?> type, String fieldName, DrillBuf buffer) throws ExecutionSetupException Creates matching writer to the given field type.- Parameters:
type- field typefieldName- field namebuffer- drill buffer- Returns:
- pojo writer
- Throws:
ExecutionSetupException- in case if writer was not found for the given type
-