Interface MetastoreScannableTable

All Superinterfaces:
MetastoreTable
All Known Implementing Classes:
InMemoryMetastoreTable

public interface MetastoreScannableTable extends MetastoreTable
Metastore Scannable Table.
  • Field Details

    • EMPTY_START_KEY

      static final String EMPTY_START_KEY
    • EMPTY_END_KEY

      static final String EMPTY_END_KEY
  • Method Details

    • openCursor

      void openCursor(String firstKey, boolean firstInclusive, String lastKey, boolean lastInclusive, MetastoreScannableTable.Order order, MetastoreCallback<MetastoreCursor> cb, Object ctx)
      Open a cursor to loop over the entries belonging to a key range, which returns all fields for each entry.

      Return Code:
      MSException.Code.OK: an opened cursor
      MSException.Code.IllegalOp/MSException.Code.ServiceDown: other issues

      Parameters:
      firstKey - Key to start scanning. If it is EMPTY_START_KEY, it starts from first key (inclusive).
      firstInclusive - true if firstKey is to be included in the returned view.
      lastKey - Key to stop scanning. If it is EMPTY_END_KEY, scan ends at the lastKey of the table (inclusive).
      lastInclusive - true if lastKey is to be included in the returned view.
      order - the order to loop over the entries
      cb - Callback to return an opened cursor.
      ctx - Callback context
    • openCursor

      void openCursor(String firstKey, boolean firstInclusive, String lastKey, boolean lastInclusive, MetastoreScannableTable.Order order, Set<String> fields, MetastoreCallback<MetastoreCursor> cb, Object ctx)
      Open a cursor to loop over the entries belonging to a key range, which returns the specified fields for each entry.

      Return Code:
      MSException.Code.OK: an opened cursor
      MSException.Code.IllegalOp/MSException.Code.ServiceDown: other issues

      Parameters:
      firstKey - Key to start scanning. If it is EMPTY_START_KEY, it starts from first key (inclusive).
      firstInclusive - true if firstKey is to be included in the returned view.
      lastKey - Key to stop scanning. If it is EMPTY_END_KEY, scan ends at the lastKey of the table (inclusive).
      lastInclusive - true if lastKey is to be included in the returned view.
      order - the order to loop over the entries
      fields - Fields to select
      cb - Callback to return an opened cursor.
      ctx - Callback context