MCPcopy Index your code

hub / github.com/apache/calcite / functions

Functions34,750 in github.com/apache/calcite

↓ 5,940 callersMethodis
Returns whether a given type is primitive.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Primitive.java:175
↓ 3,406 callersMethodget
(String tag)
core/src/main/java/org/apache/calcite/rel/RelInput.java:65
↓ 3,082 callersMethodsql
Sets the SQL statement for a test.
core/src/test/java/org/apache/calcite/test/HepPlannerTest.java:114
↓ 2,397 callersMethodbuild
Creates a {@code TimeFrameSet}.
core/src/main/java/org/apache/calcite/rel/type/TimeFrameSet.java:293
↓ 2,182 callersMethodadd
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 callersMethodappend
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 callersMethodok
()
core/src/test/java/org/apache/calcite/test/MaterializedViewFixture.java:55
↓ 1,959 callersMethodfails
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 callersMethodcheckScalar
(String expression, TypeChecker typeChecker, ResultChecker resultChecker)
testkit/src/main/java/org/apache/calcite/sql/test/SqlOperatorFixture.java:211
↓ 1,735 callersMethodsize
Returns the number of elements in the mapping.
core/src/main/java/org/apache/calcite/util/mapping/Mapping.java:80
↓ 1,568 callersMethodequals
See <a href="#EqualsHashCodeNote">note about equals() and hashCode()</a>.
core/src/main/java/org/apache/calcite/plan/RelTrait.java:58
↓ 1,322 callersMethodquery
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 callersMethodok
(String expected)
testkit/src/main/java/org/apache/calcite/sql/parser/SqlParserFixture.java:78
↓ 1,138 callersMethodadd
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 callersMethodok
(String expectedQuery)
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:11931
↓ 1,060 callersMethodliteral
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 callersMethodof
(String name, Function<RelDataTypeFactory, RelDataType> protoType, SqlTypeFamily family, boole
core/src/test/java/org/apache/calcite/test/RelBuilderTest.java:6002
↓ 960 callersMethodadd
Adds a pair to this list.
core/src/main/java/org/apache/calcite/runtime/PairList.java:94
↓ 931 callersMethodcolumnType
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 callersMethodgetCluster
()
core/src/main/java/org/apache/calcite/rel/RelInput.java:40
↓ 868 callersMethodput
(String name, V v)
core/src/main/java/org/apache/calcite/util/NameMap.java:69
↓ 864 callersMethodcheck
(RexBuilder rexBuilder, RexExecutorImpl executor)
core/src/test/java/org/apache/calcite/rex/RexExecutorTest.java:402
↓ 859 callersMethodtoString
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 callersMethodexpr
(String sql)
testkit/src/main/java/org/apache/calcite/sql/parser/SqlParserTest.java:652
↓ 851 callersMethodexpr
(String s)
core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java:2906
↓ 837 callersMethodsql
(String sql)
testkit/src/main/java/org/apache/calcite/sql/parser/SqlParserTest.java:648
↓ 834 callersMethodfield
Returns the physical type of a field.
core/src/main/java/org/apache/calcite/adapter/enumerable/PhysType.java:58
↓ 830 callersMethodoperand
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 callersMethodcheckString
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 callersMethodcheckNull
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 callersMethodfield
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 callersMethodcontains
Returns whether the current line starts with {@code seek}.
core/src/main/java/org/apache/calcite/util/Puffin.java:167
↓ 739 callersMethodgetRowType
Returns the type of the rows returned by this relational expression.
core/src/main/java/org/apache/calcite/rel/RelNode.java:116
↓ 726 callersMethodwithRule
(RelOptRule... rules)
testkit/src/main/java/org/apache/calcite/test/RelOptFixture.java:219
↓ 688 callersMethodcreateSqlType
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 callersMethodexplainContains
(String expected)
piglet/src/test/java/org/apache/calcite/test/Fluent.java:51
↓ 683 callersMethodmakeCall
Creates a call with a list of arguments and a predetermined type.
core/src/main/java/org/apache/calcite/rex/RexBuilder.java:275
↓ 681 callersMethodsql
Initiates a test case with a given SQL query.
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:146
↓ 677 callersMethodcheckBoolean
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 callersMethodgetFieldList
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 callersMethodconstant
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 callersMethodgetFieldCount
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 callersMethodset
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 callersMethodwith
(String property, Object value)
testkit/src/main/java/org/apache/calcite/test/ConnectionFactory.java:40
↓ 600 callersMethodcopyOf
Creates a PairList with one or more entries.
core/src/main/java/org/apache/calcite/runtime/PairList.java:58
↓ 597 callersMethodgetSqlTypeName
Gets the {@link SqlTypeName} of this type. @return SqlTypeName, never null
core/src/main/java/org/apache/calcite/rel/type/RelDataType.java:211
↓ 590 callersMethodbuilder
Creates a builder.
core/src/main/java/org/apache/calcite/runtime/Pattern.java:35
↓ 588 callersMethodthat
Creates an instance of {@code CalciteAssert} with the empty configuration.
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:235
↓ 588 callersMethodtoCharUs
(String pattern, ZonedDateTime dateTime)
core/src/test/java/org/apache/calcite/util/format/postgresql/PostgresqlDateTimeFormatterTest.java:53
↓ 586 callersMethodof
Creates an empty PairList.
core/src/main/java/org/apache/calcite/runtime/PairList.java:44
↓ 573 callersMethodequalTo
(ArrowSet other)
core/src/main/java/org/apache/calcite/util/ArrowSet.java:255
↓ 570 callersMethodcheckFails
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 callersMethodreturns
(final String out)
piglet/src/test/java/org/apache/calcite/test/Fluent.java:60
↓ 552 callersMethodreturnsUnordered
(String... lines)
piglet/src/test/java/org/apache/calcite/test/Fluent.java:68
↓ 534 callersMethodasList
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 callersMethodof
Wraps an expression in a Predicate or returns null.
core/src/main/java/org/apache/calcite/rex/RexSimplify.java:3010
↓ 525 callersMethodsize
()
core/src/main/java/org/apache/calcite/sql/SqlSpecialOperator.java:98
↓ 523 callersMethodfixture
Sub-classes should override to run tests in a different environment.
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java:378
↓ 521 callersMethodaccept
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 callersMethodget
Looks up an item in a map.
core/src/main/java/org/apache/calcite/sql/validate/SqlNameMatcher.java:49
↓ 513 callersMethodcall
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 callersMethodproject
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 callersMethodgetIndex
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 callersMethodqueryContains
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 callersMethodof
Creates an ImmutableBitSet with no bits.
core/src/main/java/org/apache/calcite/util/ImmutableBitSet.java:111
↓ 477 callersMethodgetOperands
()
core/src/main/java/org/apache/calcite/rex/RexCall.java:269
↓ 445 callersMethodscan
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 callersMethodwithSql
(String sql)
testkit/src/main/java/org/apache/calcite/test/SqlValidatorFixture.java:125
↓ 423 callersMethodgetInput
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 callersMethodgetName
The name of this function.
core/src/main/java/org/apache/calcite/schema/Member.java:53
↓ 416 callersMethodfail
(@Nullable String message, @Nullable Object... args)
core/src/main/java/org/apache/calcite/util/Litmus.java:37
↓ 409 callersMethodgetInput
Returns the sole input relational expression. @return child relational expression
core/src/main/java/org/apache/calcite/rel/convert/Converter.java:76
↓ 404 callersMethodput
(String schema, String table, int count, Object... keys)
core/src/main/java/org/apache/calcite/statistic/MapSqlStatisticProvider.java:147
↓ 403 callersMethodgetTraitSet
()
core/src/main/java/org/apache/calcite/rel/RelInput.java:42
↓ 401 callersMethodhasTree
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 callersMethodstream
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 callersMethodlength
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 callersMethodhasSize
Returns a Matcher that checks {@link Mapping#size()}.
core/src/test/java/org/apache/calcite/util/mapping/MappingTest.java:214
↓ 380 callersMethodsubstring
SQL SUBSTRING(string FROM ...) function.
core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:1169
↓ 374 callersMethodasEnumerable
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 callersMethodreplace
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 callersMethodfilter
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 callersMethodsql
(String sql)
core/src/test/java/org/apache/calcite/test/RelMetadataTest.java:222
↓ 351 callersMethodisEmpty
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 callersMethodget
Returns the convertlet applicable to a given expression.
core/src/main/java/org/apache/calcite/sql2rel/SqlRexConvertletTable.java:32
↓ 348 callersMethodapply
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 callersMethodcheckSimplify
Simplifies an expression and checks that the result is as expected.
core/src/test/java/org/apache/calcite/rex/RexProgramTestBase.java:84
↓ 343 callersMethodtoRule
()
core/src/main/java/org/apache/calcite/rel/rules/SemiJoinRule.java:282
↓ 342 callersMethodput
(Map<String, @Nullable Object> map, String name, @Nullable Object value)
core/src/main/java/org/apache/calcite/rel/externalize/RelJsonWriter.java:101
↓ 338 callersMethodas
Casts this configuration to another type, usually a sub-class.
core/src/main/java/org/apache/calcite/plan/RelRule.java:136
↓ 330 callersMethodor
Composes this with another checker using OR.
core/src/main/java/org/apache/calcite/sql/type/SqlOperandTypeChecker.java:101
↓ 328 callersMethodrel
Returns the relational expression that this metadata is about.
core/src/main/java/org/apache/calcite/rel/metadata/Metadata.java:44
↓ 325 callersMethodaddAll
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 callersMethodvalueOf
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 callersMethodgetType
Gets the type of this field. @return field type
core/src/main/java/org/apache/calcite/rel/type/RelDataTypeField.java:83
↓ 321 callersMethodof
Create a default SqlWriterConfig object. @return The config.
core/src/main/java/org/apache/calcite/sql/SqlWriterConfig.java:431
↓ 320 callersMethodget
Returns the convertlet applicable to a given expression.
core/src/main/java/org/apache/calcite/rex/RexSqlConvertletTable.java:30
↓ 320 callersMethodpush
Adds an element to the stack.
core/src/main/java/org/apache/calcite/util/Stacks.java:48
↓ 318 callersMethodgetOperator
()
core/src/main/java/org/apache/calcite/sql/SqlJdbcFunctionCall.java:576
↓ 316 callersMethodisNullable
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