@org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { case START_KEY: return getStartKey(); case END_KEY: return getEndKey(); case ID: return getId(); case NAME: return getName(); case VERSION: return getVersion(); case SERVER_NAME: return getServerName(); case PORT: return getPort(); } throw new java.lang.IllegalStateException(); }
public static void doTestGetRegionInfo(Hbase.Iface handler) throws Exception { // Create tableA and add two columns to rowA handler.createTable(tableAname, getColumnDescriptors()); try { handler.mutateRow(tableAname, rowAname, getMutations(), null); byte[] searchRow = HRegionInfo.createRegionName( TableName.valueOf(tableAname.array()), rowAname.array(), HConstants.NINES, false); TRegionInfo regionInfo = handler.getRegionInfo(ByteBuffer.wrap(searchRow)); assertTrue(Bytes.toStringBinary(regionInfo.getName()).startsWith( Bytes.toStringBinary(tableAname))); } finally { handler.disableTable(tableAname); handler.deleteTable(tableAname); } }
public Object getFieldValue(_Fields field) { switch (field) { case START_KEY: return getStartKey(); case END_KEY: return getEndKey(); case ID: return Long.valueOf(getId()); case NAME: return getName(); case VERSION: return Byte.valueOf(getVersion()); case SERVER_NAME: return getServerName(); case PORT: return Integer.valueOf(getPort()); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case START_KEY: return getStartKey(); case END_KEY: return getEndKey(); case ID: return Long.valueOf(getId()); case NAME: return getName(); case VERSION: return Byte.valueOf(getVersion()); case SERVER_NAME: return getServerName(); case PORT: return Integer.valueOf(getPort()); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case START_KEY: return getStartKey(); case END_KEY: return getEndKey(); case ID: return Long.valueOf(getId()); case NAME: return getName(); case VERSION: return Byte.valueOf(getVersion()); case SERVER_NAME: return getServerName(); case PORT: return Integer.valueOf(getPort()); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case START_KEY: return getStartKey(); case END_KEY: return getEndKey(); case ID: return getId(); case NAME: return getName(); case VERSION: return getVersion(); case SERVER_NAME: return getServerName(); case PORT: return getPort(); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case START_KEY: return getStartKey(); case END_KEY: return getEndKey(); case ID: return getId(); case NAME: return getName(); case VERSION: return getVersion(); case SERVER_NAME: return getServerName(); case PORT: return getPort(); } throw new IllegalStateException(); }
public static void doTestGetRegionInfo(Hbase.Iface handler) throws Exception { // Create tableA and add two columns to rowA handler.createTable(tableAname, getColumnDescriptors()); try { handler.mutateRow(tableAname, rowAname, getMutations(), null); byte[] searchRow = HRegionInfo.createRegionName( TableName.valueOf(tableAname.array()), rowAname.array(), HConstants.NINES, false); TRegionInfo regionInfo = handler.getRegionInfo(ByteBuffer.wrap(searchRow)); assertTrue(Bytes.toStringBinary(regionInfo.getName()).startsWith( Bytes.toStringBinary(tableAname))); } finally { handler.disableTable(tableAname); handler.deleteTable(tableAname); } }
public static void doTestGetRegionInfo(Hbase.Iface handler) throws Exception { // Create tableA and add two columns to rowA handler.createTable(tableAname, getColumnDescriptors()); try { handler.mutateRow(tableAname, rowAname, getMutations(), null); byte[] searchRow = HRegionInfo.createRegionName( TableName.valueOf(tableAname.array()), rowAname.array(), HConstants.NINES, false); TRegionInfo regionInfo = handler.getRegionInfo(ByteBuffer.wrap(searchRow)); assertTrue(Bytes.toStringBinary(regionInfo.getName()).startsWith( Bytes.toStringBinary(tableAname))); } finally { handler.disableTable(tableAname); handler.deleteTable(tableAname); } }