Class SplunkSchema
- java.lang.Object
-
- org.apache.calcite.schema.impl.AbstractSchema
-
- org.apache.calcite.adapter.splunk.SplunkSchema
-
- All Implemented Interfaces:
Schema
public class SplunkSchema extends AbstractSchema
Splunk schema.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.calcite.schema.impl.AbstractSchema
AbstractSchema.Factory
-
Nested classes/interfaces inherited from interface org.apache.calcite.schema.Schema
Schema.TableType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SPLUNK_TABLE_NAME
The name of the one and only table.SplunkConnection
splunkConnection
static com.google.common.collect.ImmutableMap<java.lang.String,Table>
TABLE_MAP
-
Constructor Summary
Constructors Constructor Description SplunkSchema(SplunkConnection splunkConnection)
Creates a SplunkSchema.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,Table>
getTableMap()
Returns a map of tables in this schema by name.-
Methods inherited from class org.apache.calcite.schema.impl.AbstractSchema
getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, getType, getTypeMap, getTypeNames, isMutable, snapshot
-
-
-
-
Field Detail
-
SPLUNK_TABLE_NAME
public static final java.lang.String SPLUNK_TABLE_NAME
The name of the one and only table.- See Also:
- Constant Field Values
-
TABLE_MAP
public static final com.google.common.collect.ImmutableMap<java.lang.String,Table> TABLE_MAP
-
splunkConnection
public final SplunkConnection splunkConnection
-
-
Constructor Detail
-
SplunkSchema
public SplunkSchema(SplunkConnection splunkConnection)
Creates a SplunkSchema.
-
-
Method Detail
-
getTableMap
protected java.util.Map<java.lang.String,Table> getTableMap()
Description copied from class:AbstractSchema
Returns a map of tables in this schema by name.The implementations of
AbstractSchema.getTableNames()
andAbstractSchema.getTable(String)
depend on this map. The default implementation of this method returns the empty map. Override this method to change their behavior.- Overrides:
getTableMap
in classAbstractSchema
- Returns:
- Map of tables in this schema by name
-
-