public class AnalyticsStream extends ObjectInputStream implements org.apache.hadoop.fs.StreamCapabilities
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
AnalyticsStream(ObjectReadParameters parameters,
software.amazon.s3.analyticsaccelerator.S3SeekableInputStreamFactory s3SeekableInputStreamFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abortInFinalizer()
Brute force stream close; invoked by
LeakReporter. |
int |
available() |
void |
close()
Close the stream.
|
long |
getPos() |
protected boolean |
isClosed() |
protected boolean |
isStreamOpen()
Probe for stream being open.
|
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
int |
readTail(byte[] buf,
int off,
int len)
Reads the last n bytes from the stream into a byte buffer.
|
void |
seek(long pos) |
boolean |
seekToNewSource(long l) |
protected void |
throwIfClosed() |
finalize, getBoundedThreadPool, getBucket, getCallbacks, getContentLength, getContext, getInputPolicy, getIOStatistics, getKey, getObjectAttributes, getPathStr, getS3AStreamStatistics, getThreadIOStatistics, getUri, getVectoredIOContext, hasCapability, maxReadSizeForVectorReads, mergeThreadIOStatistics, minSeekForVectorReads, setInputPolicy, streamType, toStringread, readFully, readFully, validatePositionedReadArgsmark, markSupported, read, reset, skippublic AnalyticsStream(ObjectReadParameters parameters, software.amazon.s3.analyticsaccelerator.S3SeekableInputStreamFactory s3SeekableInputStreamFactory) throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void seek(long pos)
throws IOException
seek in interface org.apache.hadoop.fs.Seekableseek in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic long getPos()
getPos in interface org.apache.hadoop.fs.SeekablegetPos in class org.apache.hadoop.fs.FSInputStreampublic int readTail(byte[] buf,
int off,
int len)
throws IOException
buf - buffer to read data intooff - start position in buffer at which data is writtenlen - the number of bytes to read; the n-th byte should be the last byte of the stream.IOException - if an I/O error occurspublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic boolean seekToNewSource(long l)
throws IOException
seekToNewSource in interface org.apache.hadoop.fs.SeekableseekToNewSource in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionprotected boolean isStreamOpen()
ObjectInputStreamisStreamOpen in class ObjectInputStreamprotected boolean isClosed()
protected void abortInFinalizer()
ObjectInputStreamLeakReporter.
All exceptions raised are ignored.abortInFinalizer in class ObjectInputStreampublic void close()
throws IOException
ObjectInputStreamclose in interface Closeableclose in interface AutoCloseableclose in class ObjectInputStreamIOException - on any problemprotected void throwIfClosed()
throws IOException
IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.