Package org.apache.drill.exec.store.kudu
Class KuduStoragePlugin
java.lang.Object
org.apache.drill.exec.store.AbstractStoragePlugin
org.apache.drill.exec.store.kudu.KuduStoragePlugin
- All Implemented Interfaces:
AutoCloseable
,SchemaFactory
,StoragePlugin
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.AbstractStoragePlugin
context
Fields inherited from interface org.apache.drill.exec.store.SchemaFactory
DEFAULT_WS_NAME
-
Constructor Summary
ConstructorDescriptionKuduStoragePlugin
(KuduStoragePluginConfig configuration, DrillbitContext context, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
org.apache.kudu.client.KuduClient
Method returns a Jackson serializable object that extends a StoragePluginConfig.getPhysicalScan
(String userName, JSONOptions selection) Get the physical scan operator for the particular GroupScan (read) node.void
registerSchemas
(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) Register the schemas provided by this SchemaFactory implementation under the given parent schema.boolean
Indicates if Drill can read the table from this format.boolean
Indicates if Drill can write a table to this format (e.g.Methods inherited from class org.apache.drill.exec.store.AbstractStoragePlugin
getContext, getFormatPlugin, getName, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, getPhysicalScan, onDisabled, onEnabled, start, supportsInsert, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.store.StoragePlugin
getOptimizerRules
-
Constructor Details
-
KuduStoragePlugin
public KuduStoragePlugin(KuduStoragePluginConfig configuration, DrillbitContext context, String name) throws IOException - Throws:
IOException
-
-
Method Details
-
getClient
public org.apache.kudu.client.KuduClient getClient() -
close
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classAbstractStoragePlugin
- Throws:
Exception
-
supportsRead
public boolean supportsRead()Description copied from interface:StoragePlugin
Indicates if Drill can read the table from this format.- Specified by:
supportsRead
in interfaceStoragePlugin
- Overrides:
supportsRead
in classAbstractStoragePlugin
-
getPhysicalScan
Description copied from interface:StoragePlugin
Get the physical scan operator for the particular GroupScan (read) node.- Specified by:
getPhysicalScan
in interfaceStoragePlugin
- Overrides:
getPhysicalScan
in classAbstractStoragePlugin
- Parameters:
userName
- User whom to impersonate when when reading the contents as part of Scan.selection
- The configured storage engine specific selection.- Returns:
- The physical scan operator for the particular GroupScan (read) node.
- Throws:
IOException
-
supportsWrite
public boolean supportsWrite()Description copied from interface:StoragePlugin
Indicates if Drill can write a table to this format (e.g. as JSON, csv, etc.).- Specified by:
supportsWrite
in interfaceStoragePlugin
- Overrides:
supportsWrite
in classAbstractStoragePlugin
-
registerSchemas
public void registerSchemas(SchemaConfig schemaConfig, org.apache.calcite.schema.SchemaPlus parent) throws IOException Description copied from interface:SchemaFactory
Register the schemas provided by this SchemaFactory implementation under the given parent schema.- Parameters:
schemaConfig
- Configuration for schema objects.parent
- Reference to parent schema.- Throws:
IOException
- in case of error during schema registration
-
getConfig
Description copied from interface:StoragePlugin
Method returns a Jackson serializable object that extends a StoragePluginConfig.- Returns:
- an extension of StoragePluginConfig
-