public class NettyDataReader extends Object implements PositionReader
Constructor and Description |
---|
NettyDataReader(FileSystemContext context,
WorkerNetAddress address,
Protocol.ReadRequest.Builder requestBuilder)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
readInternal(long position,
ReadTargetBuffer buffer,
int length) |
public NettyDataReader(FileSystemContext context, WorkerNetAddress address, Protocol.ReadRequest.Builder requestBuilder)
context
- address
- requestBuilder
- public int readInternal(long position, ReadTargetBuffer buffer, int length) throws IOException
readInternal
in interface PositionReader
position
- position of the file to start reading databuffer
- target byte bufferlength
- bytes to readIOException
Copyright © 2023. All Rights Reserved.