HBase
  1. HBase
  2. HBASE-847 new API: HTable.getRow with numVersion specified
  3. HBASE-31

Add means of getting the timestamps for all cell versions: e.g. long [] getVersions(row, column)

    Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Not A Problem
    • Affects Version/s: 0.2.0
    • Fix Version/s: None
    • Component/s: Client
    • Labels:
      None

      Description

      Should be means of asking hbase for list of all the timestamps associated with a particular cell. The brute force way would be adding a getVersions method but perhaps we can come up w/ something more elegant than this?

        Issue Links

          Activity

          stack created issue -
          stack made changes -
          Field Original Value New Value
          Component/s contrib/hbase [ 12311752 ]
          Priority Major [ 3 ] Minor [ 4 ]
          Hide
          stack added a comment -

          Perhaps a getRowTimestamps would be better? It would return a list of all columns in a given row and all timestamps for a given cell?

          Map<Text, long []> getRowTimestamps(Text row);
          
          Show
          stack added a comment - Perhaps a getRowTimestamps would be better? It would return a list of all columns in a given row and all timestamps for a given cell? Map<Text, long []> getRowTimestamps(Text row);
          Hide
          Edward J. Yoon added a comment -

          +1 to "getVersions(row, column) "

          Show
          Edward J. Yoon added a comment - +1 to "getVersions(row, column) "
          Hide
          Bryan Duxbury added a comment -

          I was hoping for a method that would give you all of the timestamps for a row, not per row and column. You'd want to able to do this so that you could know what different versions of a particular entity you have in HBase. As such, basically all I'm looking for is:

          <code>long[] getRowTimestamps(Text row)</code>

          Show
          Bryan Duxbury added a comment - I was hoping for a method that would give you all of the timestamps for a row, not per row and column. You'd want to able to do this so that you could know what different versions of a particular entity you have in HBase. As such, basically all I'm looking for is: <code>long[] getRowTimestamps(Text row)</code>
          Hide
          Bryan Duxbury added a comment -

          It seems like after HADOOP-1550 all that really needs to be done to accomplish getRowTimestamps is to consume HRegion.getKeys cleverly.

          I think we should support:

          /** 
           * returns descending list of all row timestamps
           */
          long[] getRowTimestamps(Text row);
          

          @Edward - what would getVersions do? When would you want to know what the versions of a particular column and not the entire row?

          Show
          Bryan Duxbury added a comment - It seems like after HADOOP-1550 all that really needs to be done to accomplish getRowTimestamps is to consume HRegion.getKeys cleverly. I think we should support: /** * returns descending list of all row timestamps */ long [] getRowTimestamps(Text row); @Edward - what would getVersions do? When would you want to know what the versions of a particular column and not the entire row?
          Hide
          Edward J. Yoon added a comment -

          @Bryan - I think It will be useful for time series analysis.

          Show
          Edward J. Yoon added a comment - @Bryan - I think It will be useful for time series analysis.
          Edward J. Yoon made changes -
          Assignee Edward Yoon [ udanax ]
          Hide
          Edward J. Yoon added a comment - - edited

          For example,

          • Financial engineering
          • Informative dimension and Time dimension factors in Search engine Rank algorithm. (but, i like the entropy theory)
          • ...etc.
          Show
          Edward J. Yoon added a comment - - edited For example, Financial engineering Informative dimension and Time dimension factors in Search engine Rank algorithm. (but, i like the entropy theory) ...etc.
          Hide
          Edward J. Yoon added a comment -

          If stack is ok, i'll do it.

          Show
          Edward J. Yoon added a comment - If stack is ok, i'll do it.
          Hide
          Edward J. Yoon added a comment -

          >> When would you want to know what the versions of a particular column and not the entire row?

          Yeap. Need a time series of a particular (row, column).

          Show
          Edward J. Yoon added a comment - >> When would you want to know what the versions of a particular column and not the entire row? Yeap. Need a time series of a particular (row, column).
          Edward J. Yoon made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Edward J. Yoon made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Edward J. Yoon made changes -
          Assignee Edward Yoon [ udanax ] stack [ stack ]
          stack made changes -
          Assignee stack [ stack ]
          Fix Version/s 0.17.0 [ 12312913 ]
          Fix Version/s 0.16.0 [ 12312740 ]
          Owen O'Malley made changes -
          Key HADOOP-2249 HBASE-31
          Component/s contrib/hbase [ 12311752 ]
          Fix Version/s 0.17.0 [ 12312913 ]
          Project Hadoop Core [ 12310240 ] Hadoop HBase [ 12310753 ]
          Bryan Duxbury made changes -
          Component/s client [ 12312131 ]
          Bryan Duxbury made changes -
          Fix Version/s 0.2.0 [ 12312955 ]
          Hide
          Bryan Duxbury added a comment -

          What is the correct type of Writable to use to transmit a List<long>?

          Show
          Bryan Duxbury added a comment - What is the correct type of Writable to use to transmit a List<long>?
          Hide
          stack added a comment -

          Will an array of longs do?

          Show
          stack added a comment - Will an array of longs do?
          Hide
          Bryan Duxbury added a comment -

          Sure, long[] will work.

          Show
          Bryan Duxbury added a comment - Sure, long[] will work.
          Bryan Duxbury made changes -
          Link This issue is related to HBASE-489 [ HBASE-489 ]
          Hide
          Bryan Duxbury added a comment -

          I think that perhaps this issue won't be of as much importance once gets return the relevant timestamp with the values returned.

          Show
          Bryan Duxbury added a comment - I think that perhaps this issue won't be of as much importance once gets return the relevant timestamp with the values returned.
          Bryan Duxbury made changes -
          Summary [hbase] Add means of getting the timestamps for all cell versions: e.g. long [] getVersions(row, column) Add means of getting the timestamps for all cell versions: e.g. long [] getVersions(row, column)
          Hide
          stack added a comment -

          Demoting priority even further. Let some one ask for it before we'll even consider going near this issue. For now, focus will be permutations that return timestamp+data always.

          Show
          stack added a comment - Demoting priority even further. Let some one ask for it before we'll even consider going near this issue. For now, focus will be permutations that return timestamp+data always.
          stack made changes -
          Priority Minor [ 4 ] Trivial [ 5 ]
          Jim Kellerman made changes -
          Fix Version/s 0.2.0 [ 12312955 ]
          Affects Version/s 0.2.0 [ 12312955 ]
          Jim Kellerman made changes -
          Link This issue is blocked by HBASE-33 [ HBASE-33 ]
          Jim Kellerman made changes -
          Link This issue is blocked by HBASE-733 [ HBASE-733 ]
          Jim Kellerman made changes -
          Assignee Jim Kellerman [ jimk ]
          Jim Kellerman made changes -
          Fix Version/s 0.19.0 [ 12313364 ]
          Jim Kellerman made changes -
          Link This issue incorporates HBASE-847 [ HBASE-847 ]
          Jim Kellerman made changes -
          Link This issue is duplicated by HBASE-30 [ HBASE-30 ]
          Jim Kellerman made changes -
          Link This issue incorporates HBASE-847 [ HBASE-847 ]
          Jim Kellerman made changes -
          Link This issue is blocked by HBASE-33 [ HBASE-33 ]
          Jim Kellerman made changes -
          Issue Type New Feature [ 2 ] Sub-task [ 7 ]
          Parent HBASE-847 [ 12403181 ]
          Jim Kellerman made changes -
          Assignee Jim Kellerman [ jimk ] Doğacan Güney [ dogacan ]
          Hide
          stack added a comment -

          Moving to 0.20.0 with Doğacan Güney's permission over in hbase-847

          Show
          stack added a comment - Moving to 0.20.0 with Doğacan Güney's permission over in hbase-847
          stack made changes -
          Fix Version/s 0.19.0 [ 12313364 ]
          Fix Version/s 0.20.0 [ 12313474 ]
          stack made changes -
          Fix Version/s 0.20.0 [ 12313474 ]
          Hide
          Harsh J added a comment -

          This can be resolved, given Bryan's comments earlier.

          I think that perhaps this issue won't be of as much importance once gets return the relevant timestamp with the values returned.

          This is available now.

          Show
          Harsh J added a comment - This can be resolved, given Bryan's comments earlier. I think that perhaps this issue won't be of as much importance once gets return the relevant timestamp with the values returned. This is available now.
          Harsh J made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Not A Problem [ 8 ]
          Hide
          stack added a comment -

          Thanks Harsh for doing the janitorial cleanups

          Show
          stack added a comment - Thanks Harsh for doing the janitorial cleanups
          Hide
          stack added a comment -

          I think this issue was asking for return of timestamps only, not timestamps + data. I think its good you closed it though Harsh; its an old issue that hasn't been worked on in three years.

          Show
          stack added a comment - I think this issue was asking for return of timestamps only, not timestamps + data. I think its good you closed it though Harsh; its an old issue that hasn't been worked on in three years.
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          20d 4h 56m 1 Edward J. Yoon 12/Dec/07 02:59
          In Progress In Progress Open Open
          1d 1h 3m 1 Edward J. Yoon 13/Dec/07 04:02
          Open Open Resolved Resolved
          1480d 16h 48m 1 Harsh J 01/Jan/12 20:51

            People

            • Assignee:
              Doğacan Güney
              Reporter:
              stack
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development