Package com.alimama.mdrill.buffer.BlockBufferMalloc

Examples of com.alimama.mdrill.buffer.BlockBufferMalloc.blockData


  private static Object lock=new Object();
  private int getbuff(long position,byte[] b,int offset,int len) throws IOException
  {
    long blockIndex=position>>BLOCK_SIZE_OFFSET;
    long blocktart=blockIndex<<BLOCK_SIZE_OFFSET;
    blockData blockdata=null;
    if(blockIndex==this.lastBlockIndex)
    {
      blockdata=this.lastbuff;
    }
   
View Full Code Here


    }
 
  private void freeBlock()
  {
    this.lastbuff.allowFree.decrementAndGet();
    this.lastbuff=new blockData(null, 0);
    this.lastBlockIndex=-1l;
  }
View Full Code Here

  }

  public Object clone() {
    BlockBufferInput clone = (BlockBufferInput) super.clone();
      clone.isClone = true;
      clone.lastbuff=new blockData(null, 0);
      clone.lastBlockIndex=-1l;
      return clone;
  }
View Full Code Here

TOP

Related Classes of com.alimama.mdrill.buffer.BlockBufferMalloc.blockData

Copyright © 2018 www.massapicom. 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.