public class HdfsLimitOutputStream extends OutputStream
| Constructor and Description |
|---|
HdfsLimitOutputStream(org.apache.hadoop.fs.FileSystem fs,
long maxSizeToStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
org.apache.hadoop.fs.Path |
getHdfsPath() |
long |
getLength() |
String |
getRowKey() |
byte[] |
getSmall() |
boolean |
hasExceededSizeLimit() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public HdfsLimitOutputStream(org.apache.hadoop.fs.FileSystem fs,
long maxSizeToStore)
throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic boolean hasExceededSizeLimit()
public org.apache.hadoop.fs.Path getHdfsPath()
public byte[] getSmall()
public String getRowKey()
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic long getLength()
Copyright © 2016–2020 MWARE SOLUTIONS. All rights reserved.