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:
Note that this shouldn't be used for sorting.
Note: GeoTools DataUtilities has a similar method that does not work correctly
schema A
schema B
comparison
Create a single attribute descriptor
Create a single attribute descriptor
attribute spec, e.g. 'foo:String'
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
name
specification
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
type name - may include namespace
specification
Creates a type that can be renamed
Creates a type that can be renamed
spec
Parse a SimpleFeatureType spec from a typesafe Config
Parse a SimpleFeatureType spec from a typesafe Config
config
optional typename to use for the sft. will be overridden if the config contains a type-name key
optional config path to parse. defaults to 'sft'
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
name
specification
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.
type name - may include namespace
specification
Deserializes a serialized feature type string
Deserializes a serialized feature type string
serialized feature type
Encode a SimpleFeatureType as a comma-separated String
Encode a SimpleFeatureType as a comma-separated String
- SimpleFeatureType to encode
- defaults to false
a string representing a serialization of the sft
Encode a SimpleFeatureType as a comma-separated String
Encode a SimpleFeatureType as a comma-separated String
- SimpleFeatureType to encode
a string representing a serialization of the sft
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
simple feature type
additional user data to add to the simple feature type
immutable copy of the simple feature type
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
simple feature type
Renames a simple feature type.
Renames a simple feature type. Preserves user data
simple feature type
new name
Serializes a feature type to a single string
Serializes a feature type to a single string
feature type