use of org.apache.flink.fs.gs.storage.MockBlobStorage in project flink by apache.
the class GSRecoverableWriterTest method before.
@Before
public void before() {
MockBlobStorage storage = new MockBlobStorage();
blobIdentifier = new GSBlobIdentifier("foo", "bar");
Configuration flinkConfig = new Configuration();
options = new GSFileSystemOptions(flinkConfig);
writer = new GSRecoverableWriter(storage, options);
componentObjectIds = new ArrayList<UUID>();
for (int i = 0; i < componentCount; i++) {
componentObjectIds.add(UUID.randomUUID());
}
resumeRecoverable = new GSResumeRecoverable(blobIdentifier, componentObjectIds, position, closed);
commitRecoverable = new GSCommitRecoverable(blobIdentifier, componentObjectIds);
}
Aggregations