Interface Column.Type

Enclosing interface:
Column

public static interface Column.Type
Describes the runtime value type stored by a column.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the parser associated with this logical type.
    Returns the Java class represented by this column type.
    Returns the optional writer associated with this logical type.
    default boolean
    Indicates whether the represented value class is a primitive Java type.
    of(Class<?> valueClass, TypeParser<?> parser)
    Creates a column type descriptor from its runtime value class and parser.
    of(Class<?> valueClass, TypeParser<?> parser, TypeWriter<?> writer)
    Creates a column type descriptor from its runtime value class, parser, and optional default writer.
  • Method Details

    • of

      static Column.Type of(Class<?> valueClass, TypeParser<?> parser)
      Creates a column type descriptor from its runtime value class and parser.
      Parameters:
      valueClass - the Java class represented by the column type
      parser - the parser associated with this type
      Returns:
      the created column type descriptor
    • of

      static Column.Type of(Class<?> valueClass, TypeParser<?> parser, TypeWriter<?> writer)
      Creates a column type descriptor from its runtime value class, parser, and optional default writer.
      Parameters:
      valueClass - the Java class represented by the column type
      parser - the parser associated with this type
      writer - the optional writer associated with this type
      Returns:
      the created column type descriptor
    • getValueClass

      Class<?> getValueClass()
      Returns the Java class represented by this column type.
      Returns:
      the runtime value class
    • getParser

      TypeParser<?> getParser()
      Returns the parser associated with this logical type.
      Returns:
      the type parser
    • getWriter

      Optional<TypeWriter<?>> getWriter()
      Returns the optional writer associated with this logical type.
      Returns:
      the optional type writer
    • isPrimitive

      default boolean isPrimitive()
      Indicates whether the represented value class is a primitive Java type.
      Returns:
      true when the underlying value class is primitive