public class HdfsRcFileDataSource extends Object implements RcFileDataSource
| Constructor and Description |
|---|
HdfsRcFileDataSource(String path,
FSDataInputStream inputStream,
long size,
FileFormatDataSourceStats stats) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RcFileDataSourceId |
getId() |
long |
getReadBytes() |
long |
getReadTimeNanos() |
long |
getSize() |
void |
readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength) |
String |
toString() |
public HdfsRcFileDataSource(String path, FSDataInputStream inputStream, long size, FileFormatDataSourceStats stats)
public RcFileDataSourceId getId()
getId in interface RcFileDataSourcepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getReadBytes()
getReadBytes in interface RcFileDataSourcepublic long getReadTimeNanos()
getReadTimeNanos in interface RcFileDataSourcepublic long getSize()
getSize in interface RcFileDataSourcepublic void readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength)
throws IOException
readFully in interface RcFileDataSourceIOExceptionCopyright © 2012–2023. All rights reserved.