Interface LocalTableDataServiceDescriptor.Builder
- Enclosing class:
- LocalTableDataServiceDescriptor
public static interface LocalTableDataServiceDescriptor.Builder
Builder interface for constructing LocalTableDataServiceDescriptor instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns the LocalTableDataServiceDescriptor.locationManager(LocalTablePathManager locationManager) Sets the location manager for the descriptor.Set properties from an already-immutable provider.properties(DataRoutingService.PropertyProvider properties) Set properties from any PropertyProvider, converting to immutable if needed.tableTypes(EnumSet<TableType> tableTypes) Sets the table types that should be supported.useMetadataIndexing(boolean useMetadataIndexing) Sets whether metadata indexing should be used.writable(boolean writable) Sets whether write operations should be allowed.
-
Method Details
-
locationManager
Sets the location manager for the descriptor.- Parameters:
locationManager- the database location manager- Returns:
- this builder
-
tableTypes
Sets the table types that should be supported.- Parameters:
tableTypes- the set of table types- Returns:
- this builder
-
writable
Sets whether write operations should be allowed.- Parameters:
writable- true for writable, false for read-only- Returns:
- this builder
-
useMetadataIndexing
Sets whether metadata indexing should be used.- Parameters:
useMetadataIndexing- true to enable metadata indexing- Returns:
- this builder
-
properties
LocalTableDataServiceDescriptor.Builder properties(DataRoutingService.ImmutablePropertyProvider properties) Set properties from an already-immutable provider.- Parameters:
properties- the immutable property provider- Returns:
- this
-
properties
default LocalTableDataServiceDescriptor.Builder properties(DataRoutingService.PropertyProvider properties) Set properties from any PropertyProvider, converting to immutable if needed.- Parameters:
properties- the properties provider- Returns:
- this
-
build
LocalTableDataServiceDescriptor build()Builds and returns the LocalTableDataServiceDescriptor.- Returns:
- the constructed descriptor
-