Skip to content

HadoopStreams to support ByteBufferPositionedReadable input streams #3080

@steveloughran

Description

@steveloughran

Describe the enhancement requested

If a stream declares in its StreamCapabilities that it supports
ByteBufferPositionedReadable, then use it for readFully(ByteBuffer)
All streams in Hadoop 3.0.0 + do declare this.

  • use StreamCapabilities to look for ByteBufferReadable.

For detecting ByteBufferReadable, use this probe falling back to the recursive scan.
All streams in the hadoop codebase will report this via StreamCapabilities, but there
may be some third-party streams which do not.

Component(s)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions