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 Details

    • addLocation

      public void addLocation(@NotNull @NotNull TableLocation tableLocation)
      Description copied from interface: ColumnSourceManager
      Add a table location to the list to be checked in refresh().
      Specified by:
      addLocation in interface ColumnSourceManager
      Parameters:
      tableLocation - The table location to be added
    • removeLocation

      public void removeLocation(@NotNull @NotNull TableLocation location)
      Description copied from interface: ColumnSourceManager
      Remove a table location from the sources.
      Specified by:
      removeLocation in interface ColumnSourceManager
      Parameters:
      location - the location key being removed
    • refresh

      public Index 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 interface ColumnSourceManager
      Returns:
      The index of added keys
    • allLocations

      public final Collection<TableLocation> 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 interface ColumnSourceManager
      Returns:
      All known locations, ordered as described
    • includedLocations

      public final Collection<TableLocation> 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 interface ColumnSourceManager
      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 interface ColumnSourceManager
      Returns:
      True if there are no included locations
    • getColumnSources

      public final Map<String,? extends ColumnSource<?>> getColumnSources()
      Description copied from interface: ColumnSourceManager
      Get a map of name to ColumnSource for the column sources maintained by this manager.
      Specified by:
      getColumnSources in interface ColumnSourceManager
      Returns:
      An unmodifiable view of the column source map maintained by this manager.
    • getDataIndexProvider

      @Nullable public @Nullable DataIndexProviderImpl getDataIndexProvider()
      Description copied from interface: ColumnSourceManager
      Get the DataIndexProvider to retrieve Data Indexes for this table.
      Specified by:
      getDataIndexProvider in interface ColumnSourceManager
      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 interface ColumnSourceManager