@@ -45,7 +45,7 @@ class BlobReadChannel implements ReadChannel {
45
45
private final BlobId blob ;
46
46
private final Map <StorageRpc .Option , ?> requestOptions ;
47
47
private String lastEtag ;
48
- private int position ;
48
+ private long position ;
49
49
private boolean isOpen ;
50
50
private boolean endOfStream ;
51
51
private int chunkSize = DEFAULT_CHUNK_SIZE ;
@@ -99,7 +99,7 @@ private void validateOpen() throws ClosedChannelException {
99
99
}
100
100
101
101
@ Override
102
- public void seek (int position ) throws IOException {
102
+ public void seek (long position ) throws IOException {
103
103
validateOpen ();
104
104
this .position = position ;
105
105
buffer = null ;
@@ -164,7 +164,7 @@ static class StateImpl implements RestorableState<ReadChannel>, Serializable {
164
164
private final BlobId blob ;
165
165
private final Map <StorageRpc .Option , ?> requestOptions ;
166
166
private final String lastEtag ;
167
- private final int position ;
167
+ private final long position ;
168
168
private final boolean isOpen ;
169
169
private final boolean endOfStream ;
170
170
private final int chunkSize ;
@@ -185,7 +185,7 @@ static class Builder {
185
185
private final BlobId blob ;
186
186
private final Map <StorageRpc .Option , ?> requestOptions ;
187
187
private String lastEtag ;
188
- private int position ;
188
+ private long position ;
189
189
private boolean isOpen ;
190
190
private boolean endOfStream ;
191
191
private int chunkSize ;
@@ -201,7 +201,7 @@ Builder lastEtag(String lastEtag) {
201
201
return this ;
202
202
}
203
203
204
- Builder position (int position ) {
204
+ Builder position (long position ) {
205
205
this .position = position ;
206
206
return this ;
207
207
}
0 commit comments