Class IndexDiscoverBase

java.lang.Object
org.apache.drill.exec.planner.index.IndexDiscoverBase
All Implemented Interfaces:
IndexDiscover

public abstract class IndexDiscoverBase extends Object implements IndexDiscover
IndexDiscoverBase is the layer to read index configurations of tables on storage plugins, then based on the properties it collected, get the StoragePlugin from StoragePluginRegistry, together with indexes information, build an IndexCollection
  • Constructor Details

  • Method Details

    • getOriginalScan

      public AbstractDbGroupScan getOriginalScan()
    • getOriginalScanRel

      public org.apache.calcite.rel.RelNode getOriginalScanRel()
    • getTableIndex

      public IndexCollection getTableIndex(String tableName, String storageName, Collection<DrillIndexDefinition> indexDefs)
    • materializeIndex

      public void materializeIndex(String storageName, DrillIndexDescriptor index)
    • getExternalDrillTable

      public DrillTable getExternalDrillTable(IndexDescriptor idxDesc)
      When there is storageName in IndexDescriptor, get a DrillTable instance based on the StorageName and other informaiton in idxDesc that helps identifying the table.
      Parameters:
      idxDesc -
      Returns:
    • buildDrillTable

      public DrillTable buildDrillTable(IndexDescriptor idxDesc)
      Abstract function getDrillTable will be implemented the IndexDiscover within storage plugin(e.g. HBase, MaprDB) since the implementations of AbstractStoragePlugin, IndexDescriptor and DrillTable in that storage plugin may have the implement details.
      Parameters:
      idxDesc -
      Returns:
    • getNativeDrillTable

      public abstract DrillTable getNativeDrillTable(IndexDescriptor idxDesc)
      When it is native index(index provided by native storage plugin), the actual IndexDiscover should provide the implementation to get the DrillTable object of index, Otherwise, we call IndexDiscoverable interface exposed from external storage plugin's SchemaFactory to get the desired DrillTable.
      Parameters:
      idxDesc -
      Returns: