private static class Export.PrivilegedWriter extends Object implements PrivilegedExceptionAction<Boolean>, Closeable
| Modifier and Type | Field and Description |
|---|---|
private Object |
key |
private org.apache.hadoop.io.SequenceFile.Writer |
out |
private User |
user |
private Object |
value |
| Constructor and Description |
|---|
PrivilegedWriter(User user,
org.apache.hadoop.io.SequenceFile.Writer out) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
append(Object key,
Object value) |
void |
close() |
Boolean |
run() |
private final org.apache.hadoop.io.SequenceFile.Writer out
PrivilegedWriter(User user, org.apache.hadoop.io.SequenceFile.Writer out)
void append(Object key, Object value) throws IOException
IOExceptionpublic Boolean run() throws Exception
run in interface PrivilegedExceptionAction<Boolean>Exceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.