@InterfaceAudience.Private public class HadoopPlatform extends Platform
keyClassNames
Constructor and Description |
---|
HadoopPlatform() |
Modifier and Type | Method and Description |
---|---|
boolean |
define(Class<?> comparatorClass)
whether it's the platform that has defined a custom Java comparator
NativeTask doesn't support custom Java comparators
(set with mapreduce.job.output.key.comparator.class)
but a platform (e.g Pig) could also set that conf and implement native
comparators so we shouldn't bail out.
|
void |
init()
initialize a platform, where we should call registerKey
|
String |
name() |
boolean |
support(String keyClassName,
INativeSerializer<?> serializer,
org.apache.hadoop.mapred.JobConf job)
whether a platform supports a specific key should at least satisfy two conditions
1.
|
registerKey
public HadoopPlatform() throws IOException
IOException
public void init() throws IOException
Platform
init
in class Platform
IOException
public boolean support(String keyClassName, INativeSerializer<?> serializer, org.apache.hadoop.mapred.JobConf job)
Platform
INativeComparable
interfacepublic boolean define(Class<?> comparatorClass)
Platform
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.