Package org.apache.flink.runtime.io.disk.iomanager

Examples of org.apache.flink.runtime.io.disk.iomanager.BlockChannelReader.deleteChannel()


     
      Assert.assertTrue("The re-generated and the read record do not match.", k1.equals(k2) && v1.equals(v2));
    }
   
    this.memoryManager.release(inView.close());
    reader.deleteChannel();
  }
 
  @Test
  public void testWriteAndReadLongRecords() throws Exception
  {
View Full Code Here


      final Value v2 = readRec.getField(1, Value.class);
      Assert.assertTrue("The re-generated and the read record do not match.", k1.equals(k2) && v1.equals(v2));
    }
   
    this.memoryManager.release(inView.close());
    reader.deleteChannel();
  }
 
  @Test
  public void testReadTooMany() throws Exception
  {
View Full Code Here

      // unexpected
      Assert.fail("Unexpected Exception: " + t.getMessage());
    }
   
    this.memoryManager.release(inView.close());
    reader.deleteChannel();
  }
 
  @Test
  public void testReadWithoutKnownBlockCount() throws Exception
  {
View Full Code Here

     
      Assert.assertTrue("The re-generated and the read record do not match.", k1.equals(k2) && v1.equals(v2));
    }
   
    this.memoryManager.release(inView.close());
    reader.deleteChannel();
  }
 
  @Test
  public void testWriteReadOneBufferOnly() throws Exception
  {
View Full Code Here

     
      Assert.assertTrue("The re-generated and the read record do not match.", k1.equals(k2) && v1.equals(v2));
    }
   
    this.memoryManager.release(inView.close());
    reader.deleteChannel();
  }
 
  @Test
  public void testWriteReadNotAll() throws Exception
  {
View Full Code Here

     
      Assert.assertTrue("The re-generated and the read record do not match.", k1.equals(k2) && v1.equals(v2));
    }
   
    this.memoryManager.release(inView.close());
    reader.deleteChannel();
  }
}
View Full Code Here

      in.close();
      reader.close();
     
      long readElapsed = System.currentTimeMillis() - readStart;
     
      reader.deleteChannel();
      reader = null;
     
      LOG.info("IOManager with " + numSegments + " mem segments: write " + writeElapsed + " msecs, read " + readElapsed + " msecs.");
     
      memManager.release(memory);
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.