Delete Operation in HBase Table using JAVA API.

Publicado el: 25 octubre 2022
en el canal de: 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);


En esta página del sitio puede ver el video en línea Delete Operation in HBase Table using JAVA API. de Duración hora minuto segunda en buena calidad , que subió el usuario Unboxing Big Data 25 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,104 veces y le gustó 10 a los espectadores. Disfruta viendo!