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 TypeMethodDescriptionvoidaddLocation(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 voidTurn off column grouping, and clear the groupings on all GROUPING column sources.final Map<String,? extends ColumnSource<?>> Get a map of name toColumnSourcefor the column sources maintained by this manager.Get theDataIndexProviderto 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 booleanisEmpty()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.voidremoveLocation(TableLocation location) Remove a table location from the sources.
-
Method Details
-
addLocation
Description copied from interface:ColumnSourceManagerAdd a table location to the list to be checked in refresh().- Specified by:
addLocationin interfaceColumnSourceManager- Parameters:
tableLocation- The table location to be added
-
removeLocation
Description copied from interface:ColumnSourceManagerRemove a table location from the sources.- Specified by:
removeLocationin interfaceColumnSourceManager- Parameters:
location- the location key being removed
-
refresh
Description copied from interface:ColumnSourceManagerObserve size changes in the previously added table locations, and update the managed column sources accordingly.- Specified by:
refreshin interfaceColumnSourceManager- Returns:
- The index of added keys
-
allLocations
Description copied from interface:ColumnSourceManagerGet 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:
allLocationsin interfaceColumnSourceManager- Returns:
- All known locations, ordered as described
-
includedLocations
Description copied from interface:ColumnSourceManagerGet the added locations that have been found to exist and have non-zero size.- Specified by:
includedLocationsin 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:ColumnSourceManagerReport whether this ColumnSourceManager has no locations that have been "included" (i.e. found to exist with non-zero size).- Specified by:
isEmptyin interfaceColumnSourceManager- Returns:
- True if there are no included locations
-
getColumnSources
Description copied from interface:ColumnSourceManagerGet a map of name toColumnSourcefor the column sources maintained by this manager.- Specified by:
getColumnSourcesin interfaceColumnSourceManager- Returns:
- An unmodifiable view of the column source map maintained by this manager.
-
getDataIndexProvider
Description copied from interface:ColumnSourceManagerGet theDataIndexProviderto retrieve Data Indexes for this table.- Specified by:
getDataIndexProviderin interfaceColumnSourceManager- Returns:
- the data index provider, or null if none has been created.
-
disableGrouping
public final void disableGrouping()Description copied from interface:ColumnSourceManagerTurn off column grouping, and clear the groupings on all GROUPING column sources. Note that this does *not* affect PARTITIONING columns.- Specified by:
disableGroupingin interfaceColumnSourceManager
-