Examples of DefaultMemoryManager


Examples of eu.stratosphere.nephele.services.memorymanager.spi.DefaultMemoryManager

    this.pairSerializer = new IntPairSerializer();
    this.pairComparator = new IntPairComparator();
    this.pairRecordPairComparator = new IntPairRecordPairComparator();
    this.recordPairPairComparator = new RecordIntPairPairComparator();
   
    this.memoryManager = new DefaultMemoryManager(MEMORY_SIZE);
    this.ioManager = new IOManager();
  }
View Full Code Here

Examples of eu.stratosphere.nephele.services.memorymanager.spi.DefaultMemoryManager

    this.pairProbeSideAccesssor = new IntPairSerializer();
    this.pairBuildSideComparator = new IntPairComparator();
    this.pairProbeSideComparator = new IntPairComparator();
    this.pairComparator = new IntPairPairComparator();
   
    this.memManager = new DefaultMemoryManager(32 * 1024 * 1024);
    this.ioManager = new IOManager();
  }
View Full Code Here

Examples of eu.stratosphere.nephele.services.memorymanager.spi.DefaultMemoryManager

  private DefaultMemoryManager memoryManager;


  @Before
  public void beforeTest() {
    memoryManager = new DefaultMemoryManager(NUMBER_OF_SEGMENTS * SEGMENT_SIZE);
    ioManager = new IOManager();
  }
View Full Code Here

Examples of eu.stratosphere.nephele.services.memorymanager.spi.DefaultMemoryManager

  private Random random;

  @Before
  public void setUp()
  {
    this.memoryManager = new DefaultMemoryManager(MEMORY_SIZE, PAGE_SIZE);
    this.random = new Random(RANDOM_SEED);
  }
View Full Code Here

Examples of eu.stratosphere.nephele.services.memorymanager.spi.DefaultMemoryManager

  private Random random;

  @Before
  public void setUp() throws Exception{
    try {
      this.manager = new DefaultMemoryManager(MANAGED_MEMORY_SIZE, PAGE_SIZE);
      this.segment = manager.allocatePages(new DefaultMemoryManagerTest.DummyInvokable(), 1).get(0);
      this.random = new Random(RANDOM_SEED);
    } catch (Exception e) {
      e.printStackTrace();
      fail("Test setup failed.");
View Full Code Here

Examples of org.apache.flink.runtime.memorymanager.DefaultMemoryManager

      try {
        @SuppressWarnings("unused")
        final boolean lazyAllocation = GlobalConfiguration.getBoolean(ConfigConstants.TASK_MANAGER_MEMORY_LAZY_ALLOCATION_KEY,
          ConfigConstants.DEFAULT_TASK_MANAGER_MEMORY_LAZY_ALLOCATION);
       
        this.memoryManager = new DefaultMemoryManager(memorySize, this.numberOfSlots, pageSize);
      } catch (Throwable t) {
        LOG.error("Unable to initialize memory manager with " + (memorySize >>> 20) + " megabytes of memory.", t);
        throw new Exception("Unable to initialize memory manager.", t);
      }
    }
View Full Code Here

Examples of org.apache.flink.runtime.memorymanager.DefaultMemoryManager

    this.pairProbeSideAccesssor = new IntPairSerializer();
    this.pairBuildSideComparator = new IntPairComparator();
    this.pairProbeSideComparator = new IntPairComparator();
    this.pairComparator = new IntPairPairComparator();
   
    this.memManager = new DefaultMemoryManager(32 * 1024 * 1024,1);
    this.ioManager = new IOManager();
  }
View Full Code Here

Examples of org.apache.flink.runtime.memorymanager.DefaultMemoryManager

    final long totalMem = Math.max(memory, 0) + (Math.max(maxNumSorters, 0) * perSortMemory);
   
    this.perSortMem = perSortMemory;
    this.perSortFractionMem = (double)perSortMemory/totalMem;
    this.ioManager = new IOManager();
    this.memManager = totalMem > 0 ? new DefaultMemoryManager(totalMem,1) : null;
   
    this.inputs = new ArrayList<MutableObjectIterator<Record>>();
    this.comparators = new ArrayList<TypeComparator<Record>>();
    this.sorters = new ArrayList<UnilateralSortMerger<Record>>();
   
View Full Code Here

Examples of org.apache.flink.runtime.memorymanager.DefaultMemoryManager

    this.jobConfiguration = new Configuration();
    this.taskConfiguration = new Configuration();
    this.inputs = new LinkedList<InputGate<Record>>();
    this.outputs = new LinkedList<OutputGate>();

    this.memManager = new DefaultMemoryManager(memorySize, 1);
    this.ioManager = new IOManager(System.getProperty("java.io.tmpdir"));
    this.inputSplitProvider = inputSplitProvider;
    this.mockBuffer = new Buffer(new MemorySegment(new byte[bufferSize]), bufferSize, null);
  }
View Full Code Here

Examples of org.apache.flink.runtime.memorymanager.DefaultMemoryManager

  private TypeComparator<IntPair> comparator;


  @Before
  public void beforeTest() {
    this.memoryManager = new DefaultMemoryManager(MEMORY_SIZE, MEMORY_PAGE_SIZE);
    this.serializer = new IntPairSerializer();
    this.comparator = new IntPairComparator();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.