Class HadoopPlatform
java.lang.Object
org.apache.hadoop.mapred.nativetask.Platform
org.apache.hadoop.mapred.nativetask.HadoopPlatform
-
Field Summary
Fields inherited from class org.apache.hadoop.mapred.nativetask.Platform
keyClassNames -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanwhether 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.voidinit()initialize a platform, where we should call registerKeyname()booleansupport(String keyClassName, INativeSerializer<?> serializer, org.apache.hadoop.mapred.JobConf job) whether a platform supports a specific key should at least satisfy two conditions 1. the key belongs to the platform 2. the associated serializer must implementINativeComparableinterfaceMethods inherited from class org.apache.hadoop.mapred.nativetask.Platform
registerKey
-
Constructor Details
-
HadoopPlatform
- Throws:
IOException
-
-
Method Details
-
init
Description copied from class:Platforminitialize a platform, where we should call registerKey- Specified by:
initin classPlatform- Throws:
IOException
-
support
public boolean support(String keyClassName, INativeSerializer<?> serializer, org.apache.hadoop.mapred.JobConf job) Description copied from class:Platformwhether a platform supports a specific key should at least satisfy two conditions 1. the key belongs to the platform 2. the associated serializer must implementINativeComparableinterface -
define
Description copied from class:Platformwhether 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. -
name
-