protected void openCurrentStream() throws IOException { Preconditions.checkState(currentStream == null); FSDataInputStream stream = currentStateHandle.openInputStream(); closableRegistry.registerCloseable(stream); currentStream = stream; }
try { if (!committer.isCheckpointCommitted(subtaskId, pastCheckpointId)) { try (FSDataInputStream in = streamHandle.openInputStream()) { boolean success = sendValues( new ReusingMutableToRegularIteratorWrapper<>(
inputStream = remoteFileHandle.openInputStream(); closeableRegistry.registerCloseable(inputStream);
inputStream = metaStateHandle.openInputStream(); stateBackend.cancelStreamRegistry.registerCloseable(inputStream);
@Override public FSDataInputStream openInputStream() throws IOException { return wrappedStreamStateHandle.openInputStream(); }
@Override public FSDataInputStream openInputStream() throws IOException { return delegateStateHandle.openInputStream(); }
@Override public FSDataInputStream openInputStream() throws IOException { return wrappedStreamStateHandle.openInputStream(); }
@Override public FSDataInputStream openInputStream() throws IOException { return stateHandle.openInputStream(); }
@Override public FSDataInputStream openInputStream() throws IOException { return stateHandle.openInputStream(); }
@Override public FSDataInputStream openInputStream() throws IOException { return stateHandle.openInputStream(); }
@Override public FSDataInputStream openInputStream() throws IOException { return delegateStateHandle.openInputStream(); }
@Override public FSDataInputStream openInputStream() throws IOException { return stateHandle.openInputStream(); }
@Override public FSDataInputStream openInputStream() throws IOException { return wrappedStreamStateHandle.openInputStream(); }
protected void openCurrentStream() throws IOException { FSDataInputStream stream = currentStateHandle.openInputStream(); closableRegistry.registerClosable(stream); currentStream = stream; }
@Override public FSDataInputStream openInputStream() throws IOException { Preconditions.checkNotNull(snapshotHandle, "snapshotHandle is null"); return snapshotHandle.openInputStream(); } }
@Override public FSDataInputStream openInputStream() throws IOException { return new MigrationFSInputStream(delegate.openInputStream()); }
@Override protected FSDataInputStream getSeekedStreamForOffset(long globalStreamOffset) throws IOException { Map.Entry<Long, StreamStateHandle> handleEntry = stateHandleMap.floorEntry(globalStreamOffset); if (handleEntry != null) { FSDataInputStream stream = handleEntry.getValue().openInputStream(); stream.seek(globalStreamOffset - handleEntry.getKey()); return stream; } return null; } }
protected void openCurrentStream() throws IOException { Preconditions.checkState(currentStream == null); FSDataInputStream stream = currentStateHandle.openInputStream(); closableRegistry.registerCloseable(stream); currentStream = stream; }
protected void openCurrentStream() throws IOException { Preconditions.checkState(currentStream == null); FSDataInputStream stream = currentStateHandle.openInputStream(); closableRegistry.registerCloseable(stream); currentStream = stream; }
public static KeyedBackendSerializationProxy<?> getKeyedBackendSerializationProxy( StreamStateHandle streamStateHandle) { KeyedBackendSerializationProxy<Integer> serializationProxy = new KeyedBackendSerializationProxy<>( StateMetadataUtils.class.getClassLoader()); try (FSDataInputStream is = streamStateHandle.openInputStream()) { DataInputViewStreamWrapper iw = new DataInputViewStreamWrapper(is); serializationProxy.read(iw); return serializationProxy; } catch (IOException e) { throw new RuntimeException(e); } }