public abstract class IndexDiscoverBase extends Object implements IndexDiscover
Constructor and Description |
---|
IndexDiscoverBase(AbstractDbGroupScan inScan,
DrillScanRelBase inScanPrel) |
IndexDiscoverBase(AbstractDbGroupScan inScan,
ScanPrel inScanPrel) |
Modifier and Type | Method and Description |
---|---|
DrillTable |
buildDrillTable(IndexDescriptor idxDesc)
Abstract function getDrillTable will be implemented the IndexDiscover within storage plugin(e.g.
|
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.
|
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.
|
AbstractDbGroupScan |
getOriginalScan() |
org.apache.calcite.rel.RelNode |
getOriginalScanRel() |
IndexCollection |
getTableIndex(String tableName,
String storageName,
Collection<DrillIndexDefinition> indexDefs) |
void |
materializeIndex(String storageName,
DrillIndexDescriptor index) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTableIndex
public IndexDiscoverBase(AbstractDbGroupScan inScan, DrillScanRelBase inScanPrel)
public IndexDiscoverBase(AbstractDbGroupScan inScan, ScanPrel inScanPrel)
public AbstractDbGroupScan getOriginalScan()
public org.apache.calcite.rel.RelNode getOriginalScanRel()
public IndexCollection getTableIndex(String tableName, String storageName, Collection<DrillIndexDefinition> indexDefs)
public void materializeIndex(String storageName, DrillIndexDescriptor index)
public DrillTable getExternalDrillTable(IndexDescriptor idxDesc)
idxDesc
- public DrillTable buildDrillTable(IndexDescriptor idxDesc)
idxDesc
- public abstract DrillTable getNativeDrillTable(IndexDescriptor idxDesc)
idxDesc
- Copyright © 1970 The Apache Software Foundation. All rights reserved.