congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ObjectSqlType
Code IndexAdd Tabnine to your IDE (free)

How to use
ObjectSqlType
in
org.apache.calcite.sql.type

Best Java code snippets using org.apache.calcite.sql.type.ObjectSqlType (Showing top 10 results out of 315)

origin: Qihoo360/Quicksql

/**
 * Constructs an object type. This should only be called from a factory
 * method.
 *
 * @param typeName      SqlTypeName for this type (either Distinct or
 *                      Structured)
 * @param sqlIdentifier identifier for this type
 * @param nullable      whether type accepts nulls
 * @param fields        object attribute definitions
 */
public ObjectSqlType(
  SqlTypeName typeName,
  SqlIdentifier sqlIdentifier,
  boolean nullable,
  List<? extends RelDataTypeField> fields,
  RelDataTypeComparability comparability) {
 super(typeName, nullable, fields);
 this.sqlIdentifier = sqlIdentifier;
 this.comparability = comparability;
 computeDigest();
}
origin: Qihoo360/Quicksql

protected RelDataType canonize(RelDataType type) {
 type = super.canonize(type);
 if (!(type instanceof ObjectSqlType)) {
  return type;
 }
 ObjectSqlType objectType = (ObjectSqlType) type;
 if (!objectType.isNullable()) {
  objectType.setFamily(objectType);
 } else {
  objectType.setFamily(
    (RelDataTypeFamily) createTypeWithNullability(
      objectType,
      false));
 }
 return type;
}
origin: org.apache.calcite/calcite-core

private RelDataType copyObjectType(RelDataType type, boolean nullable) {
 return new ObjectSqlType(
   type.getSqlTypeName(),
   type.getSqlIdentifier(),
   nullable,
   type.getFieldList(),
   type.getComparability());
}
origin: Qihoo360/Quicksql

@Override public RelDataType getNamedType(SqlIdentifier typeName) {
 if (typeName.equalsDeep(fixture.addressType.getSqlIdentifier(), Litmus.IGNORE)) {
  return fixture.addressType;
 } else {
  return super.getNamedType(typeName);
 }
}
origin: Qihoo360/Quicksql

private RelDataType copyObjectType(RelDataType type, boolean nullable) {
 return new ObjectSqlType(
   type.getSqlTypeName(),
   type.getSqlIdentifier(),
   nullable,
   type.getFieldList(),
   type.getComparability());
}
origin: org.apache.calcite/calcite-core

@Override public RelDataType getNamedType(SqlIdentifier typeName) {
 if (typeName.equalsDeep(fixture.addressType.getSqlIdentifier(), Litmus.IGNORE)) {
  return fixture.addressType;
 } else {
  return super.getNamedType(typeName);
 }
}
origin: Qihoo360/Quicksql

  typeFactory.createArrayType(empRecordType, -1);
addressType =
  new ObjectSqlType(SqlTypeName.STRUCTURED,
    new SqlIdentifier("ADDRESS", SqlParserPos.ZERO),
    false,
origin: org.apache.calcite/calcite-core

protected RelDataType canonize(RelDataType type) {
 type = super.canonize(type);
 if (!(type instanceof ObjectSqlType)) {
  return type;
 }
 ObjectSqlType objectType = (ObjectSqlType) type;
 if (!objectType.isNullable()) {
  objectType.setFamily(objectType);
 } else {
  objectType.setFamily(
    (RelDataTypeFamily) createTypeWithNullability(
      objectType,
      false));
 }
 return type;
}
origin: org.apache.calcite/calcite-core

/**
 * Constructs an object type. This should only be called from a factory
 * method.
 *
 * @param typeName      SqlTypeName for this type (either Distinct or
 *                      Structured)
 * @param sqlIdentifier identifier for this type
 * @param nullable      whether type accepts nulls
 * @param fields        object attribute definitions
 */
public ObjectSqlType(
  SqlTypeName typeName,
  SqlIdentifier sqlIdentifier,
  boolean nullable,
  List<? extends RelDataTypeField> fields,
  RelDataTypeComparability comparability) {
 super(typeName, nullable, fields);
 this.sqlIdentifier = sqlIdentifier;
 this.comparability = comparability;
 computeDigest();
}
origin: org.apache.calcite/calcite-core

  typeFactory.createArrayType(empRecordType, -1);
addressType =
  new ObjectSqlType(SqlTypeName.STRUCTURED,
    new SqlIdentifier("ADDRESS", SqlParserPos.ZERO),
    false,
org.apache.calcite.sql.typeObjectSqlType

Javadoc

ObjectSqlType represents an SQL structured user-defined type.

Most used methods

  • <init>
    Constructs an object type. This should only be called from a factory method.
  • computeDigest
  • getSqlIdentifier
  • isNullable
  • setFamily

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now