Class GeometryFields


  • public class GeometryFields
    extends Object
    Defines the fields (schema) used by geometry vectors
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.arrow.vector.types.pojo.ArrowType DOUBLE_TYPE  
      static org.apache.arrow.vector.types.pojo.ArrowType FLOAT_TYPE  
      static List<org.apache.arrow.vector.types.pojo.Field> XY_DOUBLE
      Single double vector, appropriate for storing Points
      static List<org.apache.arrow.vector.types.pojo.Field> XY_DOUBLE_LIST
      Nested list of doubles, appropriate for storing MultiPoints or LineStrings
      static List<org.apache.arrow.vector.types.pojo.Field> XY_DOUBLE_LIST_2
      Doubly-nested list of doubles, appropriate for storing MultiLineStrings or Polygons
      static List<org.apache.arrow.vector.types.pojo.Field> XY_DOUBLE_LIST_3
      Triply-nested list of doubles, appropriate for storing MultiPolygons
      static List<org.apache.arrow.vector.types.pojo.Field> XY_FLOAT
      Single float vector, appropriate for storing Points
      static List<org.apache.arrow.vector.types.pojo.Field> XY_FLOAT_LIST
      Nested list of floats, appropriate for storing MultiPoints or LineStrings
      static List<org.apache.arrow.vector.types.pojo.Field> XY_FLOAT_LIST_2
      Doubly-nested list of floats, appropriate for storing MultiLineStrings or Polygons
      static List<org.apache.arrow.vector.types.pojo.Field> XY_FLOAT_LIST_3
      Triply-nested list of floats, appropriate for storing MultiPolygons
    • Field Detail

      • FLOAT_TYPE

        public static org.apache.arrow.vector.types.pojo.ArrowType FLOAT_TYPE
      • DOUBLE_TYPE

        public static org.apache.arrow.vector.types.pojo.ArrowType DOUBLE_TYPE
      • XY_FLOAT

        public static List<org.apache.arrow.vector.types.pojo.Field> XY_FLOAT
        Single float vector, appropriate for storing Points
      • XY_DOUBLE

        public static List<org.apache.arrow.vector.types.pojo.Field> XY_DOUBLE
        Single double vector, appropriate for storing Points
      • XY_FLOAT_LIST

        public static List<org.apache.arrow.vector.types.pojo.Field> XY_FLOAT_LIST
        Nested list of floats, appropriate for storing MultiPoints or LineStrings
      • XY_DOUBLE_LIST

        public static List<org.apache.arrow.vector.types.pojo.Field> XY_DOUBLE_LIST
        Nested list of doubles, appropriate for storing MultiPoints or LineStrings
      • XY_FLOAT_LIST_2

        public static List<org.apache.arrow.vector.types.pojo.Field> XY_FLOAT_LIST_2
        Doubly-nested list of floats, appropriate for storing MultiLineStrings or Polygons
      • XY_DOUBLE_LIST_2

        public static List<org.apache.arrow.vector.types.pojo.Field> XY_DOUBLE_LIST_2
        Doubly-nested list of doubles, appropriate for storing MultiLineStrings or Polygons
      • XY_FLOAT_LIST_3

        public static List<org.apache.arrow.vector.types.pojo.Field> XY_FLOAT_LIST_3
        Triply-nested list of floats, appropriate for storing MultiPolygons
      • XY_DOUBLE_LIST_3

        public static List<org.apache.arrow.vector.types.pojo.Field> XY_DOUBLE_LIST_3
        Triply-nested list of doubles, appropriate for storing MultiPolygons
    • Method Detail

      • wrap

        public static GeometryVector<?,​?> wrap​(org.apache.arrow.vector.FieldVector vector,
                                                     Class<?> binding)
      • precisionFromField

        public static org.apache.arrow.vector.types.FloatingPointPrecision precisionFromField​(org.apache.arrow.vector.types.pojo.Field field)
        Determines the geometry precision of a vector based on its field
        Parameters:
        field - field
        Returns:
        precision, or null if not an expected geometry field