Class AmpleImpl

  • All Implemented Interfaces:
    Ample

    public class AmpleImpl
    extends Object
    implements Ample
    • Method Detail

      • readTablet

        public TabletMetadata readTablet​(KeyExtent extent,
                                         Ample.ReadConsistency readConsistency,
                                         TabletMetadata.ColumnType... colsToFetch)
        Description copied from interface: Ample
        Read a single tablets metadata. No checking is done for prev row, so it could differ.
        Specified by:
        readTablet in interface Ample
        Parameters:
        extent - Reads tablet metadata using the table id and end row from this extent.
        readConsistency - Controls how the data is read.
        colsToFetch - What tablets columns to fetch. If empty, then everything is fetched.
      • readTablets

        public TabletsMetadata.TableOptions readTablets()
        Description copied from interface: Ample
        Entry point for reading multiple tablets' metadata. Generates a TabletsMetadata builder object and assigns the AmpleImpl client to that builder object. This allows readTablets() to be called from a ClientContext. Associated methods of the TabletsMetadata Builder class are used to generate the metadata.
        Specified by:
        readTablets in interface Ample