Package com.illumon.iris.db.v2
Interface ColumnSourceManager
- All Known Implementing Classes:
RegionedColumnSourceManager
public interface ColumnSourceManager
Manager for ColumnSources in a Table.
-
Method Summary
Modifier and Type Method Description void
addLocation(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.void
disableGrouping()
Turn off column grouping, and clear the groupings on all GROUPING column sources.Map<String,? extends ColumnSource<?>>
getColumnSources()
Get a map of name toColumnSource
for the column sources maintained by this manager.DataIndexProvider
getDataIndexProvider()
Get theDataIndexProvider
to retrieve Data Indexes for this table.Collection<TableLocation>
includedLocations()
Get the added locations that have been found to exist and have non-zero size.boolean
isEmpty()
Report whether this ColumnSourceManager has no locations that have been "included" (i.e.Index
refresh()
Observe size changes in the previously added table locations, and update the managed column sources accordingly.
-
Method Details
-
getColumnSources
Map<String,? extends ColumnSource<?>> getColumnSources()Get a map of name toColumnSource
for the column sources maintained by this manager.- Returns:
- An unmodifiable view of the column source map maintained by this manager.
-
disableGrouping
void disableGrouping()Turn off column grouping, and clear the groupings on all GROUPING column sources. Note that this does *not* affect PARTITIONING columns. -
addLocation
Add a table location to the list to be checked in refresh().- Parameters:
tableLocation
- The table location to be added
-
refresh
Index refresh()Observe size changes in the previously added table locations, and update the managed column sources accordingly.- Returns:
- The index of added keys
-
allLocations
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.- Returns:
- All known locations, ordered as described
-
includedLocations
Collection<TableLocation> includedLocations()Get the added locations that have been found to exist and have non-zero size.- Returns:
- The added locations that have been found to exist and have non-zero size
-
isEmpty
boolean isEmpty()Report whether this ColumnSourceManager has no locations that have been "included" (i.e. found to exist with non-zero size).- Returns:
- True if there are no included locations
-
getDataIndexProvider
Get theDataIndexProvider
to retrieve Data Indexes for this table.- Returns:
- the data index provider, or null if none has been created.
-