hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 洪锦城 <hong.jinch...@goodhope.net>
Subject Re: The row counts of Htable is becoming small after a reduce operation(delete and put)
Date Wed, 06 Jan 2010 06:51:59 GMT
> void reduce(ImmutableBytesWritable oldKey, Iterable<Text> values,Context
> context) {
>
>  context.write(oldKey, new Delete(oldKey.get());
>  context.write(oldKey, new Put(newKey));
>}
>



Thank you,I got it now.The default value of timestamp for both Delete and
Put is set to Long.MAX_VALUE.So the newKey maybe delete after put.

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