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
IOException
public Boolean run() throws Exception
run
in interface PrivilegedExceptionAction<Boolean>
Exception
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.