Package org.apache.druid.segment.join
Class NoopJoinableFactory
- java.lang.Object
-
- org.apache.druid.segment.join.NoopJoinableFactory
-
- All Implemented Interfaces:
JoinableFactory
public class NoopJoinableFactory extends Object implements JoinableFactory
-
-
Field Summary
Fields Modifier and Type Field Description static NoopJoinableFactoryINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description protectedNoopJoinableFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Joinable>build(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, wait
-
Methods inherited from interface org.apache.druid.segment.join.JoinableFactory
computeJoinCacheKey
-
-
-
-
Field Detail
-
INSTANCE
public static final NoopJoinableFactory INSTANCE
-
-
Method Detail
-
isDirectlyJoinable
public boolean isDirectlyJoinable(DataSource dataSource)
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
public Optional<Joinable> build(DataSource dataSource, JoinConditionAnalysis condition)
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
-
-