/** * Gets the minimum resources for this operator. * * @return The minimum resources set for this operator. */ @PublicEvolving public ResourceSpec getMinResources() { return transformation.getMinResources(); }
if (transform.getMinResources() != null && transform.getPreferredResources() != null) { streamGraph.setResources(transform.getId(), transform.getMinResources(), transform.getPreferredResources());
/** * Gets the minimum resources for this operator. * * @return The minimum resources set for this operator. */ @PublicEvolving public ResourceSpec getMinResources() { return transformation.getMinResources(); }
/** * Gets the minimum resources for this operator. * * @return The minimum resources set for this operator. */ @PublicEvolving public ResourceSpec getMinResources() { return transformation.getMinResources(); }
/** * Gets the minimum resources for this operator. * * @return The minimum resources set for this operator. */ @PublicEvolving public ResourceSpec getMinResources() { return transformation.getMinResources(); }
private void calculateStreamScan(CommonScan streamScan) { StreamTransformation transformation = streamScan.getSourceTransformation(tEnv.execEnv()); ResourceSpec sourceRes = transformation.getMinResources(); if (sourceRes == null) { sourceRes = ResourceSpec.DEFAULT; } calculateCommonScan(streamScan, sourceRes); }
private void calculateTableSourceScan(CommonScan tableSourceScan) { // user may have set resource for source transformation. StreamTransformation transformation = tableSourceScan.getSourceTransformation(tEnv.execEnv()); ResourceSpec sourceRes = transformation.getMinResources(); if (sourceRes == ResourceSpec.DEFAULT || sourceRes == null) { int heap = NodeResourceUtil.getSourceMem(tEnv.getConfig().getConf()); int direct = NodeResourceUtil.getSourceDirectMem(tEnv.getConfig().getConf()); sourceRes = NodeResourceUtil.getResourceSpec(tEnv.getConfig().getConf(), heap, direct); } calculateCommonScan(tableSourceScan, sourceRes); }
if (transform.getMinResources() != null && transform.getPreferredResources() != null) { streamGraph.setResources(transform.getId(), transform.getMinResources(), transform.getPreferredResources());
if (transform.getMinResources() != null && transform.getPreferredResources() != null) { streamGraph.setResources(transform.getId(), transform.getMinResources(), transform.getPreferredResources());
if (transform.getMinResources() != null && transform.getPreferredResources() != null) { streamGraph.setResources(transform.getId(), transform.getMinResources(), transform.getPreferredResources());