public CubeHBaseRPC(ISegment segment, Cuboid cuboid, GTInfo fullGTInfo, StorageContext context) { Preconditions.checkArgument(segment instanceof CubeSegment, "segment must be CubeSegment"); this.cubeSeg = (CubeSegment) segment; this.cuboid = cuboid; this.fullGTInfo = fullGTInfo; this.queryContext = QueryContextFacade.current(); this.storageContext = context; this.fuzzyKeyEncoder = new FuzzyKeyEncoder(cubeSeg, cuboid); this.fuzzyMaskEncoder = new FuzzyMaskEncoder(cubeSeg, cuboid); }
@Override public ITuple next() { if (scanCount++ % 100 == 1) { QueryContextFacade.current().checkMillisBeforeDeadline(); } if (++scanCountDelta >= 1000) { flushScanCountDelta(); } return tupleIterator.next(); }
public OLAPQuery(DataContext optiqContext, EnumeratorTypeEnum type, int ctxId) { this.optiqContext = optiqContext; this.type = type; this.contextId = ctxId; QueryContextFacade.current().addContext(ctxId, type.toString(), type == EnumeratorTypeEnum.OLAP); }
StringBuilder cubeSb = new StringBuilder(); StringBuilder logSb = new StringBuilder("Processed rows for each storageContext: "); QueryContext queryContext = QueryContextFacade.current(); if (OLAPContext.getThreadLocalContexts() != null) { // contexts can be null in case of 'explain plan for' for (OLAPContext ctx : OLAPContext.getThreadLocalContexts()) {
QueryContextFacade.current().checkMillisBeforeDeadline();
System.out.println("EXECUTION PLAN AFTER REWRITE"); System.out.println(dumpPlan); QueryContextFacade.current().setCalcitePlan(this.copy(getTraitSet(), getInputs()));
conn = QueryConnection.getConnection(sqlRequest.getProject()); String userInfo = SecurityContextHolder.getContext().getAuthentication().getName(); QueryContext context = QueryContextFacade.current(); context.setUsername(userInfo); context.setGroups(AclPermissionUtil.getCurrentUserGroups());
BackdoorToggles.addToggles(sqlRequest.getBackdoorToggles()); final QueryContext queryContext = QueryContextFacade.current();
private SQLResponse queryAndUpdateCache(SQLRequest sqlRequest, boolean queryCacheEnabled) { KylinConfig kylinConfig = KylinConfig.getInstanceFromEnv(); Message msg = MsgPicker.getMsg(); final QueryContext queryContext = QueryContextFacade.current();
user = "unknown"; for (QueryContext.RPCStatistics entry : QueryContextFacade.current().getRpcStatisticsList()) { RecordEvent rpcMetricsEvent = new TimedRecordEvent( KylinConfig.getInstanceFromEnv().getKylinMetricsSubjectQueryRpcCall());
public CubeHBaseRPC(ISegment segment, Cuboid cuboid, GTInfo fullGTInfo, StorageContext context) { Preconditions.checkArgument(segment instanceof CubeSegment, "segment must be CubeSegment"); this.cubeSeg = (CubeSegment) segment; this.cuboid = cuboid; this.fullGTInfo = fullGTInfo; this.queryContext = QueryContextFacade.current(); this.storageContext = context; this.fuzzyKeyEncoder = new FuzzyKeyEncoder(cubeSeg, cuboid); this.fuzzyMaskEncoder = new FuzzyMaskEncoder(cubeSeg, cuboid); }
@Override public ITuple next() { if (scanCount++ % 100 == 1) { QueryContextFacade.current().checkMillisBeforeDeadline(); } if (++scanCountDelta >= 1000) { flushScanCountDelta(); } return tupleIterator.next(); }
public OLAPQuery(DataContext optiqContext, EnumeratorTypeEnum type, int ctxId) { this.optiqContext = optiqContext; this.type = type; this.contextId = ctxId; QueryContextFacade.current().addContext(ctxId, type.toString(), type == EnumeratorTypeEnum.OLAP); }
QueryContextFacade.current().checkMillisBeforeDeadline();
System.out.println("EXECUTION PLAN AFTER REWRITE"); System.out.println(dumpPlan); QueryContextFacade.current().setCalcitePlan(this.copy(getTraitSet(), getInputs()));