Class RegionedColumnSourceManager
java.lang.Object
com.illumon.iris.db.v2.sources.regioned.RegionedColumnSourceManager
- All Implemented Interfaces:
ColumnSourceManager
Manage column sources made up of regions in their own index address space.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLocation
(TableLocation tableLocation) Add a table location to the list to be checked in refresh().final Collection<TableLocation>
Get the added locations, first the ones that have been "included" (found to exist with non-zero size) in order of inclusion, then the remainder in order of discovery.final void
Turn off column grouping, and clear the groupings on all GROUPING column sources.final Map<String,
? extends ColumnSource<?>> Get a map of name toColumnSource
for the column sources maintained by this manager.Get theDataIndexProvider
to retrieve Data Indexes for this table.final Collection<TableLocation>
Get the added locations that have been found to exist and have non-zero size.final boolean
isEmpty()
Report whether this ColumnSourceManager has no locations that have been "included" (i.e.refresh()
Observe size changes in the previously added table locations, and update the managed column sources accordingly.void
removeLocation
(TableLocation location) Remove a table location from the sources.
-
Method Details
-
addLocation
Description copied from interface:ColumnSourceManager
Add a table location to the list to be checked in refresh().- Specified by:
addLocation
in interfaceColumnSourceManager
- Parameters:
tableLocation
- The table location to be added
-
removeLocation
Description copied from interface:ColumnSourceManager
Remove a table location from the sources.- Specified by:
removeLocation
in interfaceColumnSourceManager
- Parameters:
location
- the location key being removed
-
refresh
Description copied from interface:ColumnSourceManager
Observe size changes in the previously added table locations, and update the managed column sources accordingly.- Specified by:
refresh
in interfaceColumnSourceManager
- Returns:
- The index of added keys
-
allLocations
Description copied from interface:ColumnSourceManager
Get the added locations, first the ones that have been "included" (found to exist with non-zero size) in order of inclusion, then the remainder in order of discovery.- Specified by:
allLocations
in interfaceColumnSourceManager
- Returns:
- All known locations, ordered as described
-
includedLocations
Description copied from interface:ColumnSourceManager
Get the added locations that have been found to exist and have non-zero size.- Specified by:
includedLocations
in interfaceColumnSourceManager
- Returns:
- The added locations that have been found to exist and have non-zero size
-
isEmpty
public final boolean isEmpty()Description copied from interface:ColumnSourceManager
Report whether this ColumnSourceManager has no locations that have been "included" (i.e. found to exist with non-zero size).- Specified by:
isEmpty
in interfaceColumnSourceManager
- Returns:
- True if there are no included locations
-
getColumnSources
Description copied from interface:ColumnSourceManager
Get a map of name toColumnSource
for the column sources maintained by this manager.- Specified by:
getColumnSources
in interfaceColumnSourceManager
- Returns:
- An unmodifiable view of the column source map maintained by this manager.
-
getDataIndexProvider
Description copied from interface:ColumnSourceManager
Get theDataIndexProvider
to retrieve Data Indexes for this table.- Specified by:
getDataIndexProvider
in interfaceColumnSourceManager
- Returns:
- the data index provider, or null if none has been created.
-
disableGrouping
public final void disableGrouping()Description copied from interface:ColumnSourceManager
Turn off column grouping, and clear the groupings on all GROUPING column sources. Note that this does *not* affect PARTITIONING columns.- Specified by:
disableGrouping
in interfaceColumnSourceManager
-