Class FeatureCatalogBuilder

java.lang.Object
org.apache.sis.internal.storage.MetadataBuilder
org.apache.sis.internal.storage.FeatureCatalogBuilder

public final class FeatureCatalogBuilder extends MetadataBuilder
Helper methods for the feature metadata created by DataStore implementations. This is a convenience class for chaining addFeatureType(FeatureType, long) method calls with FeatureNaming.add(DataStore, GenericName, Object).
Since:
0.8
Version:
0.8
See Also:
  • Field Details

    • store

      private final DataStore store
      The data store for which the metadata will be created, or null if unknown. This is used for producing error message if an exception is thrown.
    • features

      public final FeatureNaming<DefaultFeatureType> features
      The feature types created by the FeatureCatalogBuilder. DataStore implementations can keep the reference to this FeatureNaming after the
      invalid reference
      #build(boolean)
      method has been invoked.
  • Constructor Details

    • FeatureCatalogBuilder

      public FeatureCatalogBuilder(DataStore store)
      Creates a new builder for the given data store.
      Parameters:
      store - the data store for which the metadata will be created, or null if unknown.
  • Method Details