@ Override public Record get ( final String tableName , final URI id ) throws IOException { logger . debug ( "TEPHRA Begin of get(" + tableName + ", " + id + ")" ) ; final TransactionAwareHTable txTable = ( TransactionAwareHTable ) getTable ( tableName ) ; Record resGotten = null ; if ( txTable != null ) { // Resource's Key final Get get = new Get ( Bytes . toBytes ( id . toString ( ) ) ) . setMaxVersions ( 1 ) ; final Result rs = txTable . get ( get ) ; logger . debug ( "Value obtained: " + new String ( rs . value ( ) ) ) ; final AvroSerializer serializer = getSerializer ( ) ; resGotten = ( Record ) serializer . fromBytes ( rs . value ( ) ) ; } return resGotten ; }
Gets a Record based on information passed .