Delete Operation in HBase Table using JAVA API.

Pubblicato il: 25 ottobre 2022
sul canale di: Unboxing Big Data
1,104
10

In this short video I have explained how one can perform delete operation in HBase Table using JAVA API.

delete 'table',1,'cf:col'

1. Specify the rowid,col

2. Connect to HBase and get a Table Object

3. Delete the value

Equivalent in Java :

Delete delete = new Delete(Bytes.toBytes("1"));

Use the Delete class to specify the row,column that will be deleted.

Row Id is specified using ByteArray.

Use addColumn to specify columns whose values should be deleted.

delete.addColumn(Bytes.toBytes("cf"), Bytes.toBytes("col"));

We can specify any number of columns for that specific rowid.

Use the delete method to delete the value

table.delete(delete);


In questa pagina del sito puoi guardare il video online Delete Operation in HBase Table using JAVA API. della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Unboxing Big Data 25 ottobre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,104 volte e gli è piaciuto 10 spettatori. Buona visione!