Tabnine Logo
CalciteConnectionProperty
Code IndexAdd Tabnine to your IDE (free)

How to use
CalciteConnectionProperty
in
org.apache.calcite.config

Best Java code snippets using org.apache.calcite.config.CalciteConnectionProperty (Showing top 20 results out of 315)

origin: apache/hive

private static RelOptPlanner createPlanner(
  HiveConf conf, Set<RelNode> corrScalarRexSQWithAgg, Set<RelNode> scalarAggNoGbyNoWin) {
 final Double maxSplitSize = (double) HiveConf.getLongVar(
     conf, HiveConf.ConfVars.MAPREDMAXSPLITSIZE);
 final Double maxMemory = (double) HiveConf.getLongVar(
     conf, HiveConf.ConfVars.HIVECONVERTJOINNOCONDITIONALTASKTHRESHOLD);
 HiveAlgorithmsConf algorithmsConf = new HiveAlgorithmsConf(maxSplitSize, maxMemory);
 HiveRulesRegistry registry = new HiveRulesRegistry();
 Properties calciteConfigProperties = new Properties();
 calciteConfigProperties.setProperty(
   CalciteConnectionProperty.TIME_ZONE.camelName(),
   conf.getLocalTimeZone().getId());
 calciteConfigProperties.setProperty(
   CalciteConnectionProperty.MATERIALIZATIONS_ENABLED.camelName(),
   Boolean.FALSE.toString());
 CalciteConnectionConfig calciteConfig = new CalciteConnectionConfigImpl(calciteConfigProperties);
 boolean isCorrelatedColumns = HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_CBO_STATS_CORRELATED_MULTI_KEY_JOINS);
 boolean heuristicMaterializationStrategy = HiveConf.getVar(conf,
   HiveConf.ConfVars.HIVE_MATERIALIZED_VIEW_REWRITING_SELECTION_STRATEGY).equals("heuristic");
 HivePlannerContext confContext = new HivePlannerContext(algorithmsConf, registry, calciteConfig,
   corrScalarRexSQWithAgg, scalarAggNoGbyNoWin,
   new HiveConfPlannerContext(isCorrelatedColumns, heuristicMaterializationStrategy));
 return HiveVolcanoPlanner.createPlanner(confContext);
}
origin: Qihoo360/Quicksql

public <T> T parserFactory(Class<T> parserFactoryClass,
  T defaultParserFactory) {
 return CalciteConnectionProperty.PARSER_FACTORY.wrap(properties)
   .getPlugin(parserFactoryClass, defaultParserFactory);
}
origin: org.apache.calcite/calcite-core

@Override protected Collection<ConnectionProperty> getConnectionProperties() {
 final List<ConnectionProperty> list = new ArrayList<>();
 Collections.addAll(list, BuiltInConnectionProperty.values());
 Collections.addAll(list, CalciteConnectionProperty.values());
 return list;
}
origin: Qihoo360/Quicksql

public PropEnv wrap(Properties properties) {
 return new PropEnv(parse2(properties, NAME_TO_PROPS), this);
}
origin: org.apache.calcite/calcite-core

 public SqlConformance conformance() {
  return CalciteConnectionProperty.CONFORMANCE.wrap(properties)
    .getEnum(SqlConformanceEnum.class);
 }
}
origin: Qihoo360/Quicksql

@Override protected Collection<ConnectionProperty> getConnectionProperties() {
 final List<ConnectionProperty> list = new ArrayList<>();
 Collections.addAll(list, BuiltInConnectionProperty.values());
 Collections.addAll(list, CalciteConnectionProperty.values());
 return list;
}
origin: org.apache.calcite/calcite-core

public PropEnv wrap(Properties properties) {
 return new PropEnv(parse2(properties, NAME_TO_PROPS), this);
}
origin: apache/nifi

properties.put(CalciteConnectionProperty.LEX.camelName(), Lex.MYSQL_ANSI.name());
origin: org.apache.calcite/calcite-core

