Delete Operation in HBase Table using JAVA API.

Publié le: 25 octobre 2022
sur la chaîne: 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);


Sur cette page du site, vous pouvez voir la vidéo en ligne Delete Operation in HBase Table using JAVA API. durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Unboxing Big Data 25 octobre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,104 fois et il a aimé 10 téléspectateurs. Bon visionnage!