hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leif Wickland <leifwickl...@gmail.com>
Subject Re: Can I write a KeyValue with Type.Delete to HFileOutputFormat?
Date Wed, 10 Aug 2011 23:51:18 GMT
Turns out, DeleteColumn type KeyValues can be output to HFileOutputFormat.
 To make it work correctly, I needed to use HConstants.LATEST_TIMESTAMP when
constructing the KeyValue.

It appears to me that KeyValue.Type.Delete corresponds to
Delete.deleteColumn() and KeyValue.Type.DeleteColumn corresponds to
Delete.deleteColumns, which is somewhat non-obvious and appears to be

On Wed, Aug 10, 2011 at 2:27 PM, Leif Wickland <leifwickland@gmail.com>wrote:

> I tried writing a KeyValue initialized with its type set to Delete or
> DeleteColumn to HFileOutputFormat.  When reading the table afterward, it
> appears that the cell was not deleted.
> Is it possible to write a delete when writing to the HFileOutputFormat?
> Thanks,
> Leif Wickland

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message