Interface TabletsMetadata.TableOptions
-
- All Known Implementing Classes:
TabletsMetadata.Builder
- Enclosing class:
- TabletsMetadata
public static interface TabletsMetadata.TableOptions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TabletsMetadata.Options
forLevel(Ample.DataLevel level)
Read all of the tablet metadata for this level.TabletsMetadata.TableRangeOptions
forTable(TableId tableId)
This method automatically determines where the metadata for the passed in table ID resides.TabletsMetadata.Options
forTablet(KeyExtent extent)
Get the tablet metadata for this extents end row.TabletsMetadata.Options
forTablets(Collection<KeyExtent> extents)
Get the tablet metadata for the given extents.default TabletsMetadata.RangeOptions
scanMetadataTable()
Obtain tablet metadata by scanning the metadata table.TabletsMetadata.RangeOptions
scanTable(String tableName)
Obtain tablet metadata by scanning an arbitrary table.
-
-
-
Method Detail
-
forLevel
TabletsMetadata.Options forLevel(Ample.DataLevel level)
Read all of the tablet metadata for this level.
-
forTablet
TabletsMetadata.Options forTablet(KeyExtent extent)
Get the tablet metadata for this extents end row. This should only ever return a single tablet where the end row and prev end row exactly match the given extent.
-
forTablets
TabletsMetadata.Options forTablets(Collection<KeyExtent> extents)
Get the tablet metadata for the given extents. This will only return tablets where the end row and prev end row exactly match the given extents.
-
forTable
TabletsMetadata.TableRangeOptions forTable(TableId tableId)
This method automatically determines where the metadata for the passed in table ID resides. For example if a user tablet ID is passed in, then the metadata table is scanned. If the metadata table ID is passed in then the root table is scanned. Defaults to returning all tablets for the table ID.
-
scanMetadataTable
default TabletsMetadata.RangeOptions scanMetadataTable()
Obtain tablet metadata by scanning the metadata table. Defaults to the rangeMetadataSchema.TabletsSection.getRange()
-
scanTable
TabletsMetadata.RangeOptions scanTable(String tableName)
Obtain tablet metadata by scanning an arbitrary table. Defaults to the rangeMetadataSchema.TabletsSection.getRange()
-
-