Class FieldType<T>

java.lang.Object
io.activej.aggregation.fieldtype.FieldType<T>

public class FieldType<T> extends Object
Represents a type of aggregation field.
  • Constructor Details

    • FieldType

      protected FieldType(Class<T> dataType, io.activej.serializer.SerializerDef serializer, JsonCodec<T> codec)
    • FieldType

      protected FieldType(Class<?> internalDataType, Type dataType, io.activej.serializer.SerializerDef serializer, JsonCodec<T> codec, @Nullable @Nullable JsonCodec<?> internalCodec)
  • Method Details

    • getInternalDataType

      public final Class<?> getInternalDataType()
    • getDataType

      public final Type getDataType()
    • getSerializer

      public io.activej.serializer.SerializerDef getSerializer()
    • toValue

      public Expression toValue(Expression internalValue)
    • getInternalCodec

      @Nullable public @Nullable JsonCodec<?> getInternalCodec()
    • getCodec

      public JsonCodec<T> getCodec()
    • toInitialValue

      public T toInitialValue(Object internalValue)
    • toInternalValue

      public Object toInternalValue(T value)
    • toStringValue

      public Expression toStringValue(Expression value)
    • toString

      public String toString()
      Overrides:
      toString in class Object