Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-19297][network] Make ResultPartitionWriter record-oriented #13447

Merged
merged 7 commits into from Sep 24, 2020
Expand Up @@ -209,6 +209,13 @@ public void writeInt(int v) throws IOException {
this.position += 4;
}

public void writeIntUnsafe(int v, int pos) throws IOException {
if (LITTLE_ENDIAN) {
v = Integer.reverseBytes(v);
}
UNSAFE.putInt(this.buffer, BASE_OFFSET + pos, v);
}

@SuppressWarnings("restriction")
@Override
public void writeLong(long v) throws IOException {
Expand Down Expand Up @@ -345,6 +352,10 @@ public void setPosition(int position) {
this.position = position;
}

public void setPositionUnsafe(int position) {
this.position = position;
}

// ------------------------------------------------------------------------
// Utilities
// ------------------------------------------------------------------------
Expand Down

This file was deleted.

This file was deleted.