For parallel Scan requests, Segment identifies an individual segment to be scanned by an application "worker" (such as a
thread or a process). Each worker issues a Scan request with a distinct value for the segment it will scan. 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. LastEvaluatedKey returned from a parallel scan
request must be used with same Segment id in a subsequent operation. The value for Segment must be less 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; }