Java 类org.apache.hadoop.hbase.client.coprocessor.Batch.Call 实例源码

项目:uzaygezen    文件:MockHTable.java   
@Override
public <T extends CoprocessorProtocol, R> Map<byte[], R> coprocessorExec(
  Class<T> protocol, byte[] startKey, byte[] endKey, Call<T, R> callable) throws IOException,
  Throwable {
  // TODO Auto-generated method stub
  return null;
}
项目:uzaygezen    文件:MockHTable.java   
@Override
public <T extends CoprocessorProtocol, R> void coprocessorExec(
  Class<T> protocol, byte[] startKey, byte[] endKey, Call<T, R> callable, Callback<R> callback)
  throws IOException, Throwable {
  // TODO Auto-generated method stub

}
项目:openyu-commons    文件:HzSessionImpl.java   
public <T extends CoprocessorProtocol, R> Map<byte[], R> coprocessorExec(
        String tableName, Class<T> paramClass, byte[] paramArrayOfByte1,
        byte[] paramArrayOfByte2, Call<T, R> paramCall) throws IOException,
        Throwable {
    return poolableHConnection.coprocessorExec(tableName, paramClass,
            paramArrayOfByte1, paramArrayOfByte2, paramCall);
}
项目:openyu-commons    文件:HzSessionImpl.java   
public <T extends CoprocessorProtocol, R> void coprocessorExec(
        String tableName, Class<T> paramClass, byte[] paramArrayOfByte1,
        byte[] paramArrayOfByte2, Call<T, R> paramCall,
        Callback<R> paramCallback) throws IOException, Throwable {
    poolableHConnection.coprocessorExec(tableName, paramClass,
            paramArrayOfByte1, paramArrayOfByte2, paramCall, paramCallback);
}
项目:openyu-commons    文件:HzBaoSupporter.java   
public <T extends CoprocessorProtocol, R> Map<byte[], R> coprocessorExec(String tableName, Class<T> paramClass,
        byte[] paramArrayOfByte1, byte[] paramArrayOfByte2, Call<T, R> paramCall) {
    try {
        return hzTemplate.coprocessorExec(tableName, paramClass, paramArrayOfByte1, paramArrayOfByte2, paramCall);
    } catch (Throwable ex) {
        throw new HzBaoException(ex);
    }
}
项目:openyu-commons    文件:HzBaoSupporter.java   
public <T extends CoprocessorProtocol, R> void coprocessorExec(String tableName, Class<T> paramClass,
        byte[] paramArrayOfByte1, byte[] paramArrayOfByte2, Call<T, R> paramCall, Callback<R> paramCallback) {
    try {
        hzTemplate.coprocessorExec(tableName, paramClass, paramArrayOfByte1, paramArrayOfByte2, paramCall,
                paramCallback);
    } catch (Throwable ex) {
        throw new HzBaoException(ex);
    }
}
项目:openyu-commons    文件:HzTemplateImpl.java   
@Override
public <T extends CoprocessorProtocol, R> Map<byte[], R> coprocessorExec(String tableName,
        final Class<T> paramClass, final byte[] paramArrayOfByte1, final byte[] paramArrayOfByte2,
        final Call<T, R> paramCall) throws IOException, Throwable {
    return execute(tableName, new HzTableCallback<Map<byte[], R>>() {
        public Map<byte[], R> doInAction(HTableInterface table) throws HzTemplateException {
            try {
                return table.coprocessorExec(paramClass, paramArrayOfByte1, paramArrayOfByte2, paramCall);
            } catch (Throwable ex) {
                throw new HzTemplateException(ex);
            }
        }
    });
}
项目:openyu-commons    文件:HzTemplateImpl.java   
public <T extends CoprocessorProtocol, R> void coprocessorExec(String tableName, final Class<T> paramClass,
        final byte[] paramArrayOfByte1, final byte[] paramArrayOfByte2, final Call<T, R> paramCall,
        final Callback<R> paramCallback) throws IOException, Throwable {
    execute(tableName, new HzTableCallback<Object>() {
        public Object doInAction(HTableInterface table) throws HzTemplateException {
            try {
                table.coprocessorExec(paramClass, paramArrayOfByte1, paramArrayOfByte2, paramCall, paramCallback);
                return null;
            } catch (Throwable ex) {
                throw new HzTemplateException(ex);
            }
        }
    });
}
项目:CSBT    文件:CrossSiteHTable.java   
/**
 * {@inheritDoc}
 */
