/** * Write an annotation key value to the meta table. * * @param metaTableKey meta table key of the annotation to write. * @param value String value of the annotation to write. * @throws IOException in case of an error writing to the meta table. */ private void setKV( final String metaTableKey, final String value ) throws IOException { mTable.getFiji().getMetaTable().putValue(mTable.getName(), metaTableKey, Bytes.toBytes(value)); }
/** * Get the String value of an annotation from its meta table key. * * @param metaTableKey the meta table key of the annotation to retrieve. * @return the value of the given annotation or null if no annotation exists. * @throws IOException in case of an error reading from the meta table. */ private String getKV( final String metaTableKey ) throws IOException { try { return Bytes.toString( mTable.getFiji().getMetaTable().getValue(mTable.getName(), metaTableKey)); } catch (IOException ioe) { if (ioe.getMessage().equals(String.format( "Could not find any values associated with table %s and key %s", mTable.getName(), metaTableKey))) { return null; } else { throw ioe; } } }
/** * Get the keySet from the meta table for the table served by this annotator. * * @return the meta table key set for the table served by this annotator. * @throws IOException in case of an error reading form the meta table. */ private Set<String> keySet() throws IOException { return mTable.getFiji().getMetaTable().keySet(mTable.getName()); }
/** * Remove the given meta table key. * * @param metaTableKey the key to remove from the meta table. * @throws IOException in case of an error writing to the meta table. */ private void removeKV( final String metaTableKey ) throws IOException { mTable.getFiji().getMetaTable().removeValues(mTable.getName(), metaTableKey); }
Preconditions.checkState(state == State.OPEN, "Cannot get the regions for a FijiTable in state %s.", state); final HBaseAdmin hbaseAdmin = ((HBaseFiji) getFiji()).getHBaseAdmin(); final HTableInterface htable = mHTableFactory.create(mConf, mHBaseTableName); try {
mTable.getURI(), layout, mTable.getFiji().getSchemaTable(), DefaultFijiCellEncoderFactory.get());
provider = CellDecoderProvider.create( layout, mTable.getFiji().getSchemaTable(), SpecificCellDecoderFactory.get(), mCellSpecOverrides);
mTable.getURI(), layout, mTable.getFiji().getSchemaTable(), DefaultFijiCellEncoderFactory.get());
mTable.getURI(), layout, mTable.getFiji().getSchemaTable(), DefaultFijiCellEncoderFactory.get());
scannerOptions.getFijiRowFilter(), layout, mTable.getFiji().getSchemaTable()); applicator.applyTo(scan);
rowFilter, tableLayout, mTable.getFiji().getSchemaTable()); applicator.applyTo(scan);