@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. | 
registerKeypublic HadoopPlatform()
               throws IOException
IOExceptionpublic void init()
          throws IOException
Platforminit in class PlatformIOExceptionpublic boolean support(String keyClassName, INativeSerializer<?> serializer, org.apache.hadoop.mapred.JobConf job)
PlatformINativeComparable interfacepublic boolean define(Class<?> comparatorClass)
PlatformCopyright © 2008–2023 Apache Software Foundation. All rights reserved.