MCPcopy Create free account

hub / github.com/apache/calcite / functions

Functions34,750 in github.com/apache/calcite

↓ 34 callersMethodhuman
Converts a number into human-readable form, with 3 digits and a "K", "M" or "G" multiplier for thousands, millions or billions. <p>Examples: -2, 0, 1
core/src/main/java/org/apache/calcite/util/Util.java:2508
↓ 34 callersMethodinCharFamily
Returns whether a type is in SqlTypeFamily.Character.
core/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java:496
↓ 34 callersMethodisEmpty
Returns true if this {@code ImmutableBitSet} contains no bits that are set to {@code true}.
core/src/main/java/org/apache/calcite/util/ImmutableBitSet.java:860
↓ 34 callersMethodmask
(@Nullable Comparable value)
core/src/main/java/org/apache/calcite/rel/metadata/NullSentinel.java:34
↓ 34 callersMethodok
Runs the test.
example/csv/src/test/java/org/apache/calcite/test/CsvTest.java:1143
↓ 34 callersMethodreturnsValue
(String expected)
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:1542
↓ 34 callersMethodsql
(String model, String sql)
example/csv/src/test/java/org/apache/calcite/test/CsvTest.java:426
↓ 34 callersMethodviewMacro
(SchemaPlus schema, final String viewSql, final List<String> schemaPath)
core/src/main/java/org/apache/calcite/schema/impl/ViewTable.java:65
↓ 34 callersMethodwinExp2
(String sql)
testkit/src/main/java/org/apache/calcite/test/SqlValidatorTestCase.java:83
↓ 34 callersMethodwithConfig
(UnaryOperator<SqlToRelConverter.Config> config)
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:11895
↓ 34 callersMethodwriteFieldIf
(JsonGenerator generator, String fieldName, @Nullable Object o)
druid/src/main/java/org/apache/calcite/adapter/druid/DruidQuery.java:1521
↓ 33 callersMethodcheckOperandTypes
Checks the types of all operands to an operator call. @param callBinding description of the call to be checked @param throwOnFailure whether to th
core/src/main/java/org/apache/calcite/sql/type/SqlOperandTypeChecker.java:46
↓ 33 callersMethodclone
(SqlParserPos pos)
core/src/main/java/org/apache/calcite/sql/SqlCall.java:114
↓ 33 callersMethodcollectOperandTypes
Collects the types of the bound operands into a list. @return collected list
core/src/main/java/org/apache/calcite/sql/SqlOperatorBinding.java:269
↓ 33 callersMethodcompareTo
(Sarg<C> o)
core/src/main/java/org/apache/calcite/util/Sarg.java:201
↓ 33 callersMethodcreate
Creates a mapping with required properties.
core/src/main/java/org/apache/calcite/util/mapping/Mappings.java:58
↓ 33 callersMethodgetLogger
()
core/src/main/java/org/apache/calcite/util/trace/CalciteLogger.java:208
↓ 33 callersMethodgetNodeType
Gets the node type of this Expression.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/AbstractNode.java:41
↓ 33 callersMethodgetTrait
Retrieves a RelTrait from the set. @param index 0-based index into ordered RelTraitSet @return the RelTrait @throws ArrayIndexOutOfBoundsException if
core/src/main/java/org/apache/calcite/plan/RelTraitSet.java:89
↓ 33 callersMethodisExactNumeric
Returns whether a type is numeric with exact precision.
core/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java:587
↓ 33 callersMethodneedToImplement
Returns a {@link java.lang.RuntimeException} indicating that a particular feature has not been implemented, but should be. <p>If every 'hole' in our
core/src/main/java/org/apache/calcite/util/Util.java:1208
↓ 33 callersMethodof
Returns the Primitive object for a given primitive class. <p>For example, <code>of(long.class)</code> returns {@link #LONG}. Returns {@code null} whe
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Primitive.java:142
↓ 33 callersMethodstartFunCall
Starts a list which is a call to a function. @see #endFunCall(Frame)
core/src/main/java/org/apache/calcite/sql/SqlWriter.java:439
↓ 33 callersMethodtables
Returns a lookup object to find tables. @return Lookup
core/src/main/java/org/apache/calcite/schema/Schema.java:68
↓ 33 callersMethodtoImmutableList
Returns a {@code Collector} that accumulates the input elements into a Guava {@link ImmutableList} via a {@link ImmutableList.Builder}. @deprecated U
core/src/main/java/org/apache/calcite/util/Util.java:2721
↓ 33 callersMethodtoRule
()
piglet/src/main/java/org/apache/calcite/piglet/PigToSqlAggregateRule.java:417
↓ 33 callersMethoduniqueKeyConfig
(int limit)
core/src/test/java/org/apache/calcite/test/RelMetadataTest.java:5447
↓ 33 callersMethodurl
()
core/src/main/java/org/apache/calcite/util/Source.java:32
↓ 33 callersMethodwithExpr
(String sql)
testkit/src/main/java/org/apache/calcite/test/SqlValidatorFixture.java:130
↓ 33 callersMethodwithFunctionType
Sets {@link #getFunctionType()}.
core/src/main/java/org/apache/calcite/sql/fun/SqlBasicAggFunction.java:166
↓ 32 callersMethodcreate
Creates a {@link TableFunctionImpl} from a class, looking for an "eval" method. Returns null if there is no such method.
core/src/main/java/org/apache/calcite/schema/impl/TableFunctionImpl.java:67
↓ 32 callersMethodgetDistinctRowCount
(RelNode r, RelMetadataQuery mq, ImmutableBitSet groupKey, @Nullable RexNode predicate)
core/src/main/java/org/apache/calcite/rel/metadata/BuiltInMetadata.java:384
↓ 32 callersMethodgetFactory
Returns the test factory.
testkit/src/main/java/org/apache/calcite/sql/test/SqlOperatorFixture.java:116
↓ 32 callersMethodgetTraitDef
Returns the RelTraitDef that defines this RelTrait. @return the RelTraitDef that defines this RelTrait
core/src/main/java/org/apache/calcite/plan/RelTrait.java:48
↓ 32 callersMethodgetTypeName
()
core/src/main/java/org/apache/calcite/rex/RexLiteral.java:945
↓ 32 callersMethodname
()
core/src/test/java/org/apache/calcite/test/RelBuilderTest.java:5988
↓ 32 callersMethodnewError
( Resources.ExInst<SqlValidatorException> e)
core/src/main/java/org/apache/calcite/sql/SqlCallBinding.java:395
↓ 32 callersMethodnotEqual
Creates a BinaryExpression that represents an inequality comparison.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java:2154
↓ 32 callersMethodof
Looks for one or two carets in a SQL string, and if present, converts them into a parser position. <p>Examples: <ul> <li>of("xxx^yyy") yields {"xxxy
core/src/main/java/org/apache/calcite/sql/parser/StringAndPos.java:67
↓ 32 callersMethodof
Creates a RelOptPredicateList with only pulled-up predicates, no inferred predicates. <p>Use this for relational expressions other than joins. @para
core/src/main/java/org/apache/calcite/plan/RelOptPredicateList.java:152
↓ 32 callersMethodshouldCast
Decision method for {@link AbstractTypeCoercion#implicitCast}.
core/src/test/java/org/apache/calcite/test/TypeCoercionTest.java:945
↓ 32 callersMethodsubtract
Returns the difference of two numbers, or null if either is null.
core/src/main/java/org/apache/calcite/util/NumberUtil.java:159
↓ 32 callersMethodswallow
Records that an exception has been caught but will not be re-thrown. If the tracer is not null, logs the exception to the tracer. @param e Excep
core/src/main/java/org/apache/calcite/util/Util.java:259
↓ 32 callersMethodtoSql
Converts a type in Java format to a SQL-oriented type.
core/src/main/java/org/apache/calcite/adapter/java/JavaTypeFactory.java:53
↓ 32 callersMethodtrace
(@Nullable String prefix, Object message)
core/src/test/java/org/apache/calcite/test/concurrent/ConcurrentTestCommandScript.java:836
↓ 32 callersMethoduniquify
Makes a name distinct from other names which have already been used, adds it to the list, and returns it. @param name Suggested name, may not be
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorUtil.java:410
↓ 32 callersMethodvalidate
Validates an expression tree. You can call this method multiple times, but not reentrantly. @param topNode top of expression tree to be validated @re
core/src/main/java/org/apache/calcite/sql/validate/SqlValidator.java:146
↓ 32 callersMethodwin
(String sql)
testkit/src/main/java/org/apache/calcite/test/SqlValidatorTestCase.java:75
↓ 32 callersMethodwithTrino
()
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:11743
↓ 31 callersMethodaddMatchOrder
Adds an instruction to change the order of pattern matching for subsequent instructions. The new order will take effect for the rest of the program (n
core/src/main/java/org/apache/calcite/plan/hep/HepProgramBuilder.java:186
↓ 31 callersMethodaggregateCall
(SqlAggFunction aggFunction, boolean distinct, RexNode filter, @Nullable String alias, RexNode... operan
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:1424
↓ 31 callersMethodapply
(Join join, JoinRelType joinType, RexNode exp)
core/src/main/java/org/apache/calcite/rel/rules/FilterJoinRule.java:556
↓ 31 callersMethodarrayType
(RelDataType type)
core/src/test/java/org/apache/calcite/test/TypeCoercionTest.java:924
↓ 31 callersMethodcheckSingleOperandType
Checks the type of a single operand against a particular ordinal position within a formal operator signature. Note that the actual ordinal position of
core/src/main/java/org/apache/calcite/sql/type/SqlSingleOperandTypeChecker.java:67
↓ 31 callersMethodcompareTo
(SimplifyTask o)
core/src/test/java/org/apache/calcite/test/fuzzer/SimplifyTask.java:38
↓ 31 callersMethodcreate
Creates a <code>SqlParser</code> to parse the given string using Calcite's parser implementation. <p>The default lexical policy is similar to Oracle.
core/src/main/java/org/apache/calcite/sql/parser/SqlParser.java:94
↓ 31 callersMethodenableMaterializations
(boolean materializationsEnabled)
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:1865
↓ 31 callersMethodenumerator
()
linq4j/src/main/java/org/apache/calcite/linq4j/Linq4j.java:81
↓ 31 callersMethodfirst
Returns the first element of a sequence. (Defined by Queryable.)
linq4j/src/main/java/org/apache/calcite/linq4j/QueryableFactory.java:280
↓ 31 callersMethodgetColumnOrigins
(RelNode r, RelMetadataQuery mq, int outputColumn)
core/src/main/java/org/apache/calcite/rel/metadata/BuiltInMetadata.java:520
↓ 31 callersMethodgetLong
()
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Primitive.java:1280
↓ 31 callersMethodgetRight
()
core/src/main/java/org/apache/calcite/rel/BiRel.java:57
↓ 31 callersMethodignoreNulls
Returns a copy of this AggCall that ignores nulls.
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:4382
↓ 31 callersMethodnewValidationSignatureError
Constructs a new validation signature error for the call. @return signature exception
core/src/main/java/org/apache/calcite/sql/SqlCallBinding.java:405
↓ 31 callersMethodrecordType
(String name, RelDataType type)
core/src/test/java/org/apache/calcite/test/TypeCoercionTest.java:932
↓ 31 callersMethodtoBlock
(Node body)
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Blocks.java:55
↓ 30 callersMethodaddRelTraitDef
Registers a rel trait definition. If the {@link RelTraitDef} has already been registered, does nothing. @return whether the RelTraitDef was added, as
core/src/main/java/org/apache/calcite/plan/RelOptPlanner.java:67
↓ 30 callersMethodasList
Encode all the information require to reconstruct a SqlCollection in a SqlList object.
core/src/main/java/org/apache/calcite/sql/SqlCollation.java:121
↓ 30 callersMethodassertEmpty
(String query)
elasticsearch/src/test/java/org/apache/calcite/adapter/elasticsearch/BooleanLogicTest.java:175
↓ 30 callersMethodassertEqualsVerbose
( String expected, String actual)
testkit/src/main/java/org/apache/calcite/util/TestUtil.java:88
↓ 30 callersMethodassertMonotonicity
Tests that the first column of the query has a given monotonicity. @param matcher Expected monotonicity
testkit/src/main/java/org/apache/calcite/test/SqlValidatorFixture.java:285
↓ 30 callersMethodassertResult
(Matcher<String> resultMatcher)
piglet/src/test/java/org/apache/calcite/test/PigRelOpTest.java:119
↓ 30 callersMethodassertThatRel
Checks the {@link RelNode} produced by {@link #toRel}.
testkit/src/main/java/org/apache/calcite/test/RelMetadataFixture.java:466
↓ 30 callersMethodcheckQuery
Tests that a SQL query succeeds at prepare time. @param sql SQL query
testkit/src/main/java/org/apache/calcite/sql/test/SqlOperatorFixture.java:568
↓ 30 callersMethodcompareTo
(Unit that)
core/src/main/java/org/apache/calcite/runtime/Unit.java:30
↓ 30 callersMethodforEach
Applies an action to every element of an iterable, passing the zero-based ordinal of the element to the action. @see List#forEach(java.util.function.
linq4j/src/main/java/org/apache/calcite/linq4j/Ord.java:164
↓ 30 callersMethodgetClassLoader
()
core/src/main/java/org/apache/calcite/util/javac/JavaCompiler.java:31
↓ 30 callersMethodgetRootSchema
Returns a sub-schema with a given name, or null.
core/src/main/java/org/apache/calcite/DataContext.java:50
↓ 30 callersMethodinverse
()
core/src/main/java/org/apache/calcite/util/mapping/Mappings.java:885
↓ 30 callersMethodisDeterministic
Returns whether a given expression is deterministic. @param e Expression @return true if tree result is deterministic, false otherwise
core/src/main/java/org/apache/calcite/rex/RexUtil.java:824
↓ 30 callersMethodlet
Performs an action on this OverCall.
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:4844
↓ 30 callersMethodmakeCost
Creates a cost object.
core/src/main/java/org/apache/calcite/plan/RelOptCostFactory.java:26
↓ 30 callersMethodof
Creates a {@link org.apache.calcite.rel.metadata.MetadataDef}.
core/src/main/java/org/apache/calcite/rel/metadata/MetadataDef.java:81
↓ 30 callersMethodreflectiveSource
Returns an implementation of {@link RelMetadataProvider} that scans for methods with a preceding argument. <p>For example, {@link BuiltInMetadata.Sel
core/src/main/java/org/apache/calcite/rel/metadata/ReflectiveRelMetadataProvider.java:120
↓ 30 callersMethodrow
(FieldT... fields)
core/src/test/java/org/apache/calcite/test/LargeGeneratedJoinTest.java:78
↓ 30 callersMethodsend
(Row row)
core/src/main/java/org/apache/calcite/interpreter/Sink.java:27
↓ 30 callersMethodsize
()
core/src/main/java/org/apache/calcite/sql/SqlNodeList.java:130
↓ 30 callersMethodsum
Computes the sum of the sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.
linq4j/src/main/java/org/apache/calcite/linq4j/EnumerableDefaults.java:3836
↓ 30 callersMethodtoFunctionBlock
(Node body, boolean function)
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Blocks.java:31
↓ 30 callersMethodtrace
Logs a TRACE message with two Object parameters.
core/src/main/java/org/apache/calcite/util/trace/CalciteLogger.java:175
↓ 30 callersMethodtransform
Converts one relational expression tree into another relational expression based on a particular rule set and requires set of traits. @param ruleSetI
core/src/main/java/org/apache/calcite/tools/Planner.java:124
↓ 30 callersMethodvisitList
Visits a list and writes the results to another list.
core/src/main/java/org/apache/calcite/rex/RexVisitor.java:67
↓ 30 callersMethodwithDynamicTable
()
testkit/src/main/java/org/apache/calcite/test/RelOptFixture.java:175
↓ 30 callersMethodwithQuoting
Sets {@link #quoting()}.
core/src/main/java/org/apache/calcite/sql/parser/SqlParser.java:296
↓ 30 callersMethodwithWriter
( UnaryOperator<SqlWriterConfig> transform)
core/src/test/java/org/apache/calcite/sql/test/SqlPrettyWriterFixture.java:70
↓ 29 callersMethodaccept
(PreparedStatement statement)
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:2195
↓ 29 callersMethodaddAlias
Defines an alias for an existing frame. <p>For example, {@code add("Y", "YEAR")} adds "Y" as an alias for the built-in frame {@code YEAR}. @param na
core/src/main/java/org/apache/calcite/rel/type/TimeFrameSet.java:361
↓ 29 callersMethodany
Determines whether a sequence contains any elements.
linq4j/src/main/java/org/apache/calcite/linq4j/QueryableFactory.java:86
↓ 29 callersMethodblock
Creates a BlockExpression that contains the given statements.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java:275
↓ 29 callersMethodcheckLiteral
(String expression)
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:5629
← previousnext →801–900 of 34,750, ranked by callers