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 of Function1
that
returns an Enumerable
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
-
Field Summary
Fields inherited from interface org.apache.calcite.linq4j.function.Function1
IDENTITY
-
Constructor Summary
ConstructorDescriptionNestedJoinFactory
(int capacity, List<TranslationPredicate> rowTranslators, CloneableEnumerable<Object> rootEnumerable) Create a Factory that producesEnumerable
that can cache results from previous calls -
Method Summary
-
Constructor Details
-
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)
-
-
Method Details