| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | namespace Azure.Storage.Blobs.ChangeFeed |
| | 5 | | { |
| | 6 | | internal class ShardCursor |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// The path of the current Chunk. |
| | 10 | | /// </summary> |
| 980 | 11 | | public string CurrentChunkPath { get; set; } |
| | 12 | |
|
| | 13 | | /// <summary> |
| | 14 | | /// The byte offset of the beginning of |
| | 15 | | /// the current Avro block. |
| | 16 | | /// </summary> |
| 888 | 17 | | public long BlockOffset { get; set; } |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// The index of the current event within |
| | 21 | | /// the current Avro block. |
| | 22 | | /// </summary> |
| 868 | 23 | | public long EventIndex { get; set; } |
| | 24 | |
|
| 440 | 25 | | internal ShardCursor( |
| 440 | 26 | | string currentChunkPath, |
| 440 | 27 | | long blockOffset, |
| 440 | 28 | | long eventIndex) |
| | 29 | | { |
| 440 | 30 | | CurrentChunkPath = currentChunkPath; |
| 440 | 31 | | BlockOffset = blockOffset; |
| 440 | 32 | | EventIndex = eventIndex; |
| 440 | 33 | | } |
| | 34 | |
|
| | 35 | | /// <summary> |
| | 36 | | /// |
| | 37 | | /// </summary> |
| 192 | 38 | | public ShardCursor() { } |
| | 39 | | } |
| | 40 | | } |