public class SplunkTableScan extends TableScan implements EnumerableRel
Splunk does not have tables, but it's easiest to imagine that a Splunk instance is one large table. This "table" does not have a fixed set of columns (Splunk calls them "fields") but each query specifies the fields that it wants. It also specifies a search expression, and optionally earliest and latest dates.
EnumerableRel.Prefer, EnumerableRel.Result| Modifier and Type | Field and Description |
|---|---|
(package private) String |
earliest |
(package private) List<String> |
fieldList |
(package private) String |
latest |
private static Method |
METHOD |
(package private) String |
search |
(package private) SplunkTable |
splunkTable |
digest, id, rowType, traitSetFILTER_FACTORY, PROJECT_FACTORY| Modifier | Constructor and Description |
|---|---|
protected |
SplunkTableScan(RelOptCluster cluster,
RelOptTable table,
SplunkTable splunkTable,
String search,
String earliest,
String latest,
List<String> fieldList) |
| Modifier and Type | Method and Description |
|---|---|
private static Expression |
constantStringList(List<String> strings) |
RelDataType |
deriveRowType() |
RelWriter |
explainTerms(RelWriter pw) |
EnumerableRel.Result |
implement(EnumerableRelImplementor implementor,
EnumerableRel.Prefer pref) |
void |
register(RelOptPlanner planner) |
accept, computeSelfCost, estimateRowCount, getCollationList, getTable, identity, identity, projectaccept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, copy, explain, getChildExps, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, replaceInput, sole, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, computeSelfCost, copy, estimateRowCount, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, replaceInputgetCluster, getDescription, getDigest, getId, getTraitSetfinal SplunkTable splunkTable
final String search
final String earliest
final String latest
private static final Method METHOD
protected SplunkTableScan(RelOptCluster cluster, RelOptTable table, SplunkTable splunkTable, String search, String earliest, String latest, List<String> fieldList)
public RelWriter explainTerms(RelWriter pw)
explainTerms in class TableScanpublic void register(RelOptPlanner planner)
register in interface RelNoderegister in class AbstractRelNodepublic RelDataType deriveRowType()
deriveRowType in class TableScanpublic EnumerableRel.Result implement(EnumerableRelImplementor implementor, EnumerableRel.Prefer pref)
implement in interface EnumerableRelprivate static Expression constantStringList(List<String> strings)
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.