Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/calcite
/ functions
Functions
34,750 in github.com/apache/calcite
⨍
Functions
34,750
◇
Types & classes
4,695
↓ 34 callers
Method
human
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 callers
Method
inCharFamily
Returns whether a type is in SqlTypeFamily.Character.
core/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java:496
↓ 34 callers
Method
isEmpty
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 callers
Method
mask
(@Nullable Comparable value)
core/src/main/java/org/apache/calcite/rel/metadata/NullSentinel.java:34
↓ 34 callers
Method
ok
Runs the test.
example/csv/src/test/java/org/apache/calcite/test/CsvTest.java:1143
↓ 34 callers
Method
returnsValue
(String expected)
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:1542
↓ 34 callers
Method
sql
(String model, String sql)
example/csv/src/test/java/org/apache/calcite/test/CsvTest.java:426
↓ 34 callers
Method
viewMacro
(SchemaPlus schema, final String viewSql, final List<String> schemaPath)
core/src/main/java/org/apache/calcite/schema/impl/ViewTable.java:65
↓ 34 callers
Method
winExp2
(String sql)
testkit/src/main/java/org/apache/calcite/test/SqlValidatorTestCase.java:83
↓ 34 callers
Method
withConfig
(UnaryOperator<SqlToRelConverter.Config> config)
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:11895
↓ 34 callers
Method
writeFieldIf
(JsonGenerator generator, String fieldName, @Nullable Object o)
druid/src/main/java/org/apache/calcite/adapter/druid/DruidQuery.java:1521
↓ 33 callers
Method
checkOperandTypes
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 callers
Method
clone
(SqlParserPos pos)
core/src/main/java/org/apache/calcite/sql/SqlCall.java:114
↓ 33 callers
Method
collectOperandTypes
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 callers
Method
compareTo
(Sarg<C> o)
core/src/main/java/org/apache/calcite/util/Sarg.java:201
↓ 33 callers
Method
create
Creates a mapping with required properties.
core/src/main/java/org/apache/calcite/util/mapping/Mappings.java:58
↓ 33 callers
Method
getLogger
()
core/src/main/java/org/apache/calcite/util/trace/CalciteLogger.java:208
↓ 33 callers
Method
getNodeType
Gets the node type of this Expression.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/AbstractNode.java:41
↓ 33 callers
Method
getTrait
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 callers
Method
isExactNumeric
Returns whether a type is numeric with exact precision.
core/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java:587
↓ 33 callers
Method
needToImplement
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 callers
Method
of
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 callers
Method
startFunCall
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 callers
Method
tables
Returns a lookup object to find tables. @return Lookup
core/src/main/java/org/apache/calcite/schema/Schema.java:68
↓ 33 callers
Method
toImmutableList
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 callers
Method
toRule
()
piglet/src/main/java/org/apache/calcite/piglet/PigToSqlAggregateRule.java:417
↓ 33 callers
Method
uniqueKeyConfig
(int limit)
core/src/test/java/org/apache/calcite/test/RelMetadataTest.java:5447
↓ 33 callers
Method
url
()
core/src/main/java/org/apache/calcite/util/Source.java:32
↓ 33 callers
Method
withExpr
(String sql)
testkit/src/main/java/org/apache/calcite/test/SqlValidatorFixture.java:130
↓ 33 callers
Method
withFunctionType
Sets {@link #getFunctionType()}.
core/src/main/java/org/apache/calcite/sql/fun/SqlBasicAggFunction.java:166
↓ 32 callers
Method
create
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 callers
Method
getDistinctRowCount
(RelNode r, RelMetadataQuery mq, ImmutableBitSet groupKey, @Nullable RexNode predicate)
core/src/main/java/org/apache/calcite/rel/metadata/BuiltInMetadata.java:384
↓ 32 callers
Method
getFactory
Returns the test factory.
testkit/src/main/java/org/apache/calcite/sql/test/SqlOperatorFixture.java:116
↓ 32 callers
Method
getTraitDef
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 callers
Method
getTypeName
()
core/src/main/java/org/apache/calcite/rex/RexLiteral.java:945
↓ 32 callers
Method
name
()
core/src/test/java/org/apache/calcite/test/RelBuilderTest.java:5988
↓ 32 callers
Method
newError
( Resources.ExInst<SqlValidatorException> e)
core/src/main/java/org/apache/calcite/sql/SqlCallBinding.java:395
↓ 32 callers
Method
notEqual
Creates a BinaryExpression that represents an inequality comparison.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java:2154
↓ 32 callers
Method
of
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 callers
Method
of
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 callers
Method
shouldCast
Decision method for {@link AbstractTypeCoercion#implicitCast}.
core/src/test/java/org/apache/calcite/test/TypeCoercionTest.java:945
↓ 32 callers
Method
subtract
Returns the difference of two numbers, or null if either is null.
core/src/main/java/org/apache/calcite/util/NumberUtil.java:159
↓ 32 callers
Method
swallow
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 callers
Method
toSql
Converts a type in Java format to a SQL-oriented type.
core/src/main/java/org/apache/calcite/adapter/java/JavaTypeFactory.java:53
↓ 32 callers
Method
trace
(@Nullable String prefix, Object message)
core/src/test/java/org/apache/calcite/test/concurrent/ConcurrentTestCommandScript.java:836
↓ 32 callers
Method
uniquify
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 callers
Method
validate
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 callers
Method
win
(String sql)
testkit/src/main/java/org/apache/calcite/test/SqlValidatorTestCase.java:75
↓ 32 callers
Method
withTrino
()
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:11743
↓ 31 callers
Method
addMatchOrder
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 callers
Method
aggregateCall
(SqlAggFunction aggFunction, boolean distinct, RexNode filter, @Nullable String alias, RexNode... operan
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:1424
↓ 31 callers
Method
apply
(Join join, JoinRelType joinType, RexNode exp)
core/src/main/java/org/apache/calcite/rel/rules/FilterJoinRule.java:556
↓ 31 callers
Method
arrayType
(RelDataType type)
core/src/test/java/org/apache/calcite/test/TypeCoercionTest.java:924
↓ 31 callers
Method
checkSingleOperandType
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 callers
Method
compareTo
(SimplifyTask o)
core/src/test/java/org/apache/calcite/test/fuzzer/SimplifyTask.java:38
↓ 31 callers
Method
create
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 callers
Method
enableMaterializations
(boolean materializationsEnabled)
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:1865
↓ 31 callers
Method
enumerator
()
linq4j/src/main/java/org/apache/calcite/linq4j/Linq4j.java:81
↓ 31 callers
Method
first
Returns the first element of a sequence. (Defined by Queryable.)
linq4j/src/main/java/org/apache/calcite/linq4j/QueryableFactory.java:280
↓ 31 callers
Method
getColumnOrigins
(RelNode r, RelMetadataQuery mq, int outputColumn)
core/src/main/java/org/apache/calcite/rel/metadata/BuiltInMetadata.java:520
↓ 31 callers
Method
getLong
()
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Primitive.java:1280
↓ 31 callers
Method
getRight
()
core/src/main/java/org/apache/calcite/rel/BiRel.java:57
↓ 31 callers
Method
ignoreNulls
Returns a copy of this AggCall that ignores nulls.
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:4382
↓ 31 callers
Method
newValidationSignatureError
Constructs a new validation signature error for the call. @return signature exception
core/src/main/java/org/apache/calcite/sql/SqlCallBinding.java:405
↓ 31 callers
Method
recordType
(String name, RelDataType type)
core/src/test/java/org/apache/calcite/test/TypeCoercionTest.java:932
↓ 31 callers
Method
toBlock
(Node body)
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Blocks.java:55
↓ 30 callers
Method
addRelTraitDef
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 callers
Method
asList
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 callers
Method
assertEmpty
(String query)
elasticsearch/src/test/java/org/apache/calcite/adapter/elasticsearch/BooleanLogicTest.java:175
↓ 30 callers
Method
assertEqualsVerbose
( String expected, String actual)
testkit/src/main/java/org/apache/calcite/util/TestUtil.java:88
↓ 30 callers
Method
assertMonotonicity
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 callers
Method
assertResult
(Matcher<String> resultMatcher)
piglet/src/test/java/org/apache/calcite/test/PigRelOpTest.java:119
↓ 30 callers
Method
assertThatRel
Checks the {@link RelNode} produced by {@link #toRel}.
testkit/src/main/java/org/apache/calcite/test/RelMetadataFixture.java:466
↓ 30 callers
Method
checkQuery
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 callers
Method
compareTo
(Unit that)
core/src/main/java/org/apache/calcite/runtime/Unit.java:30
↓ 30 callers
Method
forEach
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 callers
Method
getClassLoader
()
core/src/main/java/org/apache/calcite/util/javac/JavaCompiler.java:31
↓ 30 callers
Method
getRootSchema
Returns a sub-schema with a given name, or null.
core/src/main/java/org/apache/calcite/DataContext.java:50
↓ 30 callers
Method
inverse
()
core/src/main/java/org/apache/calcite/util/mapping/Mappings.java:885
↓ 30 callers
Method
isDeterministic
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 callers
Method
let
Performs an action on this OverCall.
core/src/main/java/org/apache/calcite/tools/RelBuilder.java:4844
↓ 30 callers
Method
makeCost
Creates a cost object.
core/src/main/java/org/apache/calcite/plan/RelOptCostFactory.java:26
↓ 30 callers
Method
of
Creates a {@link org.apache.calcite.rel.metadata.MetadataDef}.
core/src/main/java/org/apache/calcite/rel/metadata/MetadataDef.java:81
↓ 30 callers
Method
reflectiveSource
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 callers
Method
row
(FieldT... fields)
core/src/test/java/org/apache/calcite/test/LargeGeneratedJoinTest.java:78
↓ 30 callers
Method
send
(Row row)
core/src/main/java/org/apache/calcite/interpreter/Sink.java:27
↓ 30 callers
Method
size
()
core/src/main/java/org/apache/calcite/sql/SqlNodeList.java:130
↓ 30 callers
Method
sum
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 callers
Method
toFunctionBlock
(Node body, boolean function)
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Blocks.java:31
↓ 30 callers
Method
trace
Logs a TRACE message with two Object parameters.
core/src/main/java/org/apache/calcite/util/trace/CalciteLogger.java:175
↓ 30 callers
Method
transform
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 callers
Method
visitList
Visits a list and writes the results to another list.
core/src/main/java/org/apache/calcite/rex/RexVisitor.java:67
↓ 30 callers
Method
withDynamicTable
()
testkit/src/main/java/org/apache/calcite/test/RelOptFixture.java:175
↓ 30 callers
Method
withQuoting
Sets {@link #quoting()}.
core/src/main/java/org/apache/calcite/sql/parser/SqlParser.java:296
↓ 30 callers
Method
withWriter
( UnaryOperator<SqlWriterConfig> transform)
core/src/test/java/org/apache/calcite/sql/test/SqlPrettyWriterFixture.java:70
↓ 29 callers
Method
accept
(PreparedStatement statement)
testkit/src/main/java/org/apache/calcite/test/CalciteAssert.java:2195
↓ 29 callers
Method
addAlias
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 callers
Method
any
Determines whether a sequence contains any elements.
linq4j/src/main/java/org/apache/calcite/linq4j/QueryableFactory.java:86
↓ 29 callers
Method
block
Creates a BlockExpression that contains the given statements.
linq4j/src/main/java/org/apache/calcite/linq4j/tree/Expressions.java:275
↓ 29 callers
Method
checkLiteral
(String expression)
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:5629
← previous
next →
801–900 of 34,750, ranked by callers