Package org.apache.drill.exec.util
Class ValueVectorElementFormatter
java.lang.Object
org.apache.drill.exec.util.ValueVectorElementFormatter
This class is responsible for formatting ValueVector elements.
Specific format templates are taken from the options.
It creates and reuses the concrete formatter instances for performance purposes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformat
(Object value, TypeProtos.MinorType minorType) Formats ValueVector elements in accordance with it's minor type.
-
Constructor Details
-
ValueVectorElementFormatter
-
-
Method Details
-
format
Formats ValueVector elements in accordance with it's minor type.- Parameters:
value
- ValueVector element to formatminorType
- the minor type of the element- Returns:
- the formatted value, null if failed
-