private static class Export.SecureWriter extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
private Export.PrivilegedWriter |
privilegedWriter |
Constructor and Description |
---|
SecureWriter(org.apache.hadoop.conf.Configuration conf,
UserProvider userProvider,
org.apache.hadoop.security.token.Token userToken,
List<org.apache.hadoop.io.SequenceFile.Writer.Option> opts) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
append(Object key,
Object value) |
void |
close() |
private static User |
getActiveUser(UserProvider userProvider,
org.apache.hadoop.security.token.Token userToken) |
private final Export.PrivilegedWriter privilegedWriter
SecureWriter(org.apache.hadoop.conf.Configuration conf, UserProvider userProvider, org.apache.hadoop.security.token.Token userToken, List<org.apache.hadoop.io.SequenceFile.Writer.Option> opts) throws IOException
IOException
void append(Object key, Object value) throws IOException
IOException
private static User getActiveUser(UserProvider userProvider, org.apache.hadoop.security.token.Token userToken) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.