Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/apache/calcite
/ functions
Functions
34,750 in github.com/apache/calcite
⨍
Functions
34,750
◇
Types & classes
4,695
↓ 168 callers
Method
getGroupSet
Returns a bit set of the grouping fields. @return bit set of ordinals of grouping fields
core/src/main/java/org/apache/calcite/rel/core/Aggregate.java:322
↓ 168 callers
Method
isWithin
Returns whether this scope is enclosed within {@code scope2} in such a way that it can see the contents of {@code scope2}.
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorScope.java:233
↓ 168 callers
Method
sql
Changes the SQL.
testkit/src/main/java/org/apache/calcite/sql/parser/SqlParserFixture.java:119
↓ 168 callers
Method
vInt
Creates {@code nullable int variable} with index of 0. If you need several distinct variables, use {@link #vInt(int)}. The resulting node would look l
core/src/test/java/org/apache/calcite/rex/RexProgramBuilderBase.java:626
↓ 166 callers
Method
hashCode
See <a href="#EqualsHashCodeNote">note about equals() and hashCode()</a>.
core/src/main/java/org/apache/calcite/plan/RelTrait.java:53
↓ 166 callers
Method
startsWith
Returns whether the current line starts with {@code prefix}.
core/src/main/java/org/apache/calcite/util/Puffin.java:164
↓ 165 callers
Method
createStatement
(ConnectionHandle ch)
core/src/main/java/org/apache/calcite/jdbc/CalciteMetaImpl.java:238
↓ 165 callers
Method
next
()
core/src/test/java/org/apache/calcite/test/concurrent/ConcurrentTestTimedCommandGenerator.java:125
↓ 163 callers
Method
aggregate
Applies an accumulator function over a sequence.
linq4j/src/main/java/org/apache/calcite/linq4j/QueryableFactory.java:54
↓ 161 callers
Method
withOperandFor
Defines an operand tree for the given classes.
core/src/main/java/org/apache/calcite/rel/rules/SemiJoinRule.java:287
↓ 158 callers
Method
getConvention
Return the CallingConvention trait from this RelNode's {@link #getTraitSet() trait set}. @return this RelNode's CallingConvention
core/src/main/java/org/apache/calcite/rel/RelNode.java:93
↓ 157 callers
Method
enumerator
Returns an enumerator that iterates through a collection.
linq4j/src/main/java/org/apache/calcite/linq4j/RawEnumerable.java:39
↓ 156 callers
Method
ok
()
testkit/src/main/java/org/apache/calcite/test/SqlToRelFixture.java:93
↓ 156 callers
Method
withExpand
Sets {@link #isExpand()}. <p>Expansion is deprecated. We recommend that you do not call this method, and use the default value of {@link #isExpand()}
core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java:6676
↓ 154 callers
Method
withRelBuilderFactory
Sets {@link #relBuilderFactory()}.
core/src/main/java/org/apache/calcite/plan/RelRule.java:155
↓ 153 callers
Method
checkUnchanged
Checks that the plan is the same before and after executing a given planner. Useful for checking circumstances where rules should not fire.
testkit/src/main/java/org/apache/calcite/test/RelOptFixture.java:337
↓ 151 callers
Method
returnsCount
(int expectedCount)
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:1546
↓ 151 callers
Method
size
Returns the number of elements in a data set. (Some representations return the capacity, which may be slightly larger than the actual size.)
core/src/main/java/org/apache/calcite/adapter/clone/ArrayTable.java:256
↓ 150 callers
Method
toString
Converts a list of expressions to Java source code, optionally emitting extra type information in generics.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java:60
↓ 149 callers
Method
charAt
(int index)
testkit/src/main/java/org/apache/calcite/util/TestUtil.java:462
↓ 149 callers
Method
hr
Short-hand for {@code CalciteAssert.that().with(Config.REGULAR)}.
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:252
↓ 148 callers
Method
getAggCallList
Returns a list of calls to aggregate functions. @return list of calls to aggregate functions
core/src/main/java/org/apache/calcite/rel/core/Aggregate.java:270
↓ 148 callers
Method
isEmpty
(RelNode node)
core/src/main/java/org/apache/calcite/rel/rules/PruneEmptyRules.java:137
↓ 146 callers
Method
getString
Returns a {@code string} value. Throws if wrong type, returns null if not present.
core/src/main/java/org/apache/calcite/rel/RelInput.java:71
↓ 145 callers
Method
doubleValue
(DoubleProp p)
core/src/main/java/org/apache/calcite/runtime/Resources.java:806
↓ 145 callers
Method
get
(@Nullable Object o)
linq4j/src/main/java/org/apache/calcite/linq4j/tree/PseudoField.java:34
↓ 145 callers
Method
toRel
Converts this table into a {@link RelNode relational expression}. <p>The {@link org.apache.calcite.plan.RelOptPlanner planner} calls this method to c
core/src/main/java/org/apache/calcite/plan/RelOptTable.java:78
↓ 143 callers
Method
getValue
()
core/src/main/java/org/apache/calcite/util/Pair.java:131
↓ 143 callers
Method
runs
()
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:1608
↓ 143 callers
Method
withSql
(String sql)
core/src/test/java/org/apache/calcite/sql/test/SqlAdvisorTest.java:1543
↓ 142 callers
Method
vBool
Creates {@code nullable boolean variable} with index of 0. If you need several distinct variables, use {@link #vBool(int)} @return nullable boolean v
core/src/test/java/org/apache/calcite/rex/RexProgramBuilderBase.java:582
↓ 141 callers
Method
newValidationError
Adds "line x, column y" context to a validator exception. <p>Note that the input exception is checked (it derives from {@link Exception}) and the out
core/src/main/java/org/apache/calcite/sql/validate/SqlValidator.java:377
↓ 140 callers
Method
getType
Returns the representation type.
core/src/main/java/org/apache/calcite/adapter/clone/ArrayTable.java:240
↓ 139 callers
Method
assertThatAreColumnsUnique
Checks {@link RelMetadataQuery#areColumnsUnique(RelNode, ImmutableBitSet)}.
testkit/src/main/java/org/apache/calcite/test/RelMetadataFixture.java:513
↓ 139 callers
Method
getThis
Derived classes might wish to override this method to return the "outer" enumerable.
linq4j/src/main/java/org/apache/calcite/linq4j/DefaultEnumerable.java:64
↓ 137 callers
Method
withPreRule
(RelOptRule... rules)
testkit/src/main/java/org/apache/calcite/test/RelOptFixture.java:198
↓ 136 callers
Method
apply
()
linq4j/src/main/java/org/apache/calcite/linq4j/function/Function0.java:25
↓ 136 callers
Method
family
Creates a checker that passes if each operand is a member of a corresponding family.
core/src/main/java/org/apache/calcite/sql/type/OperandTypes.java:94
↓ 136 callers
Method
getArgList
Returns the ordinals of the arguments to this call. <p>The list is immutable. @return list of argument ordinals
core/src/main/java/org/apache/calcite/rel/core/AggregateCall.java:415
↓ 136 callers
Method
getCondition
()
core/src/main/java/org/apache/calcite/rel/core/Join.java:143
↓ 135 callers
Method
of
(String sql)
testkit/src/main/java/org/apache/calcite/test/RelSupplier.java:50
↓ 134 callers
Method
isStruct
Queries whether this is a structured type. @return whether this type has fields; examples include rows and user-defined structured types in SQL, and
core/src/main/java/org/apache/calcite/rel/type/RelDataType.java:53
↓ 132 callers
Method
item
Adds an attribute to the explanation of the current node. @param term Term for attribute, e.g. "joinType" @param value Attribute value
core/src/main/java/org/apache/calcite/rel/RelWriter.java:66
↓ 132 callers
Method
next
()
core/src/main/java/org/apache/calcite/util/Util.java:1525
↓ 131 callers
Method
list
Writes a list.
core/src/main/java/org/apache/calcite/sql/SqlWriter.java:489
↓ 131 callers
Method
withOperatorTable
Returns a fixture that uses a given operator table.
testkit/src/main/java/org/apache/calcite/sql/test/SqlOperatorFixture.java:198
↓ 130 callers
Method
getAggregation
Returns the aggregate function. @return aggregate function
core/src/main/java/org/apache/calcite/rel/core/AggregateCall.java:387
↓ 130 callers
Method
getJoinType
()
core/src/main/java/org/apache/calcite/rel/core/Join.java:147
↓ 130 callers
Method
sql
Creates a fixture with a given query.
core/src/test/java/org/apache/calcite/test/MaterializedViewSubstitutionVisitorTest.java:103
↓ 129 callers
Method
getTypeFactory
Returns the type factory.
core/src/main/java/org/apache/calcite/tools/Planner.java:107
↓ 128 callers
Method
traitSetOf
@deprecated For {@code traitSetOf(t1, t2)}, use {@link #traitSet}().replace(t1).replace(t2).
core/src/main/java/org/apache/calcite/plan/RelOptCluster.java:262
↓ 127 callers
Method
createSqlType
(SqlTypeName typeName)
core/src/main/java/org/apache/calcite/sql/type/SqlTypeFactoryImpl.java:52
↓ 127 callers
Method
getTable
If this relational expression represents an access to a table, returns that table, otherwise returns null. @return If this relational expression repr
core/src/main/java/org/apache/calcite/rel/RelNode.java:328
↓ 127 callers
Method
of
Creates a reference to a given field in a row type.
core/src/main/java/org/apache/calcite/rex/RexInputRef.java:87
↓ 127 callers
Method
range
Creates an ImmutableBitSet with bits from {@code fromIndex} (inclusive) to specified {@code toIndex} (exclusive) set to {@code true}. <p>For example,
core/src/main/java/org/apache/calcite/util/ImmutableBitSet.java:251
↓ 127 callers
Method
transform
Transforms a list, applying a function to each element.
core/src/main/java/org/apache/calcite/util/Util.java:2749
↓ 125 callers
Method
getRexBuilder
()
core/src/main/java/org/apache/calcite/rel/metadata/BuiltInMetadata.java:912
↓ 124 callers
Method
andThen
Returns a return-type inference that applies this rule then a transform.
core/src/main/java/org/apache/calcite/sql/type/SqlReturnTypeInference.java:52
↓ 123 callers
Method
createBuilder
Creates a RelBuilder with default config.
core/src/test/java/org/apache/calcite/test/RelBuilderTest.java:222
↓ 123 callers
Method
entrySet
()
core/src/main/java/org/apache/calcite/util/Util.java:2579
↓ 123 callers
Method
withDescription
Sets {@link #description()}.
core/src/main/java/org/apache/calcite/plan/RelRule.java:162
↓ 122 callers
Method
endList
Ends a list. @param frame The frame which was created by {@link #startList}.
core/src/main/java/org/apache/calcite/sql/SqlWriter.java:483
↓ 122 callers
Method
getKind
()
core/src/main/java/org/apache/calcite/sql/fun/SqlCase.java:97
↓ 122 callers
Method
isNull
(RexNode node)
core/src/test/java/org/apache/calcite/rex/RexProgramBuilderBase.java:170
↓ 121 callers
Method
plus
Adds another cost to this. @param cost another cost @return sum of this and other cost
core/src/main/java/org/apache/calcite/plan/RelOptCost.java:92
↓ 121 callers
Method
values
Creates a {@link Values}. <p>The {@code values} array must have the same number of entries as {@code fieldNames}, or an integer multiple if you wish
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:3540
↓ 120 callers
Method
ex
()
core/src/main/java/org/apache/calcite/runtime/Resources.java:604
↓ 120 callers
Method
model
Short-hand for {@code CalciteAssert.that().with(Config.EMPTY).withModel(model)}.
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:247
↓ 120 callers
Method
not
(RexNode node)
core/src/test/java/org/apache/calcite/rex/RexProgramBuilderBase.java:214
↓ 120 callers
Method
wholeExpr
(String s)
core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java:2910
↓ 119 callers
Method
getOperandType
(int ordinal)
core/src/main/java/org/apache/calcite/sql/SqlCallBinding.java:362
↓ 119 callers
Method
getPlanner
Creates a planner. @param config Planner configuration @return Planner
core/src/main/java/org/apache/calcite/tools/Frameworks.java:77
↓ 119 callers
Method
getRowType
Returns the SQL row type.
core/src/main/java/org/apache/calcite/adapter/enumerable/PhysType.java:64
↓ 119 callers
Method
keySet
()
core/src/main/java/org/apache/calcite/util/CompositeMap.java:123
↓ 119 callers
Method
return_
Creates a GotoExpression representing a return statement.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java:2545
↓ 119 callers
Method
sort
Returns a copy of this AggCall that sorts its input values by {@code orderKeys} before aggregating, as in SQL's {@code WITHIN GROUP} clause.
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:4343
↓ 118 callers
Method
newValidationError
(SqlNode node, Resources.ExInst<SqlValidatorException> e)
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:6372
↓ 118 callers
Method
new_
Creates a NewExpression that represents calling the specified constructor that takes no arguments.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java:1938
↓ 117 callers
Method
length
Returns the "logical size" of this {@code ImmutableBitSet}: the index of the highest set bit in the {@code ImmutableBitSet} plus one. Returns zero if
core/src/main/java/org/apache/calcite/util/ImmutableBitSet.java:848
↓ 116 callers
Function
apiv
bom/build.gradle.kts:29
↓ 116 callers
Method
equals
Creates an {@code =}.
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:1127
↓ 116 callers
Method
intValue
(IntProp p)
core/src/main/java/org/apache/calcite/runtime/Resources.java:800
↓ 116 callers
Method
oneInput
Indicates that this operand has a single input.
core/src/main/java/org/apache/calcite/plan/RelRule.java:214
↓ 116 callers
Method
push
(Pattern item)
core/src/main/java/org/apache/calcite/runtime/Pattern.java:77
↓ 116 callers
Method
startList
Starts a list.
core/src/main/java/org/apache/calcite/sql/SqlWriter.java:454
↓ 114 callers
Method
getFieldCollations
Returns the ordinals and directions of the columns in this ordering.
core/src/main/java/org/apache/calcite/rel/RelCollation.java:36
↓ 113 callers
Method
limit
Creates a limit and/or offset without a sort. @param offset Number of rows to skip; non-positive means don't skip any @param fetch Maximum number of
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:3712
↓ 113 callers
Method
operandCount
()
core/src/main/java/org/apache/calcite/sql/SqlCall.java:110
↓ 113 callers
Method
parse
Parses and validates a SQL statement. @param sql The SQL statement to parse. @return The root node of the SQL parse tree. @throws org.apache.calcite.
core/src/main/java/org/apache/calcite/tools/Planner.java:49
↓ 113 callers
Method
select
Projects each element of a sequence into a new form.
linq4j/src/main/java/org/apache/calcite/linq4j/QueryableFactory.java:572
↓ 113 callers
Method
toBlock
Returns a block consisting of the current list of statements.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/BlockBuilder.java:334
↓ 112 callers
Method
statement
Creates a statement that executes an expression.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java:3018
↓ 111 callers
Method
compile
Compiles an expression to an executable form.
core/src/main/java/org/apache/calcite/interpreter/Compiler.java:36
↓ 111 callers
Method
getValueAs
Returns the value of this literal as a given Java type. <p>Which type you may ask for depends on {@link #typeName}. You may always ask for the type w
core/src/main/java/org/apache/calcite/sql/SqlLiteral.java:300
↓ 111 callers
Method
isSingle
(double delta, String value)
testkit/src/main/java/org/apache/calcite/sql/test/ResultCheckers.java:80
↓ 111 callers
Method
last
Returns the last element of a list. @throws java.lang.IndexOutOfBoundsException if the list is empty
core/src/main/java/org/apache/calcite/util/Util.java:2198
↓ 110 callers
Method
makeFieldAccess
Creates an expression accessing a given named field from a record. <p>NOTE: Be careful choosing the value of {@code caseSensitive}. If the field name
core/src/main/java/org/apache/calcite/rex/RexBuilder.java:204
↓ 110 callers
Method
matcher
(String regex)
core/src/main/java/org/apache/calcite/util/Puffin.java:175
↓ 110 callers
Method
throws_
(String errorMessage)
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:11936
↓ 109 callers
Method
discard
Does nothing with its argument. Call this method when you have a value you are not interested in, but you don't want the compiler to warn that you are
core/src/main/java/org/apache/calcite/util/Util.java:225
← previous
next →
201–300 of 34,750, ranked by callers