Class DrillIndexDescriptor

All Implemented Interfaces:
IndexDefinition, IndexDescriptor

public class DrillIndexDescriptor extends AbstractIndexDescriptor
  • Constructor Details

  • Method Details

    • getRows

      public double getRows(org.apache.calcite.rel.RelNode scan, org.apache.calcite.rex.RexNode indexCondition)
      Description copied from interface: IndexDescriptor
      Get the estimated row count for a single index condition
      Specified by:
      getRows in interface IndexDescriptor
      Overrides:
      getRows in class AbstractIndexDescriptor
      Parameters:
      scan - The rel node corresponding to the primary table
      indexCondition - The index condition (e.g index_col1 < 10 AND index_col2 = 'abc')
      Returns:
      The estimated row count
    • getIndexGroupScan

      public IndexGroupScan getIndexGroupScan()
      Description copied from interface: IndexDescriptor
      Get an instance of the group scan associated with this index descriptor
      Specified by:
      getIndexGroupScan in interface IndexDescriptor
      Overrides:
      getIndexGroupScan in class AbstractIndexDescriptor
      Returns:
      An instance of group scan for this index
    • setStorageName

      public void setStorageName(String storageName)
      Set the storage plugin name
      Parameters:
      storageName -
    • getStorageName

      public String getStorageName()
      Get storage plugin name for this index descriptor
      Returns:
      name of the storage plugin
    • setDrillTable

      public void setDrillTable(DrillTable table)
      Set the drill table corresponding to the index
      Parameters:
      table -
    • getDrillTable

      public DrillTable getDrillTable()
      Get the drill table corresponding to the index descriptor
      Returns:
      instance of DrillTable
    • getFunctionalInfo

      public FunctionalIndexInfo getFunctionalInfo()
      Description copied from interface: IndexDescriptor
      Get the functional index information associated with this index (Functional indexes are indexes involving expressions e.g CAST(a as INT).
    • getPluginCostModel

      public PluginCost getPluginCostModel()
      Description copied from interface: IndexDescriptor
      Get the costing factors associated with the storage/format plugin