Interface TabletId

All Superinterfaces:
Comparable<TabletId>

public interface TabletId extends Comparable<TabletId>
A TabletId provides the information needed to uniquely identify a tablet.
Since:
1.7.0
  • Method Details

    • of

      static TabletId of(TableId tableId, org.apache.hadoop.io.Text endRow, org.apache.hadoop.io.Text prevEndRow)
      Return a TabletId object for the provided TableId in range of (prevEndRow, endRow]. If the parameters prevEndRow and/or endRow are null, they represent a tablet over the range of -inf and/or inf respectively.
      Parameters:
      tableId - the ID for a table
      endRow - the last row in this tablet, or null if this is the last tablet in this table
      prevEndRow - the last row in the immediately preceding tablet for the table, or null if this represents the first tablet in this table
      Returns:
      Return the new TabletId object
      Since:
      2.1.4
    • of

      static TabletId of(TableId tableId, String endRow, String prevEndRow)
      Since:
      2.1.4
      See Also:
    • of

      static TabletId of(TableId tableId, byte[] endRow, byte[] prevEndRow)
      Since:
      2.1.4
      See Also:
    • getTable

      TableId getTable()
      Since:
      2.1.0
    • getTableId

      @Deprecated(since="2.1.0") org.apache.hadoop.io.Text getTableId()
      Deprecated.
    • getEndRow

      org.apache.hadoop.io.Text getEndRow()
    • getPrevEndRow

      org.apache.hadoop.io.Text getPrevEndRow()
    • toRange

      Range toRange()
      Returns:
      a range based on the row range of the tablet. The range will cover (<prev end row>, <end row>].
      Since:
      1.8.0