@NotThreadSafe public static class LocalFileDataReader.Factory extends Object implements DataReader.Factory
LocalFileDataReaders.| Constructor and Description |
|---|
Factory(FileSystemContext context,
alluxio.wire.WorkerNetAddress address,
long blockId,
long localReaderChunkSize,
InStreamOptions options)
Creates an instance of
LocalFileDataReader.Factory. |
| 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, long blockId, long localReaderChunkSize, InStreamOptions options) throws IOException
LocalFileDataReader.Factory.context - the file system contextaddress - the worker addressblockId - the block IDlocalReaderChunkSize - chunk size in bytes for local readsoptions - the instream optionsIOExceptionpublic 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.