@NotThreadSafe public class SharedGrpcDataReader extends Object implements DataReader
Modifier and Type | Class and Description |
---|---|
static class |
SharedGrpcDataReader.Factory
Factory class to create
SharedGrpcDataReader s. |
Modifier | Constructor and Description |
---|---|
protected |
SharedGrpcDataReader(ReadRequest readRequest,
BufferCachingGrpcDataReader reader)
Creates an instance of
SharedGrpcDataReader . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
pos() |
DataBuffer |
readChunk()
Reads a chunk.
|
void |
seek(long pos)
Seeks to a specific position.
|
protected SharedGrpcDataReader(ReadRequest readRequest, BufferCachingGrpcDataReader reader)
SharedGrpcDataReader
.readRequest
- the read requestreader
- the cached Grpc data reader for the given blockpublic long pos()
pos
in interface DataReader
public void seek(long pos)
pos
- the position to seek to@Nullable public DataBuffer readChunk() throws IOException
DataReader
readChunk
in interface DataReader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023. All Rights Reserved.