static class IntegrationTestBigLinkedList.Search extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
Modifier and Type | Class and Description |
---|---|
static class |
IntegrationTestBigLinkedList.Search.WALSearcher
WALPlayer override that searches for keys loaded in the setup.
|
Modifier and Type | Field and Description |
---|---|
(package private) static String |
FOUND_GROUP_KEY |
protected org.apache.hadoop.mapreduce.Job |
job |
private static org.slf4j.Logger |
LOG |
(package private) static String |
SEARCHER_INPUTDIR_KEY |
Constructor and Description |
---|
Search() |
Modifier and Type | Method and Description |
---|---|
private static void |
printUsage(String error) |
private static SortedSet<byte[]> |
readFileToSearch(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.LocatedFileStatus keyFileStatus) |
(package private) static SortedSet<byte[]> |
readKeysToSearch(org.apache.hadoop.conf.Configuration conf) |
int |
run(org.apache.hadoop.fs.Path inputDir,
int numMappers) |
int |
run(String[] args) |
private static final org.slf4j.Logger LOG
protected org.apache.hadoop.mapreduce.Job job
static final String FOUND_GROUP_KEY
static final String SEARCHER_INPUTDIR_KEY
Search()
private static void printUsage(String error)
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
public int run(org.apache.hadoop.fs.Path inputDir, int numMappers) throws Exception
Exception
static SortedSet<byte[]> readKeysToSearch(org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException
IOException
InterruptedException
private static SortedSet<byte[]> readFileToSearch(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.LocatedFileStatus keyFileStatus) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.