Class ExternalDataSource
java.lang.Object
org.apache.druid.query.LeafDataSource
org.apache.druid.sql.calcite.external.ExternalDataSource
- All Implemented Interfaces:
Cacheable,DataSource
Represents external data for INSERT queries. Only used by the SQL layer, not by the query stack.
Includes an
InputSource and InputFormat, plus a RowSignature so the SQL planner has
the type information necessary to validate and plan the query.
This class is exercised in CalciteInsertDmlTest but is not currently exposed to end users.-
Field Summary
Fields inherited from interface org.apache.druid.query.DataSource
JOIN_OPERATION_CACHE_ID, NOOP_CACHE_ID, TABLE_DATA_SOURCE_CACHE_ID -
Constructor Summary
ConstructorsConstructorDescriptionExternalDataSource(InputSource inputSource, InputFormat inputFormat, RowSignature signature) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]inthashCode()booleanisCacheable(boolean isBroker) booleanisGlobal()booleantoString()Methods inherited from class org.apache.druid.query.LeafDataSource
createSegmentMapFunction, getChildren, withChildrenMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.query.DataSource
createSegmentPruner, withPolicies
-
Constructor Details
-
ExternalDataSource
-
-
Method Details
-
getInputSource
-
getInputFormat
-
getSignature
-
getTableNames
-
isCacheable
public boolean isCacheable(boolean isBroker) -
isGlobal
public boolean isGlobal() -
isProcessable
public boolean isProcessable() -
getCacheKey
public byte[] getCacheKey() -
equals
-
hashCode
public int hashCode() -
toString
-