use of co.cask.cdap.data2.increment.hbase.IncrementHandlerState in project cdap by caskdata.
the class IncrementHandler method start.
@Override
public void start(CoprocessorEnvironment e) throws IOException {
if (e instanceof RegionCoprocessorEnvironment) {
RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e;
this.region = ((RegionCoprocessorEnvironment) e).getRegion();
this.state = new IncrementHandlerState(env.getConfiguration(), env.getRegion().getTableDesc());
HTableDescriptor tableDesc = env.getRegion().getTableDesc();
for (HColumnDescriptor columnDesc : tableDesc.getFamilies()) {
state.initFamily(columnDesc.getName(), convertFamilyValues(columnDesc.getValues()));
}
}
}
use of co.cask.cdap.data2.increment.hbase.IncrementHandlerState in project cdap by caskdata.
the class IncrementHandler method start.
@Override
public void start(CoprocessorEnvironment e) throws IOException {
if (e instanceof RegionCoprocessorEnvironment) {
RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e;
this.region = ((RegionCoprocessorEnvironment) e).getRegion();
this.state = new IncrementHandlerState(env.getConfiguration(), env.getRegion().getTableDesc());
HTableDescriptor tableDesc = env.getRegion().getTableDesc();
for (HColumnDescriptor columnDesc : tableDesc.getFamilies()) {
state.initFamily(columnDesc.getName(), convertFamilyValues(columnDesc.getValues()));
}
}
}
use of co.cask.cdap.data2.increment.hbase.IncrementHandlerState in project cdap by caskdata.
the class IncrementHandler method start.
@Override
public void start(CoprocessorEnvironment e) throws IOException {
if (e instanceof RegionCoprocessorEnvironment) {
RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e;
this.region = ((RegionCoprocessorEnvironment) e).getRegion();
this.state = new IncrementHandlerState(env.getConfiguration(), env.getRegion().getTableDesc());
HTableDescriptor tableDesc = env.getRegion().getTableDesc();
for (HColumnDescriptor columnDesc : tableDesc.getFamilies()) {
state.initFamily(columnDesc.getName(), convertFamilyValues(columnDesc.getValues()));
}
}
}
use of co.cask.cdap.data2.increment.hbase.IncrementHandlerState in project cdap by caskdata.
the class IncrementHandler method start.
@Override
public void start(CoprocessorEnvironment e) throws IOException {
if (e instanceof RegionCoprocessorEnvironment) {
RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e;
this.region = ((RegionCoprocessorEnvironment) e).getRegion();
this.state = new IncrementHandlerState(env.getConfiguration(), env.getRegion().getTableDesc());
HTableDescriptor tableDesc = env.getRegion().getTableDesc();
for (HColumnDescriptor columnDesc : tableDesc.getFamilies()) {
state.initFamily(columnDesc.getName(), convertFamilyValues(columnDesc.getValues()));
}
}
}
use of co.cask.cdap.data2.increment.hbase.IncrementHandlerState in project cdap by caskdata.
the class IncrementHandler method start.
@Override
public void start(CoprocessorEnvironment e) throws IOException {
if (e instanceof RegionCoprocessorEnvironment) {
RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e;
this.region = ((RegionCoprocessorEnvironment) e).getRegion();
this.state = new IncrementHandlerState(env.getConfiguration(), env.getRegion().getTableDesc());
HTableDescriptor tableDesc = env.getRegion().getTableDesc();
for (HColumnDescriptor columnDesc : tableDesc.getFamilies()) {
state.initFamily(columnDesc.getName(), convertFamilyValues(columnDesc.getValues()));
}
}
}
Aggregations