Package org.apache.drill.exec.store
Class ConnectorHandle
java.lang.Object
org.apache.drill.exec.store.ConnectorHandle
Defines a storage connector: a storage plugin config along with the
locator which can create a plugin instance given an instance of the
config.
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends StoragePluginConfig>
static ConnectorHandle
configuredConnector
(ConnectorLocator locator, Class<? extends StoragePluginConfig> configClass) Construct a handle for a "normal" connector which takes a plugin config and constructs a plugin instance based on that config.Class<? extends StoragePlugin>
static ConnectorHandle
intrinsicConnector
(ConnectorLocator locator, StoragePlugin plugin) Construct a handle for an intrinsic (system) connector which always uses a single config: the one created along with the plugin instance itself.boolean
An intrinsic connector is one defined for the life of the Drillbit.boolean
isStored()
locator()
newInstance
(String name, StoragePluginConfig config) pluginEntryFor
(String name, StoragePluginConfig config, org.apache.drill.exec.store.PluginHandle.PluginType type)
-
Method Details
-
configuredConnector
public static ConnectorHandle configuredConnector(ConnectorLocator locator, Class<? extends StoragePluginConfig> configClass) Construct a handle for a "normal" connector which takes a plugin config and constructs a plugin instance based on that config. -
intrinsicConnector
Construct a handle for an intrinsic (system) connector which always uses a single config: the one created along with the plugin instance itself. -
isIntrinsic
public boolean isIntrinsic()An intrinsic connector is one defined for the life of the Drillbit. It cannot be configured, changed or removed. It is not stored. -
isStored
public boolean isStored() -
locator
-
configClass
-
connectorClass
-
pluginEntryFor
public PluginHandle pluginEntryFor(String name, StoragePluginConfig config, org.apache.drill.exec.store.PluginHandle.PluginType type) -
newInstance
- Throws:
Exception
-