@Override
public <T extends Service, R> Map<byte[], R> coprocessorService(Class<T> protocol,
    byte[] startKey, byte[] endKey, Call<T, R> callable) throws IOException, Throwable {
  final Map<byte[], R> results = Collections.synchronizedMap(new TreeMap<byte[], R>(
      Bytes.BYTES_COMPARATOR));
  coprocessorService(protocol, startKey, endKey, callable, new Batch.Callback<R>() {
    public void update(byte[] region, byte[] row, R value) {
      results.put(region, value);
    }
  });
  return results;
}
项目:CSBT    文件:CrossSiteHTable.java   
/**
 * {@inheritDoc}
 */
@Override
public <T extends Service, R> Map<byte[], R> coprocessorService(Class<T> protocol,
    byte[] startKey, byte[] endKey, String[] clusterNames, Call<T, R> callable)
    throws IOException, Throwable {
  final Map<byte[], R> results = Collections.synchronizedMap(new TreeMap<byte[], R>(
      Bytes.BYTES_COMPARATOR));
  coprocessorService(protocol, startKey, endKey, clusterNames, callable, new Batch.Callback<R>() {
    public void update(byte[] region, byte[] row, R value) {
      results.put(region, value);
    }
  });
  return results;
}
项目:CSBT    文件:CrossSiteHTable.java   
/**
 * {@inheritDoc}
 */
@Override
public <T extends Service, R> void coprocessorService(final Class<T> protocol,
    final byte[] startKey, final byte[] endKey, final Call<T, R> callable,
    final Callback<R> callback) throws IOException, Throwable {
  coprocessorService(protocol, startKey, endKey, null, callable, callback);
}
项目:CSBT    文件:CrossSiteHTablePool.java   
@Override
public <T extends Service, R> void coprocessorService(
    Class<T> protocol, byte[] startKey, byte[] endKey,
    Batch.Call<T, R> callable, Batch.Callback<R> callback)
    throws IOException, Throwable {
  table.coprocessorService(protocol, startKey, endKey, callable, callback);
}
项目:foxtrot    文件:MockHTable.java   
@Override
public <T extends CoprocessorProtocol, R> Map<byte[], R> coprocessorExec(
        Class<T> protocol, byte[] startKey, byte[] endKey, Call<T, R> callable) throws IOException,
        Throwable {
    // TODO Auto-generated method stub
    return null;
}
项目:foxtrot    文件:MockHTable.java   
@Override
public <T extends CoprocessorProtocol, R> void coprocessorExec(
        Class<T> protocol, byte[] startKey, byte[] endKey, Call<T, R> callable, Callback<R> callback)
        throws IOException, Throwable {
    // TODO Auto-generated method stub

}
项目:hbase.mcc    文件:HTableMultiCluster.java   
public <T extends Service, R> Map<byte[], R> coprocessorService(
        Class<T> service, byte[] startKey, byte[] endKey, Call<T, R> callable)
        throws ServiceException, Throwable {
  // TODO Auto-generated method stub
  return null;
}
项目:hbase.mcc    文件:HTableMultiCluster.java   
public <T extends Service, R> void coprocessorService(Class<T> service,
                                                      byte[] startKey, byte[] endKey,Call<T, R> callable, Callback<R> callback)
        throws ServiceException, Throwable {
  // TODO Auto-generated method stub
}
项目:ColumnManagerForHBase    文件:MTable.java   
@Override
public <T extends Service, R> Map<byte[], R> coprocessorService(Class<T> type, byte[] bytes, byte[] bytes1, Call<T, R> call) throws ServiceException, Throwable {
  return wrappedTable.coprocessorService(type, bytes, bytes1, call);
}
项目:ColumnManagerForHBase    文件:MTable.java   
@Override
public <T extends Service, R> void coprocessorService(Class<T> type, byte[] bytes, byte[] bytes1, Batch.Call<T, R> call, Batch.Callback<R> clbck) throws ServiceException, Throwable {
  wrappedTable.coprocessorService(type, bytes, bytes1, call, clbck);
}
项目:gora-boot    文件:HBaseTableConnection.java   
@Override
public <T extends Service, R> Map<byte[], R> coprocessorService(Class<T> service,
    byte[] startKey, byte[] endKey, Call<T, R> callable) throws Throwable {
  return getTable().coprocessorService(service, startKey, endKey, callable);
}
项目:gora-boot    文件:HBaseTableConnection.java   
@Override
public <T extends Service, R> void coprocessorService(Class<T> service, byte[] startKey,
    byte[] endKey, Call<T, R> callable, Callback<R> callback) throws Throwable {
  getTable().coprocessorService(service, startKey, endKey, callable, callback);
}
项目:hbase    文件:RegionAsTable.java   
@Override
public <T extends Service, R> Map<byte[], R> coprocessorService(Class<T> service, byte[] startKey,
    byte[] endKey, Call<T, R> callable)
