org.apache.calcite.sql.validate.SqlModality Java Examples
The following examples show how to use
org.apache.calcite.sql.validate.SqlModality.
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: RelOptTableImpl.java From Bats with Apache License 2.0 | 5 votes |
@Override public boolean supportsModality(SqlModality modality) { switch (modality) { case STREAM: return table instanceof StreamableTable; default: return !(table instanceof StreamableTable); } }
Example #2
Source File: RelOptTableImpl.java From calcite with Apache License 2.0 | 5 votes |
public boolean supportsModality(SqlModality modality) { switch (modality) { case STREAM: return table instanceof StreamableTable; default: return !(table instanceof StreamableTable); } }
Example #3
Source File: SqlAdvisorValidator.java From Bats with Apache License 2.0 | 4 votes |
@Override public boolean validateModality(SqlSelect select, SqlModality modality, boolean fail) { return true; }
Example #4
Source File: SqlCollectionTableOperator.java From Bats with Apache License 2.0 | 4 votes |
public SqlCollectionTableOperator(String name, SqlModality modality) { super(name, SqlKind.COLLECTION_TABLE, 200, true, ReturnTypes.ARG0, null, OperandTypes.ANY); this.modality = modality; }
Example #5
Source File: SqlCollectionTableOperator.java From Bats with Apache License 2.0 | 4 votes |
public SqlModality getModality() { return modality; }
Example #6
Source File: DremioPrepareTable.java From dremio-oss with Apache License 2.0 | 4 votes |
@Override public boolean supportsModality(SqlModality paramSqlModality) { return SqlModality.RELATION == paramSqlModality; }
Example #7
Source File: TestSQLAnalyzer.java From dremio-oss with Apache License 2.0 | 4 votes |
@Override public boolean supportsModality(SqlModality modality) { return false; }
Example #8
Source File: FlinkPreparingTableBase.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean supportsModality(SqlModality modality) { return false; }
Example #9
Source File: SqlAdvisorValidator.java From calcite with Apache License 2.0 | 4 votes |
@Override public boolean validateModality(SqlSelect select, SqlModality modality, boolean fail) { return true; }
Example #10
Source File: SqlCollectionTableOperator.java From calcite with Apache License 2.0 | 4 votes |
public SqlCollectionTableOperator(String name, SqlModality modality) { super(name, SqlKind.COLLECTION_TABLE, 200, true, ReturnTypes.ARG0, null, OperandTypes.ANY); this.modality = modality; }
Example #11
Source File: SqlCollectionTableOperator.java From calcite with Apache License 2.0 | 4 votes |
public SqlModality getModality() { return modality; }
Example #12
Source File: MockCatalogReader.java From calcite with Apache License 2.0 | 4 votes |
public boolean supportsModality(SqlModality modality) { return modality == (stream ? SqlModality.STREAM : SqlModality.RELATION); }