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
Constructors -
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 filesvoidThis function contains the logic to delete an index from Splunk.org.apache.calcite.schema.TableReturns string describing schema type which shows where the schema came from.booleanmodifyTable(String tableName) Returns table entry using table name to insert records into the table.booleanReports 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:
getTablein interfaceorg.apache.calcite.schema.Schema- Overrides:
getTablein classAbstractSchema
-
showInInformationSchema
public boolean showInInformationSchema()Description copied from class:AbstractSchemaReports 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:
showInInformationSchemain classAbstractSchema
-
getTableNames
- Specified by:
getTableNamesin interfaceorg.apache.calcite.schema.Schema- Overrides:
getTableNamesin classAbstractSchema
-
createNewTable
public CreateTableEntry createNewTable(String tableName, List<String> partitionColumns, StorageStrategy strategy) Description copied from class:AbstractSchemaCreates table entry using table name, list of partition columns and storage strategy used to create table folder and files- Overrides:
createNewTablein 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:
dropTablein classAbstractSchema- Parameters:
indexName- The name of the index to be deleted.
-
modifyTable
Description copied from class:AbstractSchemaReturns table entry using table name to insert records into the table.- Overrides:
modifyTablein classAbstractSchema- Parameters:
tableName- : new table name.- Returns:
- insert table entry
-
isMutable
public boolean isMutable()- Specified by:
isMutablein interfaceorg.apache.calcite.schema.Schema- Overrides:
isMutablein classAbstractSchema
-
getTypeName
Description copied from class:AbstractSchemaReturns 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:
getTypeNamein classAbstractSchema- Returns:
- schema type name
-