throws ServiceException, Throwable {
  throw new UnsupportedOperationException();
}
项目:hbase    文件:RegionAsTable.java   
@Override
public <T extends Service, R> void coprocessorService(Class<T> service, byte[] startKey,
    byte[] endKey, Call<T, R> callable, Callback<R> callback)
throws ServiceException, Throwable {
  throw new UnsupportedOperationException();
}
项目:CSBT    文件:CrossSiteHTablePool.java   
@Override
public <T extends Service, R> Map<byte[], R> coprocessorService(
    Class<T> protocol, byte[] startKey, byte[] endKey,
    Batch.Call<T, R> callable) throws IOException, Throwable {
  return table.coprocessorService(protocol, startKey, endKey, callable);
}
项目:CSBT    文件:CrossSiteHTablePool.java   
@Override
public <T extends Service, R> Map<byte[], R> coprocessorService(Class<T> protocol,
    byte[] startKey, byte[] endKey, String[] clusterNames, Call<T, R> callable)
    throws IOException, Throwable {
  return table.coprocessorService(protocol, startKey, endKey, clusterNames, callable);
}
项目:CSBT    文件:CrossSiteHTablePool.java   
@Override
public <T extends Service, R> void coprocessorService(Class<T> protocol,
    byte[] startKey, byte[] endKey, String[] clusterNames, Call<T, R> callable,
    Callback<R> callback) throws IOException, Throwable {
  table.coprocessorService(protocol, startKey, endKey, clusterNames, callable, callback);
}
项目:HBase.MCC    文件:HTableMultiCluster.java   
public <T extends Service, R> Map<byte[], R> coprocessorService(
        Class<T> service, byte[] startKey, byte[] endKey, Call<T, R> callable)
        throws ServiceException, Throwable {
  // TODO Auto-generated method stub
  return null;
}
项目:HBase.MCC    文件:HTableMultiCluster.java   
public <T extends Service, R> void coprocessorService(Class<T> service,
                                                      byte[] startKey, byte[] endKey,Call<T, R> callable, Callback<R> callback)
        throws ServiceException, Throwable {
  // TODO Auto-generated method stub
}
项目:CSBT    文件:CrossSiteHTableInterface.java   
/**
 * 
 * Execute the coprocessor.
 * 
 * The cluster names will be considered as a filter condition together with the start key and stop
 * key.
 * 
 * @param protocol
 * @param startKey
 * @param endKey
 * @param clusterNames
 * @param callable
 * @return
 * @throws IOException
 * @throws Throwable
 */
public <T extends Service, R> Map<byte[], R> coprocessorService(Class<T> protocol,
    byte[] startKey, byte[] endKey, String[] clusterNames, Call<T, R> callable)
    throws IOException, Throwable;
项目:CSBT    文件:CrossSiteHTableInterface.java   
/**
 * Execute the coprocessor.
 * 
 * The cluster names will be considered as a filter condition together with the start key and stop
 * key.
 * 
 * @param protocol
 * @param startKey
 * @param endKey
 * @param clusterNames
 * @param callable
 * @param callback
 * @throws IOException
 * @throws Throwable
 */
public <T extends Service, R> void coprocessorService(final Class<T> protocol,
    final byte[] startKey, final byte[] endKey, final String[] clusterNames,
    final Call<T, R> callable, final Callback<R> callback) throws IOException, Throwable;