public static class GrpcDataReader.Factory extends Object implements DataReader.Factory
GrpcDataReaders.| Constructor and Description |
|---|
Factory(FileSystemContext context,
alluxio.wire.WorkerNetAddress address,
alluxio.grpc.ReadRequest readRequestPartial)
Creates an instance of
GrpcDataReader.Factory for block reads. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DataReader |
create(long offset,
long len)
Creates an instance of
DataReader. |
boolean |
isShortCircuit() |
public Factory(FileSystemContext context, alluxio.wire.WorkerNetAddress address, alluxio.grpc.ReadRequest readRequestPartial)
GrpcDataReader.Factory for block reads.context - the file system contextaddress - the worker addressreadRequestPartial - the partial read requestpublic DataReader create(long offset, long len) throws IOException
DataReader.FactoryDataReader.create in interface DataReader.Factoryoffset - the stream offsetlen - the length of the streamIOExceptionpublic boolean isShortCircuit()
isShortCircuit in interface DataReader.Factorypublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2024. All Rights Reserved.