enumerate

abstract suspend fun enumerate(partitionId: String? = null, afterKey: String? = null, limit: Int = Int.MAX_VALUE): List<String>

Enumerate keys of the records with given table and partitionId in key lexicographic order.

  • partitionId secondary key. If partitioning is supported (see StorageTableSpec.supportExpiration), it must be non-null. If partitioning is not supported it must be null.

  • afterKey if given only keys that follow the given key lexicographically are returned. If not given, enumeration starts from the lexicographically first key.

  • limit if given, no more than the given number of keys are returned.

To enumerate a large table completely in manageable chunks, specify the desired limit to repeated enumerate calls and pass last key from the previously returned list as afterKey.