| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Collections.Generic; |
| | | 6 | | using System.Text; |
| | | 7 | | |
| | | 8 | | namespace Azure.Storage.Blobs.ChangeFeed |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Segment Cursor. |
| | | 12 | | /// </summary> |
| | | 13 | | internal class SegmentCursor |
| | | 14 | | { |
| | | 15 | | /// <summary> |
| | | 16 | | /// Shard Cursors. |
| | | 17 | | /// </summary> |
| | 716 | 18 | | public List<ShardCursor> ShardCursors { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// The path to the current Shard. |
| | | 22 | | /// </summary> |
| | 424 | 23 | | public string CurrentShardPath { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// The path of the Segment. |
| | | 27 | | /// </summary> |
| | 428 | 28 | | public string SegmentPath { get; set; } |
| | | 29 | | |
| | 148 | 30 | | internal SegmentCursor( |
| | 148 | 31 | | string segmentPath, |
| | 148 | 32 | | List<ShardCursor> shardCursors, |
| | 148 | 33 | | string currentShardPath) |
| | | 34 | | { |
| | 148 | 35 | | SegmentPath = segmentPath; |
| | 148 | 36 | | ShardCursors = shardCursors; |
| | 148 | 37 | | CurrentShardPath = currentShardPath; |
| | 148 | 38 | | } |
| | | 39 | | |
| | 136 | 40 | | public SegmentCursor() { } |
| | | 41 | | } |
| | | 42 | | } |