Class ValueVectorElementFormatter

java.lang.Object
org.apache.drill.exec.util.ValueVectorElementFormatter

public class ValueVectorElementFormatter extends Object
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 Details

    • ValueVectorElementFormatter

      public ValueVectorElementFormatter(OptionManager options)
  • Method Details

    • format

      public String format(Object value, TypeProtos.MinorType minorType)
      Formats ValueVector elements in accordance with it's minor type.
      Parameters:
      value - ValueVector element to format
      minorType - the minor type of the element
      Returns:
      the formatted value, null if failed