Package org.apache.drill.exec.store.pojo
Class PojoWriters
java.lang.Object
org.apache.drill.exec.store.pojo.PojoWriters
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Pojo writer for boolean.static class
Pojo writer for decimal.static class
Pojo writer for double.static class
Pojo writer for Enum.static class
Pojo writer for float.static class
Pojo writer for int.static class
Pojo writer for long.static class
Pojo writer for Long.static class
Pojo writer for Boolean.static class
Pojo writer for Double.static class
Pojo writer for Float.static class
Pojo writer for Integer.static class
Pojo writer for Timestamp.static class
Pojo writer for String. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PojoWriter
Creates 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
-