Class TypeCreator

java.lang.Object
io.substrait.type.TypeCreator
Direct Known Subclasses:
ParameterizedTypeCreator, TypeExpressionCreator

public class TypeCreator extends Object
  • Field Details

    • REQUIRED

      public static final TypeCreator REQUIRED
    • NULLABLE

      public static final TypeCreator NULLABLE
    • nullable

      protected final boolean nullable
    • BOOLEAN

      public final Type BOOLEAN
    • I8

      public final Type I8
    • I16

      public final Type I16
    • I32

      public final Type I32
    • I64

      public final Type I64
    • FP32

      public final Type FP32
    • FP64

      public final Type FP64
    • STRING

      public final Type STRING
    • BINARY

      public final Type BINARY
    • TIMESTAMP

      public final Type TIMESTAMP
    • TIMESTAMP_TZ

      public final Type TIMESTAMP_TZ
    • DATE

      public final Type DATE
    • TIME

      public final Type TIME
    • INTERVAL_YEAR

      public final Type INTERVAL_YEAR
    • UUID

      public final Type UUID
  • Constructor Details

    • TypeCreator

      protected TypeCreator(boolean nullable)
  • Method Details

    • fixedChar

      public Type fixedChar(int len)
    • varChar

      public final Type varChar(int len)
    • fixedBinary

      public final Type fixedBinary(int len)
    • decimal

      public final Type decimal(int precision, int scale)
    • struct

      public final Type.Struct struct(Type... types)
    • precisionTime

      public final Type precisionTime(int precision)
    • precisionTimestamp

      public final Type precisionTimestamp(int precision)
    • precisionTimestampTZ

      public final Type precisionTimestampTZ(int precision)
    • intervalDay

      public final Type intervalDay(int precision)
    • intervalCompound

      public final Type intervalCompound(int precision)
    • struct

      public Type.Struct struct(Iterable<? extends Type> types)
    • struct

      public Type.Struct struct(Stream<? extends Type> types)
    • list

      public Type.ListType list(Type type)
    • map

      public Type.Map map(Type key, Type value)
    • userDefined

      public Type userDefined(String uri, String name)
    • of

      public static TypeCreator of(boolean nullability)
    • asNullable

      public static Type asNullable(Type type)
    • asNotNullable

      public static Type asNotNullable(Type type)