/** * Decodes a table layout descriptor from binary. * * @param bytes Serialized table layout descriptor. * @return Deserialized table layout descriptor. * @throws IOException on I/O or decoding error. */ private TableLayoutDesc decodeTableLayoutDesc(byte[] bytes) throws IOException { return mCellDecoder.decodeValue(bytes); }
/** * Decodes a table layout descriptor from binary. * * @param bytes Serialized table layout descriptor. * @return Deserialized table layout descriptor. * @throws java.io.IOException on I/O or decoding error. */ private TableLayoutDesc decodeTableLayoutDesc(byte[] bytes) throws IOException { return mCellDecoder.decodeValue(bytes); }
/** {@inheritDoc} */ @Override public <T> T getMostRecentValue(String family, String qualifier) throws IOException { final FijiCellDecoder<T> decoder = mDecoderProvider.getDecoder(FijiColumnName.create(family, qualifier)); final NavigableMap<Long, byte[]> tmap = getRawTimestampMap(family, qualifier); if (null == tmap) { return null; } final byte[] bytes = tmap.values().iterator().next(); return decoder.decodeValue(bytes); }
/** {@inheritDoc} */ @Override public <T> T getValue(String family, String qualifier, long timestamp) throws IOException { final FijiCellDecoder<T> decoder = mDecoderProvider.getDecoder(FijiColumnName.create(family, qualifier)); final byte[] bytes = getRawCell(family, qualifier, timestamp); return decoder.decodeValue(bytes); }