public abstract class LzoInputFormatCommon extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_IGNORE_NONLZO
Default value of the
lzo.text.input.format.ignore.nonlzo
property. |
static String |
FULL_LZO_INDEX_SUFFIX
Full extension for LZO index files (".lzo.index").
|
static String |
IGNORE_NONLZO_KEY
The boolean property
lzo.text.input.format.ignore.nonlzo tells
the LZO text input format whether it should silently ignore non-LZO input
files. |
| Constructor and Description |
|---|
LzoInputFormatCommon() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getIgnoreNonLzoProperty(org.apache.hadoop.conf.Configuration conf) |
static boolean |
isLzoFile(String filename)
Checks if the given filename ends in ".lzo".
|
static boolean |
isLzoIndexFile(String filename)
Checks if the given filename ends in ".lzo.index".
|
public static final String IGNORE_NONLZO_KEY
lzo.text.input.format.ignore.nonlzo tells
the LZO text input format whether it should silently ignore non-LZO input
files. When the property is true (which is the default), non-LZO files will
be silently ignored. When the property is false, non-LZO files will be
processed using the standard TextInputFormat.public static final boolean DEFAULT_IGNORE_NONLZO
lzo.text.input.format.ignore.nonlzo
property.public static final String FULL_LZO_INDEX_SUFFIX
public static boolean getIgnoreNonLzoProperty(org.apache.hadoop.conf.Configuration conf)
conf - the Configuration objectlzo.text.input.format.ignore.nonlzo
property in conf, or DEFAULT_IGNORE_NONLZO
if the property is not set.public static boolean isLzoFile(String filename)
filename - filename to check.public static boolean isLzoIndexFile(String filename)
filename - filename to check.Copyright © 2016. All Rights Reserved.