| Package | Description |
|---|---|
| org.apache.calcite.adapter.clone |
Provides utility classes.
|
| org.apache.calcite.adapter.elasticsearch |
Base classes for a query provider based on an Elasticsearch DB.
|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| org.apache.calcite.interpreter |
Provides an implementation of relational expressions using an interpreter.
|
| org.apache.calcite.jdbc |
JDBC driver for Calcite.
|
| org.apache.calcite.materialize |
Management of materialized query results.
|
| org.apache.calcite.model |
Provides model files, in JSON format, defining schemas and other metadata.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.plan.volcano |
Optimizes relational expressions.
|
| org.apache.calcite.prepare |
Preparation of queries (parsing, planning and implementation).
|
| org.apache.calcite.profile |
Utilities to analyze data sets.
|
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.core |
Defines core relational expressions.
|
| org.apache.calcite.rel.externalize |
Facilities to externalize
RelNodes to and from
XML and JSON format. |
| org.apache.calcite.rel.metadata |
Defines metadata interfaces and utilities for relational
expressions.
|
| org.apache.calcite.rel.mutable |
Defines mutable relational expressions.
|
| org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
| org.apache.calcite.rel.type |
Defines a type system for relational expressions.
|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.schema |
Schema SPI.
|
| org.apache.calcite.sql.fun |
Defines the set of standard SQL row-level functions and
operators.
|
| org.apache.calcite.sql.util |
Utility classes for the SQL object model, parsing, and validation.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| org.apache.calcite.tools |
Provides utility classes.
|
| org.apache.calcite.util |
Provides utility classes.
|
| org.apache.calcite.util.graph |
Graph-theoretic algorithms and data structures.
|
| Modifier and Type | Method and Description |
|---|---|
private static <T> Pair<Object,T> |
ArrayTable.toPair(Object dataSet) |
| Modifier and Type | Field and Description |
|---|---|
(package private) com.google.common.collect.Multimap<String,Pair<String,RexLiteral>> |
ElasticsearchFilter.Translator.multimap |
| Modifier and Type | Field and Description |
|---|---|
private List<Pair<Expression,PhysType>> |
RexToLixTranslator.InputGetterImpl.inputs |
| Modifier and Type | Method and Description |
|---|---|
Pair<Expression,Expression> |
PhysType.generateCollationKey(List<RelFieldCollation> collations)
Returns a lambda to create a collation key and a comparator.
|
Pair<Expression,Expression> |
PhysTypeImpl.generateCollationKey(List<RelFieldCollation> collations) |
private Pair<Expression,Expression> |
EnumerableWindow.getPartitionIterator(BlockBuilder builder,
Expression source_,
PhysType inputPhysType,
Window.Group group,
Expression comparator_) |
private Pair<Expression,Expression> |
EnumerableWindow.getRowCollationKey(BlockBuilder builder,
PhysType inputPhysType,
Window.Group group,
int windowIdx) |
Pair<Type,List<Expression>> |
PhysType.selector(ParameterExpression parameter,
List<Integer> fields,
JavaRowFormat targetFormat)
Generates a selector for the given fields from an expression.
|
Pair<Type,List<Expression>> |
PhysTypeImpl.selector(ParameterExpression parameter,
List<Integer> fields,
JavaRowFormat targetFormat) |
| Constructor and Description |
|---|
InputGetterImpl(List<Pair<Expression,PhysType>> inputs) |
| Modifier and Type | Method and Description |
|---|---|
private List<Pair<org.apache.calcite.avatica.ColumnMetaData.Rep,Integer>> |
JdbcTable.fieldClasses(JavaTypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
static Function1<ResultSet,Function0<Object[]>> |
JdbcUtils.ObjectArrayRowBuilder.factory(List<Pair<org.apache.calcite.avatica.ColumnMetaData.Rep,Integer>> list) |
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
Interpreter.Edge
Edge between a
RelNode and one of its inputs. |
| Modifier and Type | Method and Description |
|---|---|
(package private) Pair<RelNode,Map<RelNode,Interpreter.NodeInfo>> |
Interpreter.CompilerImpl.visitRoot(RelNode p)
Visits the tree, starting from the root
p. |
| Modifier and Type | Field and Description |
|---|---|
private Map<List<Pair<Type,Boolean>>,JavaTypeFactoryImpl.SyntheticRecordType> |
JavaTypeFactoryImpl.syntheticTypes |
| Modifier and Type | Field and Description |
|---|---|
private static Comparator<Pair<CalciteSchema.TableEntry,TileKey>> |
MaterializationService.C |
| Modifier and Type | Method and Description |
|---|---|
Pair<CalciteSchema.TableEntry,TileKey> |
MaterializationService.defineTile(Lattice lattice,
ImmutableBitSet groupSet,
List<Lattice.Measure> measureList,
CalciteSchema schema,
boolean create,
boolean exact)
Defines a tile.
|
Pair<CalciteSchema.TableEntry,TileKey> |
MaterializationService.defineTile(Lattice lattice,
ImmutableBitSet groupSet,
List<Lattice.Measure> measureList,
CalciteSchema schema,
boolean create,
boolean exact,
String suggestedTableName,
MaterializationService.TableFactory tableFactory) |
| Modifier and Type | Field and Description |
|---|---|
private Deque<Pair<String,SchemaPlus>> |
ModelHandler.schemaStack |
| Modifier and Type | Field and Description |
|---|---|
(package private) com.google.common.collect.Multimap<Pair<Convention,Convention>,ConverterRule> |
ConventionTraitDef.ConversionData.mapArcToConverterRule
For a given source/target convention, there may be several possible
conversion rules.
|
private Map<Pair<Class,Class>,List<SubstitutionVisitor.UnifyRule>> |
SubstitutionVisitor.ruleMap |
private List<Pair<T1,T2>> |
RexImplicationChecker.InputRefUsage.usageList |
| Modifier and Type | Method and Description |
|---|---|
Pair<CalciteSchema.TableEntry,TileKey> |
RelOptLattice.getAggregate(RelOptPlanner planner,
ImmutableBitSet groupSet,
List<Lattice.Measure> measureList)
Retrieves a materialized table that will satisfy an aggregate query on
the star table.
|
static Pair<Integer,?> |
VisitorDataContext.getValue(RexNode inputRef,
RexNode literal) |
| Modifier and Type | Method and Description |
|---|---|
static List<Pair<RelNode,RelOptLattice>> |
RelOptMaterializations.useLattices(RelNode rel,
List<RelOptLattice> lattices)
Returns a list of RelNode transformed from all possible lattice uses.
|
static List<Pair<RelNode,List<RelOptMaterialization>>> |
RelOptMaterializations.useMaterializedViews(RelNode rel,
List<RelOptMaterialization> materializations)
Returns a list of RelNode transformed from all possible combination of
materialized view uses.
|
| Modifier and Type | Method and Description |
|---|---|
private RelNode |
ConventionTraitDef.changeConvention(RelNode rel,
Convention source,
Convention target,
com.google.common.collect.Multimap<Pair<Convention,Convention>,ConverterRule> mapArcToConverterRule)
Tries to convert a relational expression to the target convention of an
arc.
|
static RelNode |
RelOptUtil.createProject(RelNode child,
List<Pair<RexNode,String>> projectList,
boolean optimize)
Creates a relational expression which projects a list of (expression, name)
pairs.
|
protected MutableRel |
SubstitutionVisitor.FilterToProjectUnifyRule.invert(List<Pair<RexNode,String>> namedProjects,
MutableRel input,
RexShuttle shuttle) |
static DataContext |
VisitorDataContext.of(RelDataType rowType,
List<Pair<RexInputRef,RexNode>> usageList) |
| Modifier and Type | Field and Description |
|---|---|
private Map<Pair<String,RelDataType>,RelNode> |
VolcanoPlanner.mapDigestToRel
Canonical map from
digest to the unique
relational expression with that digest. |
| Modifier and Type | Method and Description |
|---|---|
private static Pair<String,RelDataType> |
VolcanoPlanner.key(RelNode rel)
Computes the key for
VolcanoPlanner.mapDigestToRel. |
| Modifier and Type | Method and Description |
|---|---|
Pair<SqlNode,RelDataType> |
PlannerImpl.validateAndGetType(SqlNode sqlNode) |
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Predicate<Pair<ProfilerImpl.Space,Profiler.Column>> |
ProfilerImpl.predicate
Whether a successor is considered interesting enough to analyze.
|
(package private) com.google.common.base.Predicate<Pair<ProfilerImpl.Space,Profiler.Column>> |
ProfilerImpl.Builder.predicate |
| Constructor and Description |
|---|
ProfilerImpl(int combinationsPerPass,
int interestingCount,
com.google.common.base.Predicate<Pair<ProfilerImpl.Space,Profiler.Column>> predicate)
Creates a
ProfilerImpl. |
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableList<Pair<Integer,String>> |
RelRoot.fields |
| Modifier and Type | Method and Description |
|---|---|
void |
RelWriter.explain(RelNode rel,
List<Pair<String,Object>> valueList)
Prints an explanation of a node, with a list of (term, value) pairs.
|
| Constructor and Description |
|---|
RelRoot(RelNode rel,
RelDataType validatedRowType,
SqlKind kind,
List<Pair<Integer,String>> fields,
RelCollation collation)
Creates a RelRoot.
|
| Modifier and Type | Method and Description |
|---|---|
List<Pair<AggregateCall,String>> |
Aggregate.getNamedAggCalls()
Returns a list of calls to aggregate functions together with their output
field names.
|
List<Pair<RexNode,String>> |
Project.getNamedProjects()
Returns a list of (expression, name) pairs.
|
| Modifier and Type | Field and Description |
|---|---|
private List<Pair<String,Object>> |
RelJsonWriter.values |
private List<Pair<String,Object>> |
RelWriterImpl.values |
| Modifier and Type | Method and Description |
|---|---|
protected void |
RelXmlWriter.explain_(RelNode rel,
List<Pair<String,Object>> values) |
protected void |
RelJsonWriter.explain_(RelNode rel,
List<Pair<String,Object>> values) |
protected void |
RelWriterImpl.explain_(RelNode rel,
List<Pair<String,Object>> values) |
void |
RelJsonWriter.explain(RelNode rel,
List<Pair<String,Object>> valueList) |
void |
RelWriterImpl.explain(RelNode rel,
List<Pair<String,Object>> valueList) |
private void |
RelXmlWriter.explainGeneric(RelNode rel,
List<Pair<String,Object>> values)
Generates generic XML (sometimes called 'element-oriented XML').
|
private void |
RelXmlWriter.explainSpecific(RelNode rel,
List<Pair<String,Object>> values)
Generates specific XML (sometimes called 'attribute-oriented XML').
|
private List<Object> |
RelJsonWriter.getList(List<Pair<String,Object>> values,
String tag) |
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.cache.LoadingCache<Pair<Class<RelNode>,Class<Metadata>>,UnboundMetadata<Metadata>> |
MetadataFactoryImpl.cache |
(package private) Map<Pair<Class<RelNode>,Method>,Method> |
ReflectiveRelMetadataProvider.Space.handlerMap |
| Modifier and Type | Method and Description |
|---|---|
private static Pair<ImmutableBitSet,ImmutableBitSet> |
RelMdColumnUniqueness.splitLeftAndRightColumns(int leftCount,
ImmutableBitSet columns)
Splits a column set between left and right sets.
|
| Modifier and Type | Method and Description |
|---|---|
private static com.google.common.cache.CacheLoader<Pair<Class<RelNode>,Class<Metadata>>,UnboundMetadata<Metadata>> |
MetadataFactoryImpl.loader(RelMetadataProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
private static String |
JaninoRelMetadataProvider.findProvider(List<Pair<String,MetadataHandler>> providerList,
Class<?> declaringClass) |
| Modifier and Type | Method and Description |
|---|---|
List<Pair<RexNode,String>> |
MutableProject.getNamedProjects()
Returns a list of (expression, name) pairs.
|
| Modifier and Type | Field and Description |
|---|---|
private Map<Pair<String,String>,RexNode> |
ReduceDecimalsRule.DecimalShuttle.irreducible |
private Map<Pair<String,String>,RexNode> |
ReduceDecimalsRule.DecimalShuttle.results |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Pair<RelNode,RelNode> |
AbstractMaterializedViewRule.pushFilterToOriginalViewPlan(RelBuilder builder,
RelNode topViewProject,
RelNode viewNode,
RexNode cond)
Once we create a compensation predicate, this method is responsible for pushing
the resulting filter through the view nodes.
|
Pair<RelNode,RelNode> |
AbstractMaterializedViewRule.MaterializedViewJoinRule.pushFilterToOriginalViewPlan(RelBuilder builder,
RelNode topViewProject,
RelNode viewNode,
RexNode cond) |
Pair<RelNode,RelNode> |
AbstractMaterializedViewRule.MaterializedViewAggregateRule.pushFilterToOriginalViewPlan(RelBuilder builder,
RelNode topViewProject,
RelNode viewNode,
RexNode cond) |
| Modifier and Type | Method and Description |
|---|---|
private static int |
AggregateStarTableRule.find(com.google.common.collect.ImmutableList<Lattice.Measure> measures,
Pair<SqlAggFunction,List<Integer>> seek) |
| Modifier and Type | Method and Description |
|---|---|
private void |
JoinToMultiJoinRule.combineOuterJoins(Join joinRel,
List<RelNode> combinedInputs,
RelNode left,
RelNode right,
List<Pair<JoinRelType,RexNode>> joinSpecs)
Combines the outer join conditions and join types from the left and right
join inputs.
|
private RelBuilder |
AggregateExpandDistinctAggregatesRule.convertSingletonDistinct(RelBuilder relBuilder,
Aggregate aggregate,
Set<Pair<List<Integer>,Integer>> argLists)
Converts an aggregate with one distinct aggregate and one or more
non-distinct aggregates to multi-phase aggregates (see reference example
below).
|
private void |
JoinToMultiJoinRule.copyOuterJoinInfo(MultiJoin multiJoin,
List<Pair<JoinRelType,RexNode>> destJoinSpecs,
int adjustmentAmount,
List<RelDataTypeField> srcFields,
List<RelDataTypeField> destFields)
Copies outer join data from a source MultiJoin to a new set of arrays.
|
protected void |
JoinProjectTransposeRule.createProjectExprs(Project projRel,
RelNode joinChild,
int adjustmentAmount,
RexBuilder rexBuilder,
List<RelDataTypeField> joinChildrenFields,
List<Pair<RexNode,String>> projects)
Creates projection expressions corresponding to one of the inputs into
the join
|
| Modifier and Type | Method and Description |
|---|---|
(package private) Pair<RelDataTypeField,Boolean> |
RelDataTypeHolder.getFieldOrInsert(String fieldName,
boolean caseSensitive)
Get field if exists, otherwise inserts a new field.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RexFieldCollation
Expression combined with sort flags (DESCENDING, NULLS LAST).
|
| Modifier and Type | Field and Description |
|---|---|
private Map<Pair<String,String>,RexLocalRef> |
RexProgramBuilder.exprMap |
| Modifier and Type | Method and Description |
|---|---|
static Pair<String,String> |
RexUtil.makeKey(RexNode expr)
Creates a key for
RexNode which is the same as another key of
another RexNode only if the two have both the same type and textual
representation. |
static Pair<RexNode,String> |
RexInputRef.of2(int index,
List<RelDataTypeField> fields)
Creates a reference to a given field in a list of fields.
|
Pair<com.google.common.collect.ImmutableList<RexNode>,com.google.common.collect.ImmutableList<RexNode>> |
RexProgram.split()
Splits this program into a list of project expressions and a list of
filter expressions.
|
| Modifier and Type | Method and Description |
|---|---|
private static List<Pair<RexNode,RexNode>> |
RexSimplify.casePairs(RexBuilder rexBuilder,
List<RexNode> operands)
Given "CASE WHEN p1 THEN v1 ...
|
List<Pair<RexLocalRef,String>> |
RexProgram.getNamedProjects()
Returns a list of project expressions and their field names.
|
| Modifier and Type | Method and Description |
|---|---|
private static <C extends Comparable<C>> |
RexSimplify.processRange(RexBuilder rexBuilder,
List<RexNode> terms,
Map<String,Pair<com.google.common.collect.Range<C>,List<RexNode>>> rangeTerms,
RexNode term,
RexNode ref,
C v0,
SqlKind comparison) |
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.collect.ImmutableList<Pair<String,Schema>> |
Schemas.PathImpl.pairs |
| Modifier and Type | Method and Description |
|---|---|
Pair<String,Schema> |
Schemas.PathImpl.get(int index) |
| Modifier and Type | Method and Description |
|---|---|
List<Pair<RelDataTypeField,List<String>>> |
CustomColumnResolvingTable.resolveColumn(RelDataType rowType,
RelDataTypeFactory typeFactory,
List<String> names)
Resolve a column based on the name components.
|
| Modifier and Type | Method and Description |
|---|---|
static Schemas.PathImpl |
Schemas.path(com.google.common.collect.ImmutableList<Pair<String,Schema>> build) |
| Constructor and Description |
|---|
PathImpl(com.google.common.collect.ImmutableList<Pair<String,Schema>> pairs) |
| Modifier and Type | Method and Description |
|---|---|
private Pair<RelDataType,RelDataType> |
SqlMapValueConstructor.getComponentTypes(RelDataTypeFactory typeFactory,
List<RelDataType> argTypes) |
| Modifier and Type | Method and Description |
|---|---|
static List<Pair<SqlNode,AuxiliaryConverter>> |
SqlStdOperatorTable.convertGroupToAuxiliaryCalls(SqlCall call)
Converts a call to a grouped window function to a call to its auxiliary
window function(s).
|
| Modifier and Type | Class and Description |
|---|---|
private static class |
ReflectiveSqlOperatorTable.Key
Key for looking up operators.
|
| Modifier and Type | Field and Description |
|---|---|
private List<Pair<SqlNode,SqlMonotonicity>> |
IdentifierNamespace.monotonicExprs
List of monotonic expressions.
|
| Modifier and Type | Method and Description |
|---|---|
Pair<String,SqlValidatorNamespace> |
ListScope.findQualifyingTableName(String columnName,
SqlNode ctx) |
Pair<String,SqlValidatorNamespace> |
SqlValidatorScope.findQualifyingTableName(String columnName,
SqlNode ctx)
|
Pair<String,SqlValidatorNamespace> |
EmptyScope.findQualifyingTableName(String columnName,
SqlNode ctx) |
Pair<String,SqlValidatorNamespace> |
DelegatingScope.findQualifyingTableName(String columnName,
SqlNode ctx) |
private Pair<String,String> |
SqlValidatorImpl.findTableColumnPair(SqlIdentifier identifier,
SqlValidatorScope scope) |
private Pair<com.google.common.collect.ImmutableList<SqlNode>,com.google.common.collect.ImmutableList<SqlNode>> |
AggregatingSelectScope.getGroupExprs()
Returns the expressions that are in the GROUP BY clause (or the SELECT
DISTINCT clause, if distinct) and that can therefore be referenced
without being wrapped in aggregate functions.
|
protected static Pair<SqlIdentifier,SqlNodeList> |
IdentifierNamespace.split(SqlNode node) |
| Modifier and Type | Method and Description |
|---|---|
List<Pair<SqlNode,SqlMonotonicity>> |
AbstractNamespace.getMonotonicExprs() |
List<Pair<SqlNode,SqlMonotonicity>> |
DelegatingNamespace.getMonotonicExprs() |
List<Pair<SqlNode,SqlMonotonicity>> |
SqlValidatorNamespace.getMonotonicExprs()
Returns a list of expressions which are monotonic in this namespace.
|
List<Pair<SqlNode,SqlMonotonicity>> |
IdentifierNamespace.getMonotonicExprs() |
private static List<Pair<SqlIdentifier,SqlDataTypeSpec>> |
SqlValidatorUtil.pairs(SqlNodeList extendedColumns)
Converts a list of extended columns
(of the form [name0, type0, name1, type1, ...])
into a list of (name, type) pairs.
|
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RelFieldTrimmer.TrimResult
Result of an attempt to trim columns from a relational expression.
|
| Modifier and Type | Field and Description |
|---|---|
private List<Pair<RexNode,String>> |
SqlToRelConverter.AggConverter.convertedInputExprs
Input expressions for the group columns and aggregates, in
RexNode format. |
private List<Pair<RelNode,Integer>> |
SqlToRelConverter.LookupContext.relOffsetList |
| Modifier and Type | Method and Description |
|---|---|
private Pair<RexNode,RexNode> |
StandardConvertletTable.convertOverlapsOperand(SqlRexContext cx,
SqlParserPos pos,
SqlNode operand) |
(package private) Pair<RelNode,Integer> |
SqlToRelConverter.LookupContext.findRel(int offset)
Returns the relational expression with a given offset, and the
ordinal in the combined row of its first field.
|
(package private) Pair<RexNode,Map<String,Integer>> |
SqlToRelConverter.Blackboard.lookupExp(SqlQualified qualified)
Returns an expression with which to reference a from-list item.
|
| Modifier and Type | Method and Description |
|---|---|
List<Pair<RexNode,String>> |
SqlToRelConverter.AggConverter.getPreExprs() |
| Modifier and Type | Method and Description |
|---|---|
private RelNode |
RelDecorrelator.createProjectWithAdditionalExprs(RelNode input,
List<Pair<RexNode,String>> additionalExprs)
Projects all
input output fields plus the additional expressions. |
void |
SqlToRelConverter.Blackboard.flatten(List<RelNode> rels,
int systemFieldCount,
int[] start,
List<Pair<RelNode,Integer>> relOffsetList) |
private void |
RelStructuredTypeFlattener.flattenInputs(List<RelDataTypeField> fieldList,
RexNode prefix,
List<Pair<RexNode,String>> flattenedExpList)
Generates expressions that reference the flattened input fields from
a given row type.
|
private void |
RelStructuredTypeFlattener.flattenNullLiteral(RelDataType type,
List<Pair<RexNode,String>> flattenedExps) |
private void |
RelStructuredTypeFlattener.flattenProjection(RelStructuredTypeFlattener.RewriteRexShuttle shuttle,
RexNode exp,
String fieldName,
List<Pair<RexNode,String>> flattenedExps) |
private void |
RelStructuredTypeFlattener.flattenProjections(RelStructuredTypeFlattener.RewriteRexShuttle shuttle,
List<? extends RexNode> exps,
List<String> fieldNames,
String prefix,
List<Pair<RexNode,String>> flattenedExps) |
| Modifier and Type | Class and Description |
|---|---|
private static class |
RelBuilder.Field
A field that belongs to a stack
RelBuilder.Frame. |
| Modifier and Type | Method and Description |
|---|---|
Pair<SqlNode,RelDataType> |
Planner.validateAndGetType(SqlNode sqlNode)
Validates a SQL statement.
|
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Pair<K,V> |
Pair.of(Map.Entry<K,V> entry)
Creates a
Pair from a Map.Entry. |
static <T1,T2> Pair<T1,T2> |
Pair.of(T1 left,
T2 right)
Creates a Pair of appropriate type.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterable<Pair<T,T>> |
Pair.adjacents(Iterable<T> iterable)
Returns an iterator that iterates over (i, i + 1) pairs in an iterable.
|
static <T> Iterable<Pair<T,T>> |
Pair.firstAnd(Iterable<T> iterable)
Returns an iterator that iterates over (0, i) pairs in an iterable for
i > 0.
|
static <K,V> Iterable<Pair<K,V>> |
Pair.zip(Iterable<? extends K> ks,
Iterable<? extends V> vs)
Converts two iterables into an iterable of
Pairs. |
static <K,V> List<Pair<K,V>> |
Pair.zip(K[] ks,
V[] vs)
Converts two arrays into a list of
Pairs. |
static <K,V> List<Pair<K,V>> |
Pair.zip(List<K> ks,
List<V> vs)
Converts two lists into a list of
Pairs,
whose length is the lesser of the lengths of the
source lists. |
static <K,V> List<Pair<K,V>> |
Pair.zip(List<K> ks,
List<V> vs,
boolean strict)
Converts two lists into a list of
Pairs. |
| Modifier and Type | Method and Description |
|---|---|
int |
Pair.compareTo(Pair<T1,T2> that) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
Pair.toMap(Iterable<Pair<K,V>> pairs)
Converts a collection of Pairs into a Map.
|
| Modifier and Type | Field and Description |
|---|---|
private Map<Pair<V,V>,List<V>> |
Graphs.FrozenGraph.shortestPaths |
| Constructor and Description |
|---|
FrozenGraph(DefaultDirectedGraph<V,E> graph,
Map<Pair<V,V>,List<V>> shortestPaths)
Creates a frozen graph as a copy of another graph.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.