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

How to use
setConnUrl
method
in
org.apache.kylin.storage.StorageContext

Best Java code snippets using org.apache.kylin.storage.StorageContext.setConnUrl (Showing top 3 results out of 315)

origin: apache/kylin

@Override
public void implementOLAP(OLAPImplementor implementor) {
  Preconditions.checkState(columnRowType == null, "OLAPTableScan MUST NOT be shared by more than one prent");
  // create context in case of non-join
  if (implementor.getContext() == null || !(implementor.getParentNode() instanceof OLAPJoinRel)
      || implementor.isNewOLAPContextRequired()) {
    implementor.allocateContext();
  }
  context = implementor.getContext();
  context.allTableScans.add(this);
  columnRowType = buildColumnRowType();
  if (context.olapSchema == null) {
    OLAPSchema schema = olapTable.getSchema();
    context.olapSchema = schema;
    context.storageContext.setConnUrl(schema.getStorageUrl());
  }
  if (context.firstTableScan == null) {
    context.firstTableScan = this;
  }
  if (needCollectionColumns(implementor)) {
    // OLAPToEnumerableConverter on top of table scan, should be a select * from table
    for (TblColRef tblColRef : columnRowType.getAllColumns()) {
      if (!tblColRef.getName().startsWith("_KY_")) {
        context.allColumns.add(tblColRef);
      }
    }
  }
}
origin: KylinOLAP/Kylin

@Before
public void setUp() throws Exception {
  this.createTestMetadata();
  CubeManager cubeMgr = CubeManager.getInstance(getTestConfig());
  cube = cubeMgr.getCube("TEST_KYLIN_CUBE_WITHOUT_SLR_EMPTY");
  Assert.assertNotNull(cube);
  storageEngine = StorageEngineFactory.getStorageEngine(cube);
  String url = KylinConfig.getInstanceFromEnv().getStorageUrl();
  context = new StorageContext();
  context.setConnUrl(url);
}
origin: org.apache.kylin/kylin-query

@Override
public void implementOLAP(OLAPImplementor implementor) {
  Preconditions.checkState(columnRowType == null, "OLAPTableScan MUST NOT be shared by more than one prent");
  // create context in case of non-join
  if (implementor.getContext() == null || !(implementor.getParentNode() instanceof OLAPJoinRel)
      || implementor.isNewOLAPContextRequired()) {
    implementor.allocateContext();
  }
  context = implementor.getContext();
  context.allTableScans.add(this);
  columnRowType = buildColumnRowType();
  if (context.olapSchema == null) {
    OLAPSchema schema = olapTable.getSchema();
    context.olapSchema = schema;
    context.storageContext.setConnUrl(schema.getStorageUrl());
  }
  if (context.firstTableScan == null) {
    context.firstTableScan = this;
  }
  if (needCollectionColumns(implementor)) {
    // OLAPToEnumerableConverter on top of table scan, should be a select * from table
    for (TblColRef tblColRef : columnRowType.getAllColumns()) {
      if (!tblColRef.getName().startsWith("_KY_")) {
        context.allColumns.add(tblColRef);
      }
    }
  }
}
org.apache.kylin.storageStorageContextsetConnUrl

Popular methods of StorageContext

  • setThreshold
  • <init>
  • getCuboid
  • getLimit
  • hasSort
  • isExactAggregation
  • isLimitEnabled
  • setCuboid
  • setExactAggregation
  • applyLimitPushDown
  • enableCoprocessor
  • enableLimit
  • enableCoprocessor,
  • enableLimit,
  • enableStreamAggregate,
  • getAliasMap,
  • getConnUrl,
  • getFinalPushDownLimit,
  • getMapping,
  • getOffset,
  • getProcessedRowCount

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top PhpStorm plugins
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