Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.DataInput;
- import java.io.DataOutput;
- import java.io.IOException;
- import org.apache.hadoop.io.WritableComparable;
- //public class IntWritable implements WritableComparable {
- class MyIntWritable implements WritableComparable<MyIntWritable>{
- @Override
- public void write(DataOutput out) throws IOException {
- // TODO Auto-generated method stub
- }
- @Override
- public void readFields(DataInput in) throws IOException {
- // TODO Auto-generated method stub
- }
- @Override
- public int compareTo(MyIntWritable o) {
- // TODO Auto-generated method stub
- return 0;
- }
- }
- public class A{
- public static class Inner
- <KEY extends WritableComparable<? super KEY>>{
- }
- public static void main(String[] args){
- A.Inner<MyIntWritable> a = new A.Inner<MyIntWritable>();
- // A.Inner<IntWritable> a = new A.Inner<IntWritable>(); //CANNOT DO THIS CURRENTLY.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement