Uses of Class
org.apache.flink.core.memory.MemorySegment
-
-
Uses of MemorySegment in org.apache.flink.api.common.typeutils
Methods in org.apache.flink.api.common.typeutils with parameters of type MemorySegment Modifier and Type Method Description abstract voidTypeComparator. putNormalizedKey(T record, MemorySegment target, int offset, int numBytes)Writes a normalized key for the given record into the target byte array, starting at the specified position and writing exactly the given number of bytes. -
Uses of MemorySegment in org.apache.flink.api.common.typeutils.base
Methods in org.apache.flink.api.common.typeutils.base with parameters of type MemorySegment Modifier and Type Method Description static voidNormalizedKeyUtil. putBooleanNormalizedKey(boolean value, MemorySegment target, int offset, int numBytes)static voidNormalizedKeyUtil. putByteNormalizedKey(byte value, MemorySegment target, int offset, int numBytes)static voidNormalizedKeyUtil. putCharNormalizedKey(char value, MemorySegment target, int offset, int numBytes)static voidNormalizedKeyUtil. putIntNormalizedKey(int iValue, MemorySegment target, int offset, int numBytes)static voidNormalizedKeyUtil. putLongNormalizedKey(long lValue, MemorySegment target, int offset, int numBytes)voidBigDecComparator. putNormalizedKey(BigDecimal record, MemorySegment target, int offset, int len)Adds a normalized key containing a normalized order of magnitude of the given record.voidBigIntComparator. putNormalizedKey(BigInteger record, MemorySegment target, int offset, int len)Adds a normalized key containing the normalized number of bits and MSBs of the given record.voidBooleanComparator. putNormalizedKey(Boolean value, MemorySegment target, int offset, int numBytes)voidBooleanValueComparator. putNormalizedKey(BooleanValue record, MemorySegment target, int offset, int numBytes)voidByteComparator. putNormalizedKey(Byte value, MemorySegment target, int offset, int numBytes)voidByteValueComparator. putNormalizedKey(ByteValue record, MemorySegment target, int offset, int numBytes)voidCharComparator. putNormalizedKey(Character value, MemorySegment target, int offset, int numBytes)voidCharValueComparator. putNormalizedKey(CharValue record, MemorySegment target, int offset, int numBytes)voidDateComparator. putNormalizedKey(Date record, MemorySegment target, int offset, int numBytes)voidDoubleComparator. putNormalizedKey(Double value, MemorySegment target, int offset, int numBytes)voidDoubleValueComparator. putNormalizedKey(DoubleValue record, MemorySegment target, int offset, int numBytes)voidEnumComparator. putNormalizedKey(T iValue, MemorySegment target, int offset, int numBytes)voidFloatComparator. putNormalizedKey(Float value, MemorySegment target, int offset, int numBytes)voidFloatValueComparator. putNormalizedKey(FloatValue record, MemorySegment target, int offset, int numBytes)voidInstantComparator. putNormalizedKey(java.time.Instant record, MemorySegment target, int offset, int numBytes)voidIntComparator. putNormalizedKey(Integer iValue, MemorySegment target, int offset, int numBytes)voidIntValueComparator. putNormalizedKey(IntValue record, MemorySegment target, int offset, int numBytes)voidLocalDateComparator. putNormalizedKey(java.time.LocalDate record, MemorySegment target, int offset, int numBytes)voidLocalDateTimeComparator. putNormalizedKey(java.time.LocalDateTime record, MemorySegment target, int offset, int numBytes)voidLocalTimeComparator. putNormalizedKey(java.time.LocalTime record, MemorySegment target, int offset, int numBytes)voidLongComparator. putNormalizedKey(Long lValue, MemorySegment target, int offset, int numBytes)voidLongValueComparator. putNormalizedKey(LongValue record, MemorySegment target, int offset, int numBytes)voidNullValueComparator. putNormalizedKey(NullValue record, MemorySegment target, int offset, int numBytes)voidShortComparator. putNormalizedKey(Short value, MemorySegment target, int offset, int numBytes)voidShortValueComparator. putNormalizedKey(ShortValue record, MemorySegment target, int offset, int numBytes)voidSqlTimestampComparator. putNormalizedKey(Date record, MemorySegment target, int offset, int numBytes)voidStringComparator. putNormalizedKey(String record, MemorySegment target, int offset, int len)voidStringValueComparator. putNormalizedKey(StringValue record, MemorySegment target, int offset, int numBytes)static voidDateComparator. putNormalizedKeyDate(Date record, MemorySegment target, int offset, int numBytes)static voidLocalDateComparator. putNormalizedKeyLocalDate(java.time.LocalDate record, MemorySegment target, int offset, int numBytes)static voidLocalTimeComparator. putNormalizedKeyLocalTime(java.time.LocalTime record, MemorySegment target, int offset, int numBytes)static voidNormalizedKeyUtil. putShortNormalizedKey(short value, MemorySegment target, int offset, int numBytes)static voidNormalizedKeyUtil. putUnsignedIntegerNormalizedKey(int value, MemorySegment target, int offset, int numBytes)static voidNormalizedKeyUtil. putUnsignedLongNormalizedKey(long value, MemorySegment target, int offset, int numBytes) -
Uses of MemorySegment in org.apache.flink.api.common.typeutils.base.array
Methods in org.apache.flink.api.common.typeutils.base.array with parameters of type MemorySegment Modifier and Type Method Description voidPrimitiveArrayComparator. putNormalizedKey(T record, MemorySegment target, int offset, int numBytes) -
Uses of MemorySegment in org.apache.flink.api.java.typeutils.runtime
Methods in org.apache.flink.api.java.typeutils.runtime with parameters of type MemorySegment Modifier and Type Method Description voidCopyableValueComparator. putNormalizedKey(T record, MemorySegment target, int offset, int numBytes)voidGenericTypeComparator. putNormalizedKey(T record, MemorySegment target, int offset, int numBytes)voidNullAwareComparator. putNormalizedKey(T record, MemorySegment target, int offset, int numBytes)voidPojoComparator. putNormalizedKey(T value, MemorySegment target, int offset, int numBytes)voidRowComparator. putNormalizedKey(Row record, MemorySegment target, int offset, int numBytes)voidTupleComparator. putNormalizedKey(T value, MemorySegment target, int offset, int numBytes)voidValueComparator. putNormalizedKey(T record, MemorySegment target, int offset, int numBytes) -
Uses of MemorySegment in org.apache.flink.core.memory
Methods in org.apache.flink.core.memory that return MemorySegment Modifier and Type Method Description static MemorySegmentMemorySegmentFactory. allocateOffHeapUnsafeMemory(int size)static MemorySegmentMemorySegmentFactory. allocateOffHeapUnsafeMemory(int size, Object owner, Runnable customCleanupAction)Allocates an off-heap unsafe memory and creates a new memory segment to represent that memory.static MemorySegmentMemorySegmentFactory. allocateUnpooledOffHeapMemory(int size)Allocates some unpooled off-heap memory and creates a new memory segment that represents that memory.static MemorySegmentMemorySegmentFactory. allocateUnpooledOffHeapMemory(int size, Object owner)Allocates some unpooled off-heap memory and creates a new memory segment that represents that memory.static MemorySegmentMemorySegmentFactory. allocateUnpooledSegment(int size)Allocates some unpooled memory and creates a new memory segment that represents that memory.static MemorySegmentMemorySegmentFactory. allocateUnpooledSegment(int size, Object owner)Allocates some unpooled memory and creates a new memory segment that represents that memory.MemorySegmentMemorySegmentSource. nextSegment()Gets the next memory segment.static MemorySegmentMemorySegmentFactory. wrap(byte[] buffer)Creates a new memory segment that targets the given heap memory region.static MemorySegmentMemorySegmentFactory. wrapCopy(byte[] bytes, int start, int end)Copies the given heap memory region and creates a new memory segment wrapping it.static MemorySegmentMemorySegmentFactory. wrapInt(int value)Wraps the four bytes representing the given number with aMemorySegment.static MemorySegmentMemorySegmentFactory. wrapOffHeapMemory(ByteBuffer memory)Creates a memory segment that wraps the off-heap memory backing the given ByteBuffer.Methods in org.apache.flink.core.memory that return types with arguments of type MemorySegment Modifier and Type Method Description Collection<MemorySegment>MemorySegmentProvider. requestUnpooledMemorySegments(int numberOfSegmentsToRequest)Methods in org.apache.flink.core.memory with parameters of type MemorySegment Modifier and Type Method Description intMemorySegment. compare(MemorySegment seg2, int offset1, int offset2, int len)Compares two memory segment regions.intMemorySegment. compare(MemorySegment seg2, int offset1, int offset2, int len1, int len2)Compares two memory segment regions with different length.voidMemorySegment. copyTo(int offset, MemorySegment target, int targetOffset, int numBytes)Bulk copy method.booleanMemorySegment. equalTo(MemorySegment seg2, int offset1, int offset2, int length)Equals two memory segment regions.voidMemorySegmentInputStreamWithPos. setSegment(MemorySegment segment, int offset, int length)voidMemorySegment. swapBytes(byte[] tempBuffer, MemorySegment seg2, int offset1, int offset2, int len)Swaps bytes between two memory segments, using the given auxiliary buffer.voidDataOutputSerializer. write(MemorySegment segment, int off, int len)voidMemorySegmentWritable. write(MemorySegment segment, int off, int len)Writeslenbytes from memory segmentsegmentstarting at offsetoff, in order, to the output.Method parameters in org.apache.flink.core.memory with type arguments of type MemorySegment Modifier and Type Method Description voidMemorySegmentProvider. recycleUnpooledMemorySegments(Collection<MemorySegment> segments)Constructors in org.apache.flink.core.memory with parameters of type MemorySegment Constructor Description MemorySegmentInputStreamWithPos(MemorySegment segment, int offset, int length) -
Uses of MemorySegment in org.apache.flink.types
Methods in org.apache.flink.types with parameters of type MemorySegment Modifier and Type Method Description voidBooleanValue. copyNormalizedKey(MemorySegment target, int offset, int len)voidByteValue. copyNormalizedKey(MemorySegment target, int offset, int len)voidCharValue. copyNormalizedKey(MemorySegment target, int offset, int len)voidIntValue. copyNormalizedKey(MemorySegment target, int offset, int len)voidLongValue. copyNormalizedKey(MemorySegment target, int offset, int len)voidNormalizableKey. copyNormalizedKey(MemorySegment memory, int offset, int len)Writes a normalized key for the given record into the target byte array, starting at the specified position an writing exactly the given number of bytes.voidNullValue. copyNormalizedKey(MemorySegment target, int offset, int len)voidShortValue. copyNormalizedKey(MemorySegment target, int offset, int len)voidStringValue. copyNormalizedKey(MemorySegment target, int offset, int len)
-