@ThreadSafe public class LocalPositionReader extends Object implements PositionReader
PositionReader
that reads from local UFS.Constructor and Description |
---|
LocalPositionReader(String path,
long fileLength) |
Modifier and Type | Method and Description |
---|---|
int |
readInternal(long position,
ReadTargetBuffer buffer,
int length) |
public LocalPositionReader(String path, long fileLength)
path
- the local file pathfileLength
- the file lengthpublic 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.