|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.client.mapreduce.lib.impl.ConfiguratorBase org.apache.accumulo.core.client.mapreduce.lib.impl.FileOutputConfigurator
public class FileOutputConfigurator
Nested Class Summary | |
---|---|
static class |
FileOutputConfigurator.Opts
Configuration keys for AccumuloConfiguration . |
Nested classes/interfaces inherited from class org.apache.accumulo.core.client.mapreduce.lib.impl.ConfiguratorBase |
---|
ConfiguratorBase.ConnectorInfo, ConfiguratorBase.GeneralOpts, ConfiguratorBase.InstanceOpts, ConfiguratorBase.TokenSource |
Constructor Summary | |
---|---|
FileOutputConfigurator()
|
Method Summary | |
---|---|
static AccumuloConfiguration |
getAccumuloConfiguration(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
This helper method provides an AccumuloConfiguration object constructed from the Accumulo defaults, and overridden with Accumulo properties that have been stored in the Job's configuration. |
protected static Boolean |
isSupportedAccumuloProperty(Property property)
The supported Accumulo properties we set in this OutputFormat, that change the behavior of the RecordWriter. These properties correspond to the supported public static setter methods available to this class. |
static void |
setCompressionType(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
String compressionType)
Sets the compression type to use for data blocks. |
static void |
setDataBlockSize(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
long dataBlockSize)
Sets the size for data blocks within each file. Data blocks are a span of key/value pairs stored in the file that are compressed and indexed as a group. |
static void |
setFileBlockSize(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
long fileBlockSize)
Sets the size for file blocks in the file system; file blocks are managed, and replicated, by the underlying file system. |
static void |
setIndexBlockSize(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
long indexBlockSize)
Sets the size for index blocks within each file; smaller blocks means a deeper index hierarchy within the file, while larger blocks mean a more shallow index hierarchy within the file. |
static void |
setReplication(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
int replication)
Sets the file system replication factor for the resulting file, overriding the file system default. |
Methods inherited from class org.apache.accumulo.core.client.mapreduce.lib.impl.ConfiguratorBase |
---|
enumToConfKey, enumToConfKey, getAuthenticationToken, getInstance, getLogLevel, getPrincipal, getTokenFromFile, getVisibilityCacheSize, isConnectorInfoSet, setConnectorInfo, setConnectorInfo, setLogLevel, setMockInstance, setVisibilityCacheSize, setZooKeeperInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileOutputConfigurator()
Method Detail |
---|
protected static Boolean isSupportedAccumuloProperty(Property property)
property
- the Accumulo property to checkpublic static AccumuloConfiguration getAccumuloConfiguration(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configurepublic static void setCompressionType(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, String compressionType)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configurecompressionType
- one of "none", "gz", "lzo", or "snappy"public static void setDataBlockSize(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, long dataBlockSize)
Making this value smaller may increase seek performance, but at the cost of increasing the size of the indexes (which can also affect seek performance).
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configuredataBlockSize
- the block size, in bytespublic static void setFileBlockSize(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, long fileBlockSize)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configurefileBlockSize
- the block size, in bytespublic static void setIndexBlockSize(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, long indexBlockSize)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureindexBlockSize
- the block size, in bytespublic static void setReplication(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, int replication)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configurereplication
- the number of replicas for produced files
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |