Class/Object

org.locationtech.geomesa.utils.geotools

SchemaBuilder

Related Docs: object SchemaBuilder | package geotools

Permalink

class SchemaBuilder extends AbstractSchemaBuilder[AttributeBuilder, UserDataBuilder]

Builder class for creating simple feature types

Adding an attribute returns an AttributeBuilder class with additional options for that attribute. There is an implicit conversion back to SchemaBuilder to allow for operation chaining.

Example usage:

SchemaBuilder.builder().addString("foo").withIndex().addInt("bar").build("baz")

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SchemaBuilder
  2. AbstractSchemaBuilder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SchemaBuilder()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(spec: String): AttributeBuilder

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractSchemaBuilder
  5. def addAttribute(ad: AttributeDescriptor): AttributeBuilder

    Permalink

    Add an attribute based on an attribute descriptor

    Add an attribute based on an attribute descriptor

    ad

    attribute descriptor

    returns

    schema builder for chaining additional calls

    Definition Classes
    AbstractSchemaBuilder
  6. def addBoolean(name: String): AttributeBuilder

    Permalink

    Add a boolean-type attribute

    Add a boolean-type attribute

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  7. def addBytes(name: String): AttributeBuilder

    Permalink

    Add a binary-type (byte array) attribute

    Add a binary-type (byte array) attribute

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  8. def addDate(name: String, default: Boolean = false): AttributeBuilder

    Permalink

    Add a date-type attribute

    Add a date-type attribute

    name

    name of the attribute to add

    default

    if this is the default (primary) date field, which will be automatically indexed

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  9. def addDouble(name: String): AttributeBuilder

    Permalink

    Add a double-type attribute

    Add a double-type attribute

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  10. def addFloat(name: String): AttributeBuilder

    Permalink

    Add a float-type attribute

    Add a float-type attribute

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  11. def addGeometryCollection(name: String, default: Boolean = false): AttributeBuilder

    Permalink

    Add a geometry-collection-type geometry attribute

    Add a geometry-collection-type geometry attribute

    name

    name of the attribute to add

    default

    if this is the default geometry, which will automatically be indexed

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  12. def addInt(name: String): AttributeBuilder

    Permalink

    Add an integer-type attribute

    Add an integer-type attribute

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  13. def addJson(name: String): AttributeBuilder

    Permalink

    Add a json-formatted string-type attribute

    Add a json-formatted string-type attribute

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  14. def addLineString(name: String, default: Boolean = false): AttributeBuilder

    Permalink

    Add a linestring-type geometry attribute

    Add a linestring-type geometry attribute

    name

    name of the attribute to add

    default

    if this is the default geometry, which will automatically be indexed

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  15. def addList[V](name: String)(implicit arg0: ClassTag[V]): AttributeBuilder

    Permalink

    Add a list-type attribute

    Add a list-type attribute

    V

    value type for the list - this must be one of the normal supported types (string, int, etc)

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  16. def addLong(name: String): AttributeBuilder

    Permalink

    Add a long-type attribute

    Add a long-type attribute

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  17. def addMap[K, V](name: String)(implicit arg0: ClassTag[K], arg1: ClassTag[V]): AttributeBuilder

    Permalink

    Add a map-type attribute

    Add a map-type attribute

    K

    key type of the map - this must be one of the normal supported types (string, int, etc)

    V

    value type of the map - this must be one of the normal supported types (string, int, etc)

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  18. def addMixedGeometry(name: String, default: Boolean = false): AttributeBuilder

    Permalink

    Add a mixed-geometry-type geometry attribute.

    Add a mixed-geometry-type geometry attribute. This should be used if you want multiple types of geometries in the same attribute - otherwise prefer one of the explicit geometry types

    name

    name of the attribute to add

    default

    if this is the default geometry, which will automatically be indexed

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  19. def addMultiLineString(name: String, default: Boolean = false): AttributeBuilder

    Permalink

    Add a multi-linestring-type geometry attribute

    Add a multi-linestring-type geometry attribute

    name

    name of the attribute to add

    default

    if this is the default geometry, which will automatically be indexed

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  20. def addMultiPoint(name: String, default: Boolean = false): AttributeBuilder

    Permalink

    Add a multi-point-type geometry attribute

    Add a multi-point-type geometry attribute

    name

    name of the attribute to add

    default

    if this is the default geometry, which will automatically be indexed

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  21. def addMultiPolygon(name: String, default: Boolean = false): AttributeBuilder

    Permalink

    Add a multi-polygon-type geometry attribute

    Add a multi-polygon-type geometry attribute

    name

    name of the attribute to add

    default

    if this is the default geometry, which will automatically be indexed

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  22. def addPoint(name: String, default: Boolean = false): AttributeBuilder

    Permalink

    Add a point-type geometry attribute

    Add a point-type geometry attribute

    name

    name of the attribute to add

    default

    if this is the default geometry, which will automatically be indexed

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  23. def addPolygon(name: String, default: Boolean = false): AttributeBuilder

    Permalink

    Add a polygon-type geometry attribute

    Add a polygon-type geometry attribute

    name

    name of the attribute to add

    default

    if this is the default geometry, which will automatically be indexed

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  24. def addString(name: String): AttributeBuilder

    Permalink

    Add a string-type attribute

    Add a string-type attribute

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  25. def addUuid(name: String): AttributeBuilder

    Permalink

    Add a UUID-type attribute

    Add a UUID-type attribute

    name

    name of the attribute to add

    returns

    attribute builder forchaining additional options

    Definition Classes
    AbstractSchemaBuilder
  26. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  27. def build(namespace: String, name: String): SimpleFeatureType

    Permalink

    Create a new simple feature type using the current attributes

    Create a new simple feature type using the current attributes

    namespace

    simple feature type namespace

    name

    simple feature type name

    returns

    simple feature type

    Definition Classes
    AbstractSchemaBuilder
  28. def build(name: String): SimpleFeatureType

    Permalink

    Create a new simple feature type using the current attributes

    Create a new simple feature type using the current attributes

    name

    simple feature type name

    returns

    simple feature type

    Definition Classes
    AbstractSchemaBuilder
  29. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def createAttributeBuilder(spec: StringBuilder): AttributeBuilder

    Permalink
    Attributes
    protected
    Definition Classes
    SchemaBuilderAbstractSchemaBuilder
  31. def createUserDataBuilder(userData: StringBuilder): UserDataBuilder

    Permalink
    Attributes
    protected
    Definition Classes
    SchemaBuilderAbstractSchemaBuilder
  32. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  34. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  38. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. def spec: String

    Permalink

    Get the current simple feature type specification string

    Get the current simple feature type specification string

    returns

    spec

    Definition Classes
    AbstractSchemaBuilder
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. def userData: UserDataBuilder

    Permalink

    Get a user data builder for additional user data operations

    Get a user data builder for additional user data operations

    returns

    user data builder for chaining additional calls

    Definition Classes
    AbstractSchemaBuilder
  45. def userData(key: String, value: String): UserDataBuilder

    Permalink

    Add feature-level user data

    Add feature-level user data

    key

    user data key

    value

    user data value

    returns

    schema builder for chaining additional calls

    Definition Classes
    AbstractSchemaBuilder
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped