Available Methods
- set ( )
- get ( )
- setInt ( )
- setBoolean ( )
- getInt ( )
- getBoolean ( )
- setLong ( )
- getLong ( )
- setClass ( )
- addResource ( )
- getClass ( )
- setStrings ( )
- getStrings ( )
- setFloat ( )
- getFloat ( )
- writeXml ( )
- getSocketAddr ( )
- getTrimmed ( )
- unset ( )
- getDouble ( )
- getTrimmedStringCollection ( )
- getValByRegex ( )
- setIfUnset ( )
- addDefaultResource ( )
- iterator ( )
- updateConnectAddr ( )
- getClassByName ( )
- setDouble ( )
- getTrimmedStrings ( )
- getStringCollection ( )
- getPassword ( )
- clear ( )
- getClasses ( )
- getResource ( )
- getInstances ( )
- addDeprecation ( )
- getInts ( )
- IntegerRanges ( )
- readFields ( )
- setClassLoader ( )
- setEnum ( )
- dumpDeprecatedKeys ( )
- getPropertySources ( )
- onlyKeyExists ( )
- setTimeDuration ( )
- getClassLoader ( )
- addDeprecations ( )
- reloadConfiguration ( )
- write ( )
- getLongBytes ( )
- setBooleanIfUnset ( )
- forEach ( )
- getClassByNameOrNull ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.util.Collections
- java.io.InputStream
- java.util.Iterator
- java.util.concurrent.TimeUnit
- org.junit.Before
- java.util.Properties
- java.net.URI
- org.junit.Assert
- java.net.URISyntaxException
- org.junit.BeforeClass
- java.net.InetSocketAddress
- com.google.common.collect.Lists
- org.mockito.Mockito
- com.google.common.base.Preconditions
- org.apache.hadoop.fs.Path
- org.apache.hadoop.fs.FileSystem
- org.apache.hadoop.io.Text
- java.security.PrivilegedExceptionAction
- org.apache.hadoop.fs.FileStatus
- org.apache.hadoop.fs.FSDataInputStream
- org.apache.hadoop.fs.FSDataOutputStream
- org.apache.hadoop.mapreduce.Job
- org.apache.hadoop.mapreduce.lib.input.FileInputFormat
Java Code Examples for org.apache.hadoop.conf.Configuration#write()
The following examples show how to use
org.apache.hadoop.conf.Configuration#write() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HadoopConfSerializeWrapper.java From twister2 with Apache License 2.0 | 5 votes |
public HadoopConfSerializeWrapper(Configuration configuration) { this.configuration = configuration; try { ByteArrayOutputStream out = new ByteArrayOutputStream(); configuration.write(new DataOutputStream(out)); this.value = out.toByteArray(); } catch (IOException e) { throw new RuntimeException("Failed to write hadoop configuration to byte array", e); } }
Example 2
Source File: HadoopFormatIO.java From beam with Apache License 2.0 | 4 votes |
@Override public void encode(Configuration value, OutputStream outStream) throws IOException { DataOutputStream dataOutputStream = new DataOutputStream(outStream); value.write(dataOutputStream); dataOutputStream.flush(); }