Package com.twilio.kudu.sql
Class NestedJoinFactory
- java.lang.Object
-
- com.twilio.kudu.sql.NestedJoinFactory
-
- All Implemented Interfaces:
org.apache.calcite.linq4j.function.Function<org.apache.calcite.linq4j.Enumerable<Object>>
,org.apache.calcite.linq4j.function.Function1<List<Object>,org.apache.calcite.linq4j.Enumerable<Object>>
public final class NestedJoinFactory extends Object implements org.apache.calcite.linq4j.function.Function1<List<Object>,org.apache.calcite.linq4j.Enumerable<Object>>
NestedJoinFactory
is an implementation ofFunction1
that returns anEnumerable
for the Right hand side of a nested join.This implementation uses a cache to hold objects from the scan to prevent going creating
AsyncKuduScanner
for repeated rows
-
-
Constructor Summary
Constructors Constructor Description NestedJoinFactory(int capacity, List<TranslationPredicate> rowTranslators, CloneableEnumerable<Object> rootEnumerable)
Create a Factory that producesEnumerable
that can cache results from previous calls
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.linq4j.Enumerable<Object>
apply(List<Object> batchFromLeftTable)
-
-
-
Constructor Detail
-
NestedJoinFactory
public NestedJoinFactory(int capacity, List<TranslationPredicate> rowTranslators, CloneableEnumerable<Object> rootEnumerable)
Create a Factory that producesEnumerable
that can cache results from previous calls- Parameters:
capacity
- size of the RPC cacherowTranslators
- bindable predicates that depend on the row from the left side of the joinrootEnumerable
- base enumerable that will beCloneableEnumerable.clone(List)
-
-