org.apache.flink.runtime.execution.Environment.getMemoryManager()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(187)

本文整理了Java中org.apache.flink.runtime.execution.Environment.getMemoryManager()方法的一些代码示例,展示了Environment.getMemoryManager()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Environment.getMemoryManager()方法的具体详情如下:
包路径:org.apache.flink.runtime.execution.Environment
类名称:Environment
方法名:getMemoryManager

Environment.getMemoryManager介绍

[英]Returns the current MemoryManager.
[中]返回当前内存管理器。

代码示例

代码示例来源:origin: org.apache.flink/flink-runtime_2.11

  1. @Override
  2. public MemoryManager getMemoryManager() {
  3. return getEnvironment().getMemoryManager();
  4. }

代码示例来源:origin: org.apache.flink/flink-runtime_2.10

  1. @Override
  2. public MemoryManager getMemoryManager() {
  3. return getEnvironment().getMemoryManager();
  4. }

代码示例来源:origin: org.apache.flink/flink-runtime_2.11

  1. @Override
  2. public void cancelTask() {
  3. this.running = false;
  4. try {
  5. this.sorter.dispose();
  6. }
  7. catch (Exception e) {
  8. // may happen during concurrent modification when canceling
  9. }
  10. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  11. }

代码示例来源:origin: org.apache.flink/flink-runtime

  1. @Override
  2. public void cancelTask() {
  3. this.running = false;
  4. try {
  5. this.sorter.dispose();
  6. }
  7. catch (Exception e) {
  8. // may happen during concurrent modification when canceling
  9. }
  10. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  11. }

代码示例来源:origin: org.apache.flink/flink-runtime_2.10

  1. @Override
  2. public void cancelTask() {
  3. this.running = false;
  4. try {
  5. this.sorter.dispose();
  6. }
  7. catch (Exception e) {
  8. // may happen during concurrent modification when canceling
  9. }
  10. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  11. }

代码示例来源:origin: com.alibaba.blink/flink-runtime

  1. @Override
  2. public void cancelTask() {
  3. this.running = false;
  4. try {
  5. this.sorter.dispose();
  6. }
  7. catch (Exception e) {
  8. // may happen during concurrent modification when canceling
  9. }
  10. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  11. }

代码示例来源:origin: com.alibaba.blink/flink-runtime

  1. @Override
  2. public void cancelTask() {
  3. this.running = false;
  4. if (this.sorter != null) {
  5. try {
  6. this.sorter.dispose();
  7. }
  8. catch (Exception e) {
  9. // may happen during concurrent modification
  10. }
  11. }
  12. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  13. }

代码示例来源:origin: org.apache.flink/flink-runtime_2.10

  1. @Override
  2. public void cancelTask() {
  3. this.running = false;
  4. if (this.sorter != null) {
  5. try {
  6. this.sorter.dispose();
  7. }
  8. catch (Exception e) {
  9. // may happen during concurrent modification
  10. }
  11. }
  12. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  13. }

代码示例来源:origin: org.apache.flink/flink-runtime_2.10

  1. @Override
  2. public void closeTask() throws Exception {
  3. this.sorter.dispose();
  4. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  5. if (this.running) {
  6. BatchTask.closeUserCode(this.combiner);
  7. }
  8. }

代码示例来源:origin: org.apache.flink/flink-runtime_2.11

  1. @Override
  2. public void closeTask() throws Exception {
  3. this.sorter.dispose();
  4. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  5. if (this.running) {
  6. BatchTask.closeUserCode(this.combiner);
  7. }
  8. }

代码示例来源:origin: com.alibaba.blink/flink-runtime

  1. @Override
  2. public void closeTask() throws Exception {
  3. this.sorter.dispose();
  4. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  5. if (this.running) {
  6. BatchTask.closeUserCode(this.combiner);
  7. }
  8. }

代码示例来源:origin: org.apache.flink/flink-runtime

  1. @Override
  2. public void closeTask() throws Exception {
  3. if (this.sorter != null) {
  4. this.sorter.dispose();
  5. }
  6. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  7. if (this.running) {
  8. BatchTask.closeUserCode(this.reducer);
  9. }
  10. }

代码示例来源:origin: org.apache.flink/flink-runtime_2.10

  1. @Override
  2. public void closeTask() throws Exception {
  3. if (this.sorter != null) {
  4. this.sorter.dispose();
  5. }
  6. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  7. if (this.running) {
  8. BatchTask.closeUserCode(this.reducer);
  9. }
  10. }

代码示例来源:origin: org.apache.flink/flink-runtime_2.11

  1. @Override
  2. public void closeTask() throws Exception {
  3. if (this.sorter != null) {
  4. this.sorter.dispose();
  5. }
  6. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  7. if (this.running) {
  8. BatchTask.closeUserCode(this.reducer);
  9. }
  10. }

代码示例来源:origin: org.apache.flink/flink-runtime

  1. @Override
  2. public void closeTask() throws Exception {
  3. this.sorter.dispose();
  4. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  5. if (this.running) {
  6. BatchTask.closeUserCode(this.combiner);
  7. }
  8. }

代码示例来源:origin: com.alibaba.blink/flink-runtime

  1. @Override
  2. public void closeTask() throws Exception {
  3. if (this.sorter != null) {
  4. this.sorter.dispose();
  5. }
  6. this.parent.getEnvironment().getMemoryManager().release(this.memory);
  7. if (this.running) {
  8. BatchTask.closeUserCode(this.reducer);
  9. }
  10. }

代码示例来源:origin: org.apache.flink/flink-runtime_2.10

  1. @Override
  2. public void closeTask() throws Exception {
  3. if (sorter != null) {
  4. sorter.dispose();
  5. }
  6. if (table != null) {
  7. table.close();
  8. }
  9. parent.getEnvironment().getMemoryManager().release(memory);
  10. BatchTask.closeUserCode(reducer);
  11. }

代码示例来源:origin: com.alibaba.blink/flink-runtime

  1. @Override
  2. public void closeTask() throws Exception {
  3. if (sorter != null) {
  4. sorter.dispose();
  5. }
  6. if (table != null) {
  7. table.close();
  8. }
  9. parent.getEnvironment().getMemoryManager().release(memory);
  10. BatchTask.closeUserCode(reducer);
  11. }

代码示例来源:origin: org.apache.flink/flink-runtime_2.11

  1. @Override
  2. public void closeTask() throws Exception {
  3. if (sorter != null) {
  4. sorter.dispose();
  5. }
  6. if (table != null) {
  7. table.close();
  8. }
  9. parent.getEnvironment().getMemoryManager().release(memory);
  10. BatchTask.closeUserCode(reducer);
  11. }

代码示例来源:origin: org.apache.flink/flink-runtime

  1. @Override
  2. public void closeTask() throws Exception {
  3. if (sorter != null) {
  4. sorter.dispose();
  5. }
  6. if (table != null) {
  7. table.close();
  8. }
  9. parent.getEnvironment().getMemoryManager().release(memory);
  10. BatchTask.closeUserCode(reducer);
  11. }

相关文章