hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yun peng <pengyunm...@gmail.com>
Subject how to get the timestamp of hfile, like when it's generated.
Date Tue, 16 Oct 2012 20:24:34 GMT
Hi, All
Given ``hfile`` in ``hbase`` is immutable, I want to know the timestamp
like when the ``hfile`` is generated. Does ``hbase`` have API to allow
user-applications to know this? I  need to know in postCompact() stage.

As a first attempt, I have tried using
``StoreFile.getBulkLoadTimestamp()``. By following code snippet, I
constantly get ``NullPointerException``.
  public void postCompact(ObserverContext<RegionCoprocessorEnvironment> c,
Store store, StoreFile resultFile) {
    if(resultFile == null) {
    int timestampLastCompact = resultFile.getBulkLoadTimestamp();

Any ideas are appreciated. Thanks.

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