private MemoryManager newMemoryManager(){
  final DirectBufferPool pool=DirectBufferPool.INSTANCE;
  long maxMemoryBytesPerQuery=QueryHints.DEFAULT_ANALYTIC_MAX_MEMORY_PER_QUERY;
  if (maxMemoryBytesPerQuery < 0) {
    maxMemoryBytesPerQuery=0L;
  }
  final boolean blocking;
  final int nsectors;
  if (maxMemoryBytesPerQuery == 0) {
    blocking=true;
    nsectors=Integer.MAX_VALUE;
  }
 else {
    blocking=false;
    final int bufferCapacity=pool.getBufferCapacity();
    nsectors=(int)Math.ceil(maxMemoryBytesPerQuery / (double)bufferCapacity);
  }
  return new MemoryManager(pool,nsectors,blocking,null);
}

private MemoryManager newMemoryManager ( ) { final DirectBufferPool pool = DirectBufferPool . INSTANCE ; long maxMemoryBytesPerQuery = QueryHints . DEFAULT_ANALYTIC_MAX_MEMORY_PER_QUERY ; if ( maxMemoryBytesPerQuery < 0 ) { maxMemoryBytesPerQuery = 0L ; } final boolean blocking ; final int nsectors ; if ( maxMemoryBytesPerQuery == 0 ) { blocking = true ; nsectors = Integer . MAX_VALUE ; } else { blocking = false ; final int bufferCapacity = pool . getBufferCapacity ( ) ; nsectors = ( int ) Math . ceil ( maxMemoryBytesPerQuery / ( double ) bufferCapacity ) ; } return new MemoryManager ( pool , nsectors , blocking , null ) ; }
allocate a memory manager for the query .
