PointDataSourceBuilder (API Reference)
Class PointDataSourceBuilder
Builder of points data source.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
-
Constructor Summary
ConstructorsConstructorDescriptionPointDataSourceBuilder(MapContext context) Creates a data source builder instance in the given context. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a PointDataSource instance and resets the builder instance.Configures the builder to use the given name for data source.Configures the builder to insert the given point in the data source.withPoints(List<PointData> points) Configures the builder to insert the given points in the data source.
-
Constructor Details
-
PointDataSourceBuilder
Creates a data source builder instance in the given context.
- Parameters:
context-Map context to associate the data source with.
-
-
Method Details
-
withName
Configures the builder to use the given name for data source.
- Parameters:
dataSourceName-Name of the created data source. Must be unique.
- Returns:
This data source builder instance.
-
withPoint
Configures the builder to insert the given point in the data source.
- Parameters:
point-Point to be added.
- Returns:
This data source builder instance.
-
withPoints
Configures the builder to insert the given points in the data source.
- Parameters:
points-Points to be added.
- Returns:
This data source builder instance.
-
build
Builds a PointDataSource instance and resets the builder instance.
- Returns:
Instance of the data source created with given points and attributes.
-