Java Code Examples for org.apache.flink.core.memory.MemorySegment#swapBytes()
The following examples show how to use
org.apache.flink.core.memory.MemorySegment#swapBytes() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NormalizedKeySorter.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void swap(int segmentNumberI, int segmentOffsetI, int segmentNumberJ, int segmentOffsetJ) { final MemorySegment segI = this.sortIndex.get(segmentNumberI); final MemorySegment segJ = this.sortIndex.get(segmentNumberJ); segI.swapBytes(this.swapBuffer, segJ, segmentOffsetI, segmentOffsetJ, this.indexEntrySize); }
Example 2
Source File: FixedLengthRecordSorter.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override public void swap(int segmentNumberI, int segmentOffsetI, int segmentNumberJ, int segmentOffsetJ) { final MemorySegment segI = this.sortBuffer.get(segmentNumberI); final MemorySegment segJ = this.sortBuffer.get(segmentNumberJ); segI.swapBytes(this.swapBuffer, segJ, segmentOffsetI, segmentOffsetJ, this.recordSize); }
Example 3
Source File: NormalizedKeySorter.java From flink with Apache License 2.0 | 5 votes |
@Override public void swap(int segmentNumberI, int segmentOffsetI, int segmentNumberJ, int segmentOffsetJ) { final MemorySegment segI = this.sortIndex.get(segmentNumberI); final MemorySegment segJ = this.sortIndex.get(segmentNumberJ); segI.swapBytes(this.swapBuffer, segJ, segmentOffsetI, segmentOffsetJ, this.indexEntrySize); }
Example 4
Source File: FixedLengthRecordSorter.java From flink with Apache License 2.0 | 5 votes |
@Override public void swap(int segmentNumberI, int segmentOffsetI, int segmentNumberJ, int segmentOffsetJ) { final MemorySegment segI = this.sortBuffer.get(segmentNumberI); final MemorySegment segJ = this.sortBuffer.get(segmentNumberJ); segI.swapBytes(this.swapBuffer, segJ, segmentOffsetI, segmentOffsetJ, this.recordSize); }
Example 5
Source File: NormalizedKeySorter.java From flink with Apache License 2.0 | 5 votes |
@Override public void swap(int segmentNumberI, int segmentOffsetI, int segmentNumberJ, int segmentOffsetJ) { final MemorySegment segI = this.sortIndex.get(segmentNumberI); final MemorySegment segJ = this.sortIndex.get(segmentNumberJ); segI.swapBytes(this.swapBuffer, segJ, segmentOffsetI, segmentOffsetJ, this.indexEntrySize); }
Example 6
Source File: FixedLengthRecordSorter.java From flink with Apache License 2.0 | 5 votes |
@Override public void swap(int segmentNumberI, int segmentOffsetI, int segmentNumberJ, int segmentOffsetJ) { final MemorySegment segI = this.sortBuffer.get(segmentNumberI); final MemorySegment segJ = this.sortBuffer.get(segmentNumberJ); segI.swapBytes(this.swapBuffer, segJ, segmentOffsetI, segmentOffsetJ, this.recordSize); }