Java Code Examples for org.apache.hadoop.hbase.client.coprocessor.Batch.Call

The following examples show how to use org.apache.hadoop.hbase.client.coprocessor.Batch.Call. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: hbase   Source File: TableOverAsyncTable.java    License: Apache License 2.0 5 votes vote down vote up
@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 {
  coprocssorService(service.getName(), startKey, endKey, callback, channel -> {
    T instance = ProtobufUtil.newServiceStub(service, channel);
    return callable.call(instance);
  });
}
 
Example 2
Source Project: phoenix   Source File: DelegateHTable.java    License: Apache License 2.0 5 votes vote down vote up
@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 {
    delegate.coprocessorService(service, startKey, endKey, callable, callback);
    
}
 
Example 3
Source Project: hbase   Source File: RegionAsTable.java    License: Apache License 2.0 4 votes vote down vote up
@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();
}
 
Example 4
Source Project: hbase   Source File: RegionAsTable.java    License: Apache License 2.0 4 votes vote down vote up
@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();
}
 
Example 5
Source Project: HBase.MCC   Source File: HTableMultiCluster.java    License: Apache License 2.0 4 votes vote down vote up
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;
}
 
Example 6
Source Project: HBase.MCC   Source File: HTableMultiCluster.java    License: Apache License 2.0 4 votes vote down vote up
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
}
 
Example 7
Source Project: foxtrot   Source File: MockHTable.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public <T extends Service, R> Map<byte[], R> coprocessorService(Class<T> service, byte[] startKey, byte[] endKey, Call<T, R> callable)
        throws ServiceException, Throwable {
    return null;
}
 
Example 8
Source Project: foxtrot   Source File: MockHTable.java    License: Apache License 2.0 4 votes vote down vote up
@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 {

}
 
Example 9
Source Project: phoenix   Source File: OmidTransactionTable.java    License: Apache License 2.0 4 votes vote down vote up
@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();
}
 
Example 10
Source Project: phoenix   Source File: OmidTransactionTable.java    License: Apache License 2.0 4 votes vote down vote up
@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();
}
 
Example 11
Source Project: phoenix   Source File: DelegateHTable.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public <T extends Service, R> Map<byte[], R> coprocessorService(Class<T> service,
        byte[] startKey, byte[] endKey, Call<T, R> callable) throws ServiceException, Throwable {
    return delegate.coprocessorService(service, startKey, endKey, callable);
}