Code
Hub
Workspaces
Following
Digest
Agents
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
↓ 5,940 callers
Method
is
Returns whether a given type is primitive.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Primitive.java:175
↓ 3,406 callers
Method
get
(String tag)
core/src/main/java/org/apache/calcite/rel/RelInput.java:65
↓ 3,082 callers
Method
sql
Sets the SQL statement for a test.
core/src/test/java/org/apache/calcite/test/HepPlannerTest.java:114
↓ 2,397 callers
Method
build
Creates a {@code TimeFrameSet}.
core/src/main/java/org/apache/calcite/rel/type/TimeFrameSet.java:293
↓ 2,182 callers
Method
add
Adds a predicate and action to be invoked on each line of a source.
core/src/main/java/org/apache/calcite/util/Puffin.java:98
↓ 2,001 callers
Method
append
Returns a source whose path concatenates this with a child. <p>For example, <ul> <li>source("/foo").append(source("bar")) returns source("/foo/ba
core/src/main/java/org/apache/calcite/util/Source.java:61
↓ 1,995 callers
Method
ok
()
core/src/test/java/org/apache/calcite/test/MaterializedViewFixture.java:55
↓ 1,959 callers
Method
fails
Checks that the expression is valid in the parser but invalid (with the given error message) in the validator.
testkit/src/main/java/org/apache/calcite/test/IntervalTest.java:1945
↓ 1,748 callers
Method
checkScalar
(String expression, TypeChecker typeChecker, ResultChecker resultChecker)
testkit/src/main/java/org/apache/calcite/sql/test/SqlOperatorFixture.java:211
↓ 1,735 callers
Method
size
Returns the number of elements in the mapping.
core/src/main/java/org/apache/calcite/util/mapping/Mapping.java:80
↓ 1,568 callers
Method
equals
See <a href="#EqualsHashCodeNote">note about equals() and hashCode()</a>.
core/src/main/java/org/apache/calcite/plan/RelTrait.java:58
↓ 1,322 callers
Method
query
Returns a metadata interface to get a particular kind of metadata from a particular relational expression. Returns null if that kind of metadata is no
core/src/main/java/org/apache/calcite/rel/metadata/MetadataFactory.java:45
↓ 1,282 callers
Method
ok
(String expected)
testkit/src/main/java/org/apache/calcite/sql/parser/SqlParserFixture.java:78
↓ 1,138 callers
Method
add
Adds a schema as a sub-schema of this schema, and returns the wrapped object.
core/src/main/java/org/apache/calcite/schema/SchemaPlus.java:72
↓ 1,109 callers
Method
ok
(String expectedQuery)
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:11931
↓ 1,060 callers
Method
literal
Prints a literal, exactly as provided. Does not attempt to indent or convert to upper or lower case. Does not add quotation marks. Adds preceding whit
core/src/main/java/org/apache/calcite/sql/SqlWriter.java:345
↓ 963 callers
Method
of
(String name, Function<RelDataTypeFactory, RelDataType> protoType, SqlTypeFamily family, boole
core/src/test/java/org/apache/calcite/test/RelBuilderTest.java:6002
↓ 960 callers
Method
add
Adds a pair to this list.
core/src/main/java/org/apache/calcite/runtime/PairList.java:94
↓ 931 callers
Method
columnType
Checks that the expression is valid in the parser and validator and has the given column type.
testkit/src/main/java/org/apache/calcite/test/IntervalTest.java:1949
↓ 907 callers
Method
getCluster
()
core/src/main/java/org/apache/calcite/rel/RelInput.java:40
↓ 868 callers
Method
put
(String name, V v)
core/src/main/java/org/apache/calcite/util/NameMap.java:69
↓ 864 callers
Method
check
(RexBuilder rexBuilder, RexExecutorImpl executor)
core/src/test/java/org/apache/calcite/rex/RexExecutorTest.java:402
↓ 859 callers
Method
toString
Returns a succinct name for this trait. The planner may use this String to describe the trait.
core/src/main/java/org/apache/calcite/plan/RelTrait.java:83
↓ 852 callers
Method
expr
(String sql)
testkit/src/main/java/org/apache/calcite/sql/parser/SqlParserTest.java:652
↓ 851 callers
Method
expr
(String s)
core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java:2906
↓ 837 callers
Method
sql
(String sql)
testkit/src/main/java/org/apache/calcite/sql/parser/SqlParserTest.java:648
↓ 834 callers
Method
field
Returns the physical type of a field.
core/src/main/java/org/apache/calcite/adapter/enumerable/PhysType.java:58
↓ 830 callers
Method
operand
Starts building an operand by specifying its class. Call further methods on the returned {@link OperandDetailBuilder} to complete the operand.
core/src/main/java/org/apache/calcite/plan/RelRule.java:191
↓ 827 callers
Method
checkString
Tests that a scalar SQL expression returns the expected string result. For example, <blockquote> <pre>checkScalarExact("'ab' || 'c'", "abc");</pre> <
testkit/src/main/java/org/apache/calcite/sql/test/SqlOperatorFixture.java:331
↓ 791 callers
Method
checkNull
Tests that a SQL expression returns the SQL NULL value. For example, <blockquote> <pre>checkNull("CHAR_LENGTH(CAST(NULL AS VARCHAR(3))");</pre> </blo
testkit/src/main/java/org/apache/calcite/sql/test/SqlOperatorFixture.java:345
↓ 778 callers
Method
field
Creates a reference to a field by name. <p>Equivalent to {@code field(1, 0, fieldName)}. @param fieldName Field name
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:542
↓ 746 callers
Method
contains
Returns whether the current line starts with {@code seek}.
core/src/main/java/org/apache/calcite/util/Puffin.java:167
↓ 739 callers
Method
getRowType
Returns the type of the rows returned by this relational expression.
core/src/main/java/org/apache/calcite/rel/RelNode.java:116
↓ 726 callers
Method
withRule
(RelOptRule... rules)
testkit/src/main/java/org/apache/calcite/test/RelOptFixture.java:219
↓ 688 callers
Method
createSqlType
Creates a SQL type with no precision or scale. @param typeName Name of the type, for example {@link SqlTypeName#BOOLEAN}, never null @return canoni
core/src/main/java/org/apache/calcite/rel/type/RelDataTypeFactory.java:269
↓ 683 callers
Method
explainContains
(String expected)
piglet/src/test/java/org/apache/calcite/test/Fluent.java:51
↓ 683 callers
Method
makeCall
Creates a call with a list of arguments and a predetermined type.
core/src/main/java/org/apache/calcite/rex/RexBuilder.java:275
↓ 681 callers
Method
sql
Initiates a test case with a given SQL query.
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:146
↓ 677 callers
Method
checkBoolean
Tests that a scalar SQL expression returns the expected boolean result. For example, <blockquote> <pre>checkScalarExact("TRUE AND FALSE", Boolean.TRU
testkit/src/main/java/org/apache/calcite/sql/test/SqlOperatorFixture.java:315
↓ 669 callers
Method
getFieldList
Gets the fields in a struct type. The field count is equal to the size of the returned list. @return read-only list of fields
core/src/main/java/org/apache/calcite/rel/type/RelDataType.java:68
↓ 631 callers
Method
constant
Creates a ConstantExpression that has the Value property set to the specified value. <p>Does the right thing for null, String, primitive values (e.g.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java:544
↓ 627 callers
Method
getFieldCount
Returns the number of fields in a struct type. <p>This method is equivalent to <code>{@link #getFieldList}.size()</code>.
core/src/main/java/org/apache/calcite/rel/type/RelDataType.java:84
↓ 623 callers
Method
set
Sets the entry at position {@code index} to the pair {@code (t, u)}.
core/src/main/java/org/apache/calcite/runtime/PairList.java:118
↓ 607 callers
Method
with
(String property, Object value)
testkit/src/main/java/org/apache/calcite/test/ConnectionFactory.java:40
↓ 600 callers
Method
copyOf
Creates a PairList with one or more entries.
core/src/main/java/org/apache/calcite/runtime/PairList.java:58
↓ 597 callers
Method
getSqlTypeName
Gets the {@link SqlTypeName} of this type. @return SqlTypeName, never null
core/src/main/java/org/apache/calcite/rel/type/RelDataType.java:211
↓ 590 callers
Method
builder
Creates a builder.
core/src/main/java/org/apache/calcite/runtime/Pattern.java:35
↓ 588 callers
Method
that
Creates an instance of {@code CalciteAssert} with the empty configuration.
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:235
↓ 588 callers
Method
toCharUs
(String pattern, ZonedDateTime dateTime)
core/src/test/java/org/apache/calcite/util/format/postgresql/PostgresqlDateTimeFormatterTest.java:53
↓ 586 callers
Method
of
Creates an empty PairList.
core/src/main/java/org/apache/calcite/runtime/PairList.java:44
↓ 573 callers
Method
equalTo
(ArrowSet other)
core/src/main/java/org/apache/calcite/util/ArrowSet.java:255
↓ 570 callers
Method
checkFails
Tests that a scalar SQL expression fails at run time. @param expression SQL scalar expression @param expectedError Pattern for expected error. If
testkit/src/main/java/org/apache/calcite/sql/test/SqlOperatorFixture.java:540
↓ 565 callers
Method
returns
(final String out)
piglet/src/test/java/org/apache/calcite/test/Fluent.java:60
↓ 552 callers
Method
returnsUnordered
(String... lines)
piglet/src/test/java/org/apache/calcite/test/Fluent.java:68
↓ 534 callers
Method
asList
Returns a list backed by an array of primitive <code>int</code> values. <p>The behavior is analogous to {@link Arrays#asList(Object[])}. Changes to t
core/src/main/java/org/apache/calcite/util/IntList.java:60
↓ 530 callers
Method
of
Wraps an expression in a Predicate or returns null.
core/src/main/java/org/apache/calcite/rex/RexSimplify.java:3010
↓ 525 callers
Method
size
()
core/src/main/java/org/apache/calcite/sql/SqlSpecialOperator.java:98
↓ 523 callers
Method
fixture
Sub-classes should override to run tests in a different environment.
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java:378
↓ 521 callers
Method
accept
Accepts a visit from a shuttle. @param shuttle Shuttle @return A copy of this node incorporating changes made by the shuttle to this node's children
core/src/main/java/org/apache/calcite/rel/RelNode.java:410
↓ 514 callers
Method
get
Looks up an item in a map.
core/src/main/java/org/apache/calcite/sql/validate/SqlNameMatcher.java:49
↓ 513 callers
Method
call
Creates a MethodCallExpression that represents a call to a static method that has arguments.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java:352
↓ 508 callers
Method
project
Projects a given collection of fields from this input record, into a particular preferred output format. The output format is optimized if there are 0
core/src/main/java/org/apache/calcite/adapter/enumerable/PhysType.java:185
↓ 492 callers
Method
getIndex
Gets the ordinal of this field within its containing type. @return 0-based ordinal
core/src/main/java/org/apache/calcite/rel/type/RelDataTypeField.java:76
↓ 488 callers
Method
queryContains
Runs the query and applies a checker to the generated third-party queries. The checker should throw to fail the test if it does not see what it wants.
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:1816
↓ 481 callers
Method
of
Creates an ImmutableBitSet with no bits.
core/src/main/java/org/apache/calcite/util/ImmutableBitSet.java:111
↓ 477 callers
Method
getOperands
()
core/src/main/java/org/apache/calcite/rex/RexCall.java:269
↓ 445 callers
Method
scan
Returns an enumerator over the rows in this Table. Each row is represented as an array of its column values.
core/src/main/java/org/apache/calcite/schema/ScannableTable.java:31
↓ 435 callers
Method
withSql
(String sql)
testkit/src/main/java/org/apache/calcite/test/SqlValidatorFixture.java:125
↓ 423 callers
Method
getInput
Returns the <code>i</code><sup>th</sup> input relational expression. @param i Ordinal of input @return <code>i</code><sup>th</sup> input
core/src/main/java/org/apache/calcite/rel/RelNode.java:111
↓ 418 callers
Method
getName
The name of this function.
core/src/main/java/org/apache/calcite/schema/Member.java:53
↓ 416 callers
Method
fail
(@Nullable String message, @Nullable Object... args)
core/src/main/java/org/apache/calcite/util/Litmus.java:37
↓ 409 callers
Method
getInput
Returns the sole input relational expression. @return child relational expression
core/src/main/java/org/apache/calcite/rel/convert/Converter.java:76
↓ 404 callers
Method
put
(String schema, String table, int count, Object... keys)
core/src/main/java/org/apache/calcite/statistic/MapSqlStatisticProvider.java:147
↓ 403 callers
Method
getTraitSet
()
core/src/main/java/org/apache/calcite/rel/RelInput.java:42
↓ 401 callers
Method
hasTree
Creates a Matcher that matches a {@link RelNode} if its string representation, after converting Windows-style line endings ("\r\n") to Unix-style line
testkit/src/main/java/org/apache/calcite/test/Matchers.java:233
↓ 392 callers
Method
stream
Returns an enumerator over the rows in this Table. Each row is represented as an array of its column values.
core/src/main/java/org/apache/calcite/schema/StreamableTable.java:29
↓ 390 callers
Method
length
Returns the length (character count). @return the length of the sequence of characters currently represented by this object
core/src/main/java/org/apache/calcite/sql/util/SqlBuilder.java:77
↓ 389 callers
Method
hasSize
Returns a Matcher that checks {@link Mapping#size()}.
core/src/test/java/org/apache/calcite/util/mapping/MappingTest.java:214
↓ 380 callers
Method
substring
SQL SUBSTRING(string FROM ...) function.
core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:1169
↓ 374 callers
Method
asEnumerable
Adapter that converts an {@link List} into an {@link Enumerable}. @param list List @param <T> Element type @return enumerable
linq4j/src/main/java/org/apache/calcite/linq4j/Linq4j.java:128
↓ 369 callers
Method
replace
Replaces every occurrence of <code>find</code> in <code>s</code> with <code>replace</code>.
core/src/main/java/org/apache/calcite/util/Util.java:618
↓ 368 callers
Method
filter
Returns a copy of this AggCall that applies a filter before aggregating values.
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:4338
↓ 358 callers
Method
sql
(String sql)
core/src/test/java/org/apache/calcite/test/RelMetadataTest.java:222
↓ 351 callers
Method
isEmpty
Predicate, to be used when defining an operand of a {@link RelOptRule}, that returns true if a Values contains zero tuples. <p>This is the convention
core/src/main/java/org/apache/calcite/rel/core/Values.java:140
↓ 349 callers
Method
get
Returns the convertlet applicable to a given expression.
core/src/main/java/org/apache/calcite/sql2rel/SqlRexConvertletTable.java:32
↓ 348 callers
Method
apply
Applies a mapping to this trait. <p>Some traits may be changed if the columns order is changed by a mapping of the {@link Project} operator. <p>For
core/src/main/java/org/apache/calcite/plan/RelTrait.java:113
↓ 344 callers
Method
checkSimplify
Simplifies an expression and checks that the result is as expected.
core/src/test/java/org/apache/calcite/rex/RexProgramTestBase.java:84
↓ 343 callers
Method
toRule
()
core/src/main/java/org/apache/calcite/rel/rules/SemiJoinRule.java:282
↓ 342 callers
Method
put
(Map<String, @Nullable Object> map, String name, @Nullable Object value)
core/src/main/java/org/apache/calcite/rel/externalize/RelJsonWriter.java:101
↓ 338 callers
Method
as
Casts this configuration to another type, usually a sub-class.
core/src/main/java/org/apache/calcite/plan/RelRule.java:136
↓ 330 callers
Method
or
Composes this with another checker using OR.
core/src/main/java/org/apache/calcite/sql/type/SqlOperandTypeChecker.java:101
↓ 328 callers
Method
rel
Returns the relational expression that this metadata is about.
core/src/main/java/org/apache/calcite/rel/metadata/Metadata.java:44
↓ 325 callers
Method
addAll
Adds to this list the contents of another PairList. <p>Equivalent to {@link #addAll(Collection)}, but more efficient.
core/src/main/java/org/apache/calcite/runtime/PairList.java:106
↓ 322 callers
Method
valueOf
Returns a new immutable bit set containing all the bits in the given long array. <p>More precisely, <blockquote>{@code ImmutableBitSet.valueOf(longs
core/src/main/java/org/apache/calcite/util/ImmutableBitSet.java:203
↓ 321 callers
Method
getType
Gets the type of this field. @return field type
core/src/main/java/org/apache/calcite/rel/type/RelDataTypeField.java:83
↓ 321 callers
Method
of
Create a default SqlWriterConfig object. @return The config.
core/src/main/java/org/apache/calcite/sql/SqlWriterConfig.java:431
↓ 320 callers
Method
get
Returns the convertlet applicable to a given expression.
core/src/main/java/org/apache/calcite/rex/RexSqlConvertletTable.java:30
↓ 320 callers
Method
push
Adds an element to the stack.
core/src/main/java/org/apache/calcite/util/Stacks.java:48
↓ 318 callers
Method
getOperator
()
core/src/main/java/org/apache/calcite/sql/SqlJdbcFunctionCall.java:576
↓ 316 callers
Method
isNullable
Queries whether this type allows null values. @return whether type allows null values
core/src/main/java/org/apache/calcite/rel/type/RelDataType.java:119
next →
1–100 of 34,750, ranked by callers