Class RegionedColumnSourceManager
java.lang.Object
com.illumon.iris.db.v2.sources.regioned.RegionedColumnSourceManager
- All Implemented Interfaces:
ColumnSourceManager
public class RegionedColumnSourceManager extends Object implements ColumnSourceManager
Manage column sources made up of regions in their own index address space.
-
Method Summary
Modifier and Type Method Description voidaddLocation(TableLocation tableLocation)Add a table location to the list to be checked in refresh().Collection<TableLocation>allLocations()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.voiddisableGrouping()Turn off column grouping, and clear the groupings on all GROUPING column sources.Map<String,? extends ColumnSource<?>>getColumnSources()Get a map of name toColumnSourcefor the column sources maintained by this manager.DataIndexProviderImplgetDataIndexProvider()Get theDataIndexProviderto retrieve Data Indexes for this table.Collection<TableLocation>includedLocations()Get the added locations that have been found to exist and have non-zero size.booleanisEmpty()Report whether this ColumnSourceManager has no locations that have been "included" (i.e.Indexrefresh()Observe size changes in the previously added table locations, and update the managed column sources accordingly.
-
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
-
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
-