Java Code Examples for org.apache.calcite.sql.validate.SqlMonotonicity#INCREASING

The following examples show how to use org.apache.calcite.sql.validate.SqlMonotonicity#INCREASING . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RelFieldCollation.java    From Bats with Apache License 2.0 6 votes vote down vote up
/** Converts the direction to a
 * {@link org.apache.calcite.sql.validate.SqlMonotonicity}. */
public SqlMonotonicity monotonicity() {
  switch (this) {
  case ASCENDING:
    return SqlMonotonicity.INCREASING;
  case STRICTLY_ASCENDING:
    return SqlMonotonicity.STRICTLY_INCREASING;
  case DESCENDING:
    return SqlMonotonicity.DECREASING;
  case STRICTLY_DESCENDING:
    return SqlMonotonicity.STRICTLY_DECREASING;
  case CLUSTERED:
    return SqlMonotonicity.MONOTONIC;
  default:
    throw new AssertionError("unknown: " + this);
  }
}
 
Example 2
Source File: RelFieldCollation.java    From calcite with Apache License 2.0 6 votes vote down vote up
/** Converts the direction to a
 * {@link org.apache.calcite.sql.validate.SqlMonotonicity}. */
public SqlMonotonicity monotonicity() {
  switch (this) {
  case ASCENDING:
    return SqlMonotonicity.INCREASING;
  case STRICTLY_ASCENDING:
    return SqlMonotonicity.STRICTLY_INCREASING;
  case DESCENDING:
    return SqlMonotonicity.DECREASING;
  case STRICTLY_DESCENDING:
    return SqlMonotonicity.STRICTLY_DECREASING;
  case CLUSTERED:
    return SqlMonotonicity.MONOTONIC;
  default:
    throw new AssertionError("unknown: " + this);
  }
}
 
Example 3
Source File: SqlCurrentDateFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
@Override public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
  return SqlMonotonicity.INCREASING;
}
 
Example 4
Source File: SqlAbstractTimeFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
@Override public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
  return SqlMonotonicity.INCREASING;
}
 
Example 5
Source File: ProctimeMaterializeSqlFunction.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
	return SqlMonotonicity.INCREASING;
}
 
Example 6
Source File: FlinkSqlOperatorTable.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
	return SqlMonotonicity.INCREASING;
}
 
Example 7
Source File: FlinkSqlOperatorTable.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
	return SqlMonotonicity.INCREASING;
}
 
Example 8
Source File: FlinkSqlOperatorTable.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
	return SqlMonotonicity.INCREASING;
}
 
Example 9
Source File: ProctimeMaterializeSqlFunction.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
	return SqlMonotonicity.INCREASING;
}
 
Example 10
Source File: FlinkSqlOperatorTable.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
	return SqlMonotonicity.INCREASING;
}
 
Example 11
Source File: FlinkSqlOperatorTable.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
	return SqlMonotonicity.INCREASING;
}
 
Example 12
Source File: FlinkSqlOperatorTable.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
	return SqlMonotonicity.INCREASING;
}
 
Example 13
Source File: SqlCurrentDateFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
  return SqlMonotonicity.INCREASING;
}
 
Example 14
Source File: SqlAbstractTimeFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlMonotonicity getMonotonicity(SqlOperatorBinding call) {
  return SqlMonotonicity.INCREASING;
}
 
Example 15
Source File: MockCatalogReader.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlMonotonicity getMonotonicity(String columnName) {
  return monotonicColumnSet.contains(columnName)
      ? SqlMonotonicity.INCREASING
      : SqlMonotonicity.NOT_MONOTONIC;
}