Package org.apache.druid.segment.join
Class FrameBasedInlineJoinableFactory
java.lang.Object
org.apache.druid.segment.join.FrameBasedInlineJoinableFactory
- All Implemented Interfaces:
JoinableFactory
Creates a joinable from the
FrameBasedInlineDataSource. This materializes the datasource to an
InlineDataSource, before creating the joinable on it, which carries the overhead of this conversion.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(DataSource dataSource, JoinConditionAnalysis condition) Create a Joinable object.booleanisDirectlyJoinable(DataSource dataSource) Returns true if aJoinable**may** be created for a givenDataSource, but is not a guarantee thatJoinableFactory.build(org.apache.druid.query.DataSource, org.apache.druid.segment.join.JoinConditionAnalysis)will return a non-empty result.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.segment.join.JoinableFactory
computeJoinCacheKey
-
Constructor Details
-
FrameBasedInlineJoinableFactory
public FrameBasedInlineJoinableFactory()
-
-
Method Details
-
isDirectlyJoinable
Description copied from interface:JoinableFactoryReturns true if aJoinable**may** be created for a givenDataSource, but is not a guarantee thatJoinableFactory.build(org.apache.druid.query.DataSource, org.apache.druid.segment.join.JoinConditionAnalysis)will return a non-empty result. Successfully building aJoinablemight require specific criteria of theJoinConditionAnalysis.- Specified by:
isDirectlyJoinablein interfaceJoinableFactory
-
build
Description copied from interface:JoinableFactoryCreate a Joinable object. This may be an expensive operation involving loading data, creating a hash table, etc.- Specified by:
buildin interfaceJoinableFactory- Parameters:
dataSource- the datasource to join oncondition- the condition to join on- Returns:
- a Joinable if this datasource + condition combo is joinable; empty if not
-