Examples of OrcWritable


Examples of org.apache.crunch.io.orc.OrcWritable

    Map<Text, OrcStruct> map = new HashMap<Text, OrcStruct>();
    OrcStruct value = OrcUtils.createOrcStruct(mapValueTypeInfo, new Text("age"), new IntWritable(24));
    map.put(new Text("Bob"), value);
    OrcStruct s = OrcUtils.createOrcStruct(typeInfo, new IntWritable(1024), new Text("Alice"),
        null, new HiveVarcharWritable(varchar), map);
    OrcWritable w = new OrcWritable();
    w.set(s);
   
    testInputOutputFn(ptype, s, w);
  }
View Full Code Here

Examples of org.apache.crunch.io.orc.OrcWritable

        Arrays.asList(new Text("999-888-1132"), new Text("000-222-9934"))));
    map.put(new Text("David"), null);
    OrcStruct s = OrcUtils.createOrcStruct(AddressBook.TYPE_INFO, new Text("John Smith"),
        Arrays.asList(new Text("919-333-4452"), new Text("650-777-4329")), map, new TimestampWritable(now),
        new BytesWritable(signature));
    OrcWritable w = new OrcWritable();
    w.set(s);
   
    testInputOutputFn(ptype, ab, w);
  }
View Full Code Here

Examples of org.apache.crunch.io.orc.OrcWritable

            OrcUtils.createOrcStruct(Person.TYPE_INFO, new Text("Bob"), new IntWritable(26),
                Arrays.asList(new Text("999-888-1132"), new Text("000-222-9934"))
            )
        )
    );
    OrcWritable w = new OrcWritable();
    w.set(s);
   
    testInputOutputFn(ptype, t, w);
  }
View Full Code Here

Examples of org.apache.crunch.io.orc.OrcWritable

      serde = OrcUtils.createBinarySerde(typeInfo);
    }

    @Override
    public OrcWritable map(OrcStruct input) {
      OrcWritable output = new OrcWritable();
      output.setObjectInspector(oi);
      output.setSerde(serde);
      output.set(input);
      return output;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.