You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jingsong Lee (JIRA)" <ji...@apache.org> on 2019/02/28 05:43:00 UTC

[jira] [Updated] (FLINK-11775) Introduce MemorySegmentWritable to let DataOutputView direct copy to internal bytes

     [ https://issues.apache.org/jira/browse/FLINK-11775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jingsong Lee updated FLINK-11775:
---------------------------------
    Description: 
Blink new binary format is based on MemorySegment.

Introduce MemorySegmentWritable to let DataOutputView direct copy to internal bytes

```

/**
 * Provides the interface for write(Segment).
 */
public interface MemorySegmentWritable {

 /**
 * Writes \{@code len} bytes from memory segment \{@code segment} starting at offset \{@code off}, in order,
 * to the output.
 *
 * @param segment memory segment to copy the bytes from.
 * @param off the start offset in the memory segment.
 * @param len The number of bytes to copy.
 * @throws IOException if an I/O error occurs.
 */
 void write(MemorySegment segment, int off, int len) throws IOException;
}

```

  was:
Blink new binary format is based on MemorySegment.

Introduce MemorySegmentWritable to let DataOutputView direct copy to internal bytes


> Introduce MemorySegmentWritable to let DataOutputView direct copy to internal bytes
> -----------------------------------------------------------------------------------
>
>                 Key: FLINK-11775
>                 URL: https://issues.apache.org/jira/browse/FLINK-11775
>             Project: Flink
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Jingsong Lee
>            Assignee: Jingsong Lee
>            Priority: Major
>
> Blink new binary format is based on MemorySegment.
> Introduce MemorySegmentWritable to let DataOutputView direct copy to internal bytes
> ```
> /**
>  * Provides the interface for write(Segment).
>  */
> public interface MemorySegmentWritable {
>  /**
>  * Writes \{@code len} bytes from memory segment \{@code segment} starting at offset \{@code off}, in order,
>  * to the output.
>  *
>  * @param segment memory segment to copy the bytes from.
>  * @param off the start offset in the memory segment.
>  * @param len The number of bytes to copy.
>  * @throws IOException if an I/O error occurs.
>  */
>  void write(MemorySegment segment, int off, int len) throws IOException;
> }
> ```



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)