public <T> T schemaFactory(Class<T> schemaFactoryClass,
  T defaultSchemaFactory) {
 return CalciteConnectionProperty.SCHEMA_FACTORY.wrap(properties)
   .getPlugin(schemaFactoryClass, defaultSchemaFactory);
}
origin: qubole/quark

@Override
protected Collection<ConnectionProperty> getConnectionProperties() {
 final List<ConnectionProperty> list = new ArrayList<ConnectionProperty>();
 Collections.addAll(list, BuiltInConnectionProperty.values());
 Collections.addAll(list, CalciteConnectionProperty.values());
 return list;
}
origin: apache/nifi

properties.put(CalciteConnectionProperty.LEX.camelName(), Lex.MYSQL_ANSI.name());
origin: Qihoo360/Quicksql

public boolean approximateDistinctCount() {
 return CalciteConnectionProperty.APPROXIMATE_DISTINCT_COUNT.wrap(properties)
   .getBoolean();
}
origin: Qihoo360/Quicksql

/** Returns a copy of this configuration with one property changed. */
public CalciteConnectionConfigImpl set(CalciteConnectionProperty property,
  String value) {
 final Properties properties1 = new Properties(properties);
 properties1.setProperty(property.camelName(), value);
 return new CalciteConnectionConfigImpl(properties1);
}
origin: Qihoo360/Quicksql

public NullCollation defaultNullCollation() {
 return CalciteConnectionProperty.DEFAULT_NULL_COLLATION.wrap(properties)
   .getEnum(NullCollation.class, NullCollation.HIGH);
}
origin: org.apache.calcite/calcite-core

/** Returns a copy of this configuration with one property changed. */
public CalciteConnectionConfigImpl set(CalciteConnectionProperty property,
  String value) {
 final Properties properties1 = new Properties(properties);
 properties1.setProperty(property.camelName(), value);
 return new CalciteConnectionConfigImpl(properties1);
}
origin: Qihoo360/Quicksql

public <T> T schemaFactory(Class<T> schemaFactoryClass,
  T defaultSchemaFactory) {
 return CalciteConnectionProperty.SCHEMA_FACTORY.wrap(properties)
   .getPlugin(schemaFactoryClass, defaultSchemaFactory);
}
origin: org.apache.drill.exec/drill-java-exec

 /**
  * Creates {@link CalciteConnectionConfigImpl} instance with specified caseSensitive property.
  *
  * @param caseSensitive is case sensitive.
  * @return {@link CalciteConnectionConfigImpl} instance
  */
 private static CalciteConnectionConfigImpl getConnectionConfig(boolean caseSensitive) {
  Properties properties = new Properties();
  properties.setProperty(CalciteConnectionProperty.CASE_SENSITIVE.camelName(),
    String.valueOf(caseSensitive));
  return new CalciteConnectionConfigImpl(properties);
 }
}
origin: Qihoo360/Quicksql

 public SqlConformance conformance() {
  return CalciteConnectionProperty.CONFORMANCE.wrap(properties)
    .getEnum(SqlConformanceEnum.class);
 }
}
origin: Qihoo360/Quicksql

PropBuilder set(CalciteConnectionProperty p, String v) {
 properties.setProperty(p.camelName(), v);
 return this;
}
origin: Qihoo360/Quicksql

public boolean createMaterializations() {
 return CalciteConnectionProperty.CREATE_MATERIALIZATIONS.wrap(properties)
   .getBoolean();
}
org.apache.calcite.configCalciteConnectionProperty

Javadoc

Properties that may be specified on the JDBC connect string.

Most used methods

  • camelName
  • values
  • parse2
    Fixed version of org.apache.calcite.avatica.ConnectionConfigImpl#parseuntil we upgrade Avatica.
  • wrap
  • name

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top 12 Jupyter Notebook extensions
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