Class SplunkSchema
java.lang.Object
org.apache.drill.exec.store.AbstractSchema
org.apache.drill.exec.store.splunk.SplunkSchema
- All Implemented Interfaces:
AutoCloseable
,org.apache.calcite.schema.Schema
,SchemaPartitionExplorer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.schema.Schema
org.apache.calcite.schema.Schema.TableType
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.AbstractSchema
name, SCHEMA_SEPARATOR, schemaPath
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateNewTable
(String tableName, List<String> partitionColumns, StorageStrategy strategy) Creates table entry using table name, list of partition columns and storage strategy used to create table folder and filesvoid
This function contains the logic to delete an index from Splunk.org.apache.calcite.schema.Table
Returns string describing schema type which shows where the schema came from.boolean
modifyTable
(String tableName) Returns table entry using table name to insert records into the table.boolean
Reports whether to show items from this schema in INFORMATION_SCHEMA tables.Methods inherited from class org.apache.drill.exec.store.AbstractSchema
appendToStatsTable, applyFunctionParameters, areTableNamesCaseSensitive, close, createNewTable, createStatsTable, createView, dropView, getDefaultSchema, getExpression, getFullSchemaName, getFunctionNames, getFunctionParameters, getFunctions, getName, getSchemaPath, getStatsTable, getSubPartitions, getSubSchema, getSubSchemaNames, getTableNamesAndTypes, getTablesByNames, getType, getTypeMap, getTypeNames, getUser, needToImpersonateReadingData, snapshot, toString
-
Constructor Details
-
SplunkSchema
-
-
Method Details
-
getTable
- Specified by:
getTable
in interfaceorg.apache.calcite.schema.Schema
- Overrides:
getTable
in classAbstractSchema
-
showInInformationSchema
public boolean showInInformationSchema()Description copied from class:AbstractSchema
Reports whether to show items from this schema in INFORMATION_SCHEMA tables. (Controls ... TODO: Doc.: Mention what this typically controls or affects.)This base implementation returns
true
.- Overrides:
showInInformationSchema
in classAbstractSchema
-
getTableNames
- Specified by:
getTableNames
in interfaceorg.apache.calcite.schema.Schema
- Overrides:
getTableNames
in classAbstractSchema
-
createNewTable
public CreateTableEntry createNewTable(String tableName, List<String> partitionColumns, StorageStrategy strategy) Description copied from class:AbstractSchema
Creates table entry using table name, list of partition columns and storage strategy used to create table folder and files- Overrides:
createNewTable
in classAbstractSchema
- Parameters:
tableName
- : new table name.partitionColumns
- : list of partition columns. Empty list if there is no partition columns.strategy
- : storage strategy used to create table folder and files- Returns:
- create table entry
-
dropTable
This function contains the logic to delete an index from Splunk. The Splunk SDK does not have any kind of indication whether the operation succeeded or failed.- Overrides:
dropTable
in classAbstractSchema
- Parameters:
indexName
- The name of the index to be deleted.
-
modifyTable
Description copied from class:AbstractSchema
Returns table entry using table name to insert records into the table.- Overrides:
modifyTable
in classAbstractSchema
- Parameters:
tableName
- : new table name.- Returns:
- insert table entry
-
isMutable
public boolean isMutable()- Specified by:
isMutable
in interfaceorg.apache.calcite.schema.Schema
- Overrides:
isMutable
in classAbstractSchema
-
getTypeName
Description copied from class:AbstractSchema
Returns string describing schema type which shows where the schema came from. Good practice here is to return json type name of storage plugin's config.- Specified by:
getTypeName
in classAbstractSchema
- Returns:
- schema type name
-