Class InspectedField

java.lang.Object
org.apache.ignite.migrationtools.types.InspectedField

public class InspectedField extends Object
Holds information about how a field should be persisted.
  • Method Details

    • forUnnamed

      public static InspectedField forUnnamed(String typeName, InspectedFieldType fieldType)
      Factory method for primitive and array fields.
      Parameters:
      typeName - Type name.
      fieldType - Field type.
      Returns:
      The new InspectedField instance.
    • forNamed

      public static InspectedField forNamed(String fieldName, String typeName, InspectedFieldType fieldType, boolean nullable, boolean hasAnnotation)
      Factory method for named fields (non-primitive and non-array).
      Parameters:
      fieldName - Name of the field. May be null for Primitive and Array fields.
      typeName - Name of the field class, usually from Class.getName()
      fieldType - Field type.
      nullable - Whether the field is nullable or not.
      hasAnnotation - Whether the field was annotated with a 'QuerySqlField'.
      Returns:
      The new InspectedField instance.
    • fieldName

      @Nullable public @Nullable String fieldName()
    • typeName

      public String typeName()
    • fieldType

      public InspectedFieldType fieldType()
    • nullable

      public boolean nullable()
    • hasAnnotation

      public boolean hasAnnotation()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object