Object

org.locationtech.geomesa.utils.geotools

SimpleFeatureTypes

Related Doc: package geotools

Permalink

object SimpleFeatureTypes

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SimpleFeatureTypes
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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. object AttributeOptions

    Permalink
  5. object Configs

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compare(a: SimpleFeatureType, b: SimpleFeatureType): Int

    Permalink

    Compare two feature types.

    Compare two feature types. This method compares the the schemas of each feature type, i.e. the names and type bindings of the attributes. The result will be:

    • a positive int if type A is a sub type or reorder of type B
    • zero if type A has the same schema as type B
    • a negative int if none of the above

    Note that this shouldn't be used for sorting.

    Note: GeoTools DataUtilities has a similar method that does not work correctly

    a

    schema A

    b

    schema B

    returns

    comparison

  9. def createDescriptor(spec: String): AttributeDescriptor

    Permalink

    Create a single attribute descriptor

    Create a single attribute descriptor

    spec

    attribute spec, e.g. 'foo:String'

  10. def createImmutableType(namespace: String, name: String, spec: String): SimpleFeatureType

    Permalink

    Create a simple feature type from a specification.

    Create a simple feature type from a specification. Extends DataUtilities.createType with GeoMesa-specific functionality like list/map attributes, indexing options, etc.

    This method can be more efficient that createType, as it will return a cached, immutable instance

    Note that immutable types will never be equals to a mutable type, due to specific class checking in the geotools implementation

    namespace

    namespace

    name

    name

    spec

    specification

  11. def createImmutableType(typeName: String, spec: String): SimpleFeatureType

    Permalink

    Create a simple feature type from a specification.

    Create a simple feature type from a specification. Extends DataUtilities.createType with GeoMesa-specific functionality like list/map attributes, indexing options, etc.

    This method can be more efficient that createType, as it will return a cached, immutable instance

    Note that immutable types will never be equals to a mutable type, due to specific class checking in the geotools implementation

    typeName

    type name - may include namespace

    spec

    specification

  12. def createNameableType(spec: String): NameableSimpleFeatureType

    Permalink

    Creates a type that can be renamed

    Creates a type that can be renamed

    spec

    spec

  13. def createType(conf: Config, typeName: Option[String] = None, path: Option[String] = Some("sft")): SimpleFeatureType

    Permalink

    Parse a SimpleFeatureType spec from a typesafe Config

    Parse a SimpleFeatureType spec from a typesafe Config

    conf

    config

    typeName

    optional typename to use for the sft. will be overridden if the config contains a type-name key

    path

    optional config path to parse. defaults to 'sft'

  14. def createType(namespace: String, name: String, spec: String): SimpleFeatureType

    Permalink

    Create a simple feature type from a specification.

    Create a simple feature type from a specification. Extends DataUtilities.createType with GeoMesa-specific functionality like list/map attributes, indexing options, etc.

    namespace

    namespace

    name

    name

    spec

    specification

  15. def createType(typeName: String, spec: String): SimpleFeatureType

    Permalink

    Create a simple feature type from a specification.

    Create a simple feature type from a specification. Extends DataUtilities.createType with GeoMesa-specific functionality like list/map attributes, indexing options, etc.

    typeName

    type name - may include namespace

    spec

    specification

  16. def deserialize(sft: String): SimpleFeatureType

    Permalink

    Deserializes a serialized feature type string

    Deserializes a serialized feature type string

    sft

    serialized feature type

  17. def encodeDescriptor(sft: SimpleFeatureType, descriptor: AttributeDescriptor): String

    Permalink
  18. def encodeType(sft: SimpleFeatureType, includeUserData: Boolean): String

    Permalink

    Encode a SimpleFeatureType as a comma-separated String

    Encode a SimpleFeatureType as a comma-separated String

    sft

    - SimpleFeatureType to encode

    includeUserData

    - defaults to false

    returns

    a string representing a serialization of the sft

  19. def encodeType(sft: SimpleFeatureType): String

    Permalink

    Encode a SimpleFeatureType as a comma-separated String

    Encode a SimpleFeatureType as a comma-separated String

    sft

    - SimpleFeatureType to encode

    returns

    a string representing a serialization of the sft

  20. def encodeUserData(key: AnyRef, value: AnyRef): String

    Permalink
  21. def encodeUserData(data: Map[_ <: AnyRef, _ <: AnyRef]): String

    Permalink
  22. def encodeUserData(sft: SimpleFeatureType): String

    Permalink
  23. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def immutable(sft: SimpleFeatureType, extraData: Map[_ <: AnyRef, _ <: AnyRef] = null): SimpleFeatureType

    Permalink

    Creates an immutable copy of the simple feature type

    Creates an immutable copy of the simple feature type

    Note that immutable types will never be equals to a mutable type, due to specific class checking in the geotools implementation

    Note that some parts of the feature type may still be mutable - in particular AttributeType, GeometryType and SuperType are not used by geomesa so we don't bother with them. In addition, user data keys and values may be mutable objects, so while the user data map will not change, the values inside may

    sft

    simple feature type

    extraData

    additional user data to add to the simple feature type

    returns

    immutable copy of the simple feature type

  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def mutable(sft: SimpleFeatureType): SimpleFeatureType

    Permalink

    Creates a mutable copy of a simple feature type.

    Creates a mutable copy of a simple feature type. If the feature type is already mutable, it is returned as is

    sft

    simple feature type

  31. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def renameSft(sft: SimpleFeatureType, newName: String): SimpleFeatureType

    Permalink

    Renames a simple feature type.

    Renames a simple feature type. Preserves user data

    sft

    simple feature type

    newName

    new name

  35. def serialize(sft: SimpleFeatureType): String

    Permalink

    Serializes a feature type to a single string

    Serializes a feature type to a single string

    sft

    feature type

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toConfig(sft: SimpleFeatureType, includeUserData: Boolean = true, includePrefix: Boolean = true): Config

    Permalink
  38. def toConfigString(sft: SimpleFeatureType, includeUserData: Boolean = true, concise: Boolean = false, includePrefix: Boolean = true, json: Boolean = false): String

    Permalink
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def getSecondaryIndexedAttributes(sft: SimpleFeatureType): Seq[AttributeDescriptor]

    Permalink
    Annotations
    @deprecated
    Deprecated

    Use AttributeIndex.indexed()

Inherited from AnyRef

Inherited from Any

Ungrouped