Codota Logo
IdentifierNamespace
Code IndexAdd Codota to your IDE (free)

How to use
IdentifierNamespace
in
org.apache.calcite.sql.validate

Best Java code snippets using org.apache.calcite.sql.validate.IdentifierNamespace (Showing top 20 results out of 315)

  • Common ways to obtain IdentifierNamespace
private void myMethod () {
IdentifierNamespace i =
  • Codota IconSqlValidatorNamespace sqlValidatorNamespace;sqlValidatorNamespace.unwrap(IdentifierNamespace.class)
  • Codota IconSqlValidatorImpl sqlValidatorImpl;SqlNode node;new IdentifierNamespace(sqlValidatorImpl, node, null, null)
  • Codota IconSqlValidatorImpl sqlValidatorImpl;SqlMerge sqlMerge;(IdentifierNamespace) sqlValidatorImpl.getNamespace(sqlMerge.getTargetTable())
  • Smart code suggestions by Codota
}
origin: apache/flink

  new IdentifierNamespace(this, target, null, null);
RelDataType rowType = ns.getRowType();
SqlNode source = updateCall.getTargetTable().clone(SqlParserPos.ZERO);
final SqlNodeList selectList = new SqlNodeList(SqlParserPos.ZERO);
origin: apache/flink

if (ns.isWrapperFor(IdentifierNamespace.class)) {
  IdentifierNamespace idNs = ns.unwrap(IdentifierNamespace.class);
  final SqlIdentifier id = idNs.getId();
  for (int i = 0; i < id.names.size(); i++) {
    if (pos.toString().equals(
origin: apache/flink

validateNamespace(targetNamespace, unknownType);
SqlValidatorTable table = targetNamespace.getTable();
validateAccess(call.getTargetTable(), table, SqlAccessEnum.UPDATE);
origin: apache/flink

final SqlIdentifier id = (SqlIdentifier) node;
final IdentifierNamespace newNs =
  new IdentifierNamespace(
    this, id, extendList, enclosingNode,
    parentScope);
origin: Qihoo360/Quicksql

IdentifierNamespace(SqlValidatorImpl validator, SqlNode node,
  SqlNode enclosingNode, SqlValidatorScope parentScope) {
 this(validator, split(node).left, split(node).right, enclosingNode,
   parentScope);
}
origin: Qihoo360/Quicksql

@Override public SqlValidatorTable getTable() {
 return resolvedNamespace == null ? null : resolve().getTable();
}
origin: org.apache.calcite/calcite-core

public RelDataType validateImpl(RelDataType targetRowType) {
 resolvedNamespace = Objects.requireNonNull(resolveImpl(id));
 if (resolvedNamespace instanceof TableNamespace) {
  SqlValidatorTable table = resolvedNamespace.getTable();
origin: org.apache.calcite/calcite-core

final SqlIdentifier id = (SqlIdentifier) node;
final IdentifierNamespace newNs =
  new IdentifierNamespace(
    this, id, extendList, enclosingNode,
    parentScope);
origin: org.apache.calcite/calcite-core

IdentifierNamespace(SqlValidatorImpl validator, SqlNode node,
  SqlNode enclosingNode, SqlValidatorScope parentScope) {
 this(validator, split(node).left, split(node).right, enclosingNode,
   parentScope);
}
origin: org.apache.calcite/calcite-core

@Override public SqlValidatorTable getTable() {
 return resolvedNamespace == null ? null : resolve().getTable();
}
origin: Qihoo360/Quicksql

public RelDataType validateImpl(RelDataType targetRowType) {
 resolvedNamespace = Objects.requireNonNull(resolveImpl(id));
 if (resolvedNamespace instanceof TableNamespace) {
  SqlValidatorTable table = resolvedNamespace.getTable();
origin: org.apache.calcite/calcite-core

  new IdentifierNamespace(this, target, null, null);
RelDataType rowType = ns.getRowType();
SqlNode source = updateCall.getTargetTable().clone(SqlParserPos.ZERO);
final SqlNodeList selectList = new SqlNodeList(SqlParserPos.ZERO);
origin: Qihoo360/Quicksql

 @Override public boolean supportsModality(SqlModality modality) {
  final SqlValidatorTable table = getTable();
  if (table == null) {
   return modality == SqlModality.RELATION;
  }
  return table.supportsModality(modality);
 }
}
origin: Qihoo360/Quicksql

if (ns.isWrapperFor(IdentifierNamespace.class)) {
 IdentifierNamespace idNs = ns.unwrap(IdentifierNamespace.class);
 final SqlIdentifier id = idNs.getId();
 for (int i = 0; i < id.names.size(); i++) {
  if (pos.toString().equals(
origin: Qihoo360/Quicksql

final SqlIdentifier id = (SqlIdentifier) node;
final IdentifierNamespace newNs =
  new IdentifierNamespace(
    this, id, extendList, enclosingNode,
    parentScope);
origin: Qihoo360/Quicksql

  new IdentifierNamespace(this, target, null, null);
RelDataType rowType = ns.getRowType();
SqlNode source = updateCall.getTargetTable().clone(SqlParserPos.ZERO);
final SqlNodeList selectList = new SqlNodeList(SqlParserPos.ZERO);
origin: org.apache.calcite/calcite-core

 @Override public boolean supportsModality(SqlModality modality) {
  final SqlValidatorTable table = getTable();
  if (table == null) {
   return modality == SqlModality.RELATION;
  }
  return table.supportsModality(modality);
 }
}
origin: org.apache.calcite/calcite-core

if (ns.isWrapperFor(IdentifierNamespace.class)) {
 IdentifierNamespace idNs = ns.unwrap(IdentifierNamespace.class);
 final SqlIdentifier id = idNs.getId();
 for (int i = 0; i < id.names.size(); i++) {
  if (pos.toString().equals(
origin: org.apache.calcite/calcite-core

@Override public SqlMonotonicity getMonotonicity(String columnName) {
 final SqlValidatorTable table = getTable();
 return table.getMonotonicity(columnName);
}
origin: Qihoo360/Quicksql

@Override public SqlMonotonicity getMonotonicity(String columnName) {
 final SqlValidatorTable table = getTable();
 return table.getMonotonicity(columnName);
}
org.apache.calcite.sql.validateIdentifierNamespace

Javadoc

Namespace whose contents are defined by the type of an org.apache.calcite.sql.SqlIdentifier.

Most used methods

  • <init>
  • getId
  • getRowType
  • getTable
  • resolve
  • resolveImpl
  • split

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • findViewById (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now