For a parallel Scan request, Segment identifies an individual segment to be scanned by an application worker. Segment IDs are
zero-based, so the first segment is always 0. For example, if you want to scan a table using four application threads, the first thread
would specify a Segment value of 0, the second thread would specify 1, and so on. The value of LastEvaluatedKey returned from
a parallel Scan request must be used as ExclusiveStartKey with the same Segment ID in a subsequent Scan operation. The
value for Segment must be greater than or equal to 0, and less than the value provided for TotalSegments. If you specify
Segment, you must also specify TotalSegments.
Constraints:
Declaration Syntax
C# |
public int Segment { get; set; }