Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
modified spacing
  • Loading branch information
ifilonenko committed Mar 19, 2019
commit b3223393510bce49b1c987e870a4ed19ccec6834
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
*/
@Experimental
public interface ShuffleDataIO {
ShuffleExecutorComponents executor();
ShuffleExecutorComponents executor();
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
*/
@Experimental
public interface ShuffleExecutorComponents {
void intitializeExecutor(String appId, String execId);

void intitializeExecutor(String appId, String execId);

ShuffleWriteSupport writes();
ShuffleWriteSupport writes();
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@
*/
@Experimental
public interface ShuffleMapOutputWriter {
ShufflePartitionWriter getNextPartitionWriter() throws IOException;

ShufflePartitionWriter getNextPartitionWriter() throws IOException;
void commitAllPartitions() throws IOException;

void commitAllPartitions() throws IOException;

void abort(Throwable error) throws IOException;
void abort(Throwable error) throws IOException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@
*/
@Experimental
public interface ShufflePartitionWriter {
OutputStream openStream() throws IOException;

OutputStream openStream() throws IOException;
long getLength();

long getLength();

default WritableByteChannel openChannel() throws IOException {
return Channels.newChannel(openStream());
}
default WritableByteChannel openChannel() throws IOException {
return Channels.newChannel(openStream());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@
*/
@Experimental
public interface ShuffleWriteSupport {

ShuffleMapOutputWriter createMapOutputWriter(
String appId,
int shuffleId,
int mapId,
int numPartitions) throws IOException;
ShuffleMapOutputWriter createMapOutputWriter(
String appId,
int shuffleId,
int mapId,
int numPartitions) throws IOException;
}