Examples of SerializationFactory


Examples of org.apache.hadoop.io.serializer.SerializationFactory

        ReflectionUtils.newInstance(taskContext.getInputFormatClass(), job);
    // rebuild the input split
    org.apache.hadoop.mapreduce.InputSplit split = null;
    DataInputBuffer splitBuffer = new DataInputBuffer();
    splitBuffer.reset(rawSplit.getBytes(), 0, rawSplit.getLength());
    SerializationFactory factory = new SerializationFactory(job);
    Deserializer<? extends org.apache.hadoop.mapreduce.InputSplit>
      deserializer =
        (Deserializer<? extends org.apache.hadoop.mapreduce.InputSplit>)
        factory.getDeserializer(job.getClassByName(splitClass));
    deserializer.open(splitBuffer);
    split = deserializer.deserialize(null);

    org.apache.hadoop.mapreduce.RecordReader<INKEY,INVALUE> input =
      new NewTrackingRecordReader<INKEY,INVALUE>
View Full Code Here

Examples of rocket.serialization.client.SerializationFactory

  public void executeRocketTests(final int elementCount, final int iterations) {
    try {
      logNewBenchmark(ROCKET);

      final SerializationFactory factory = (SerializationFactory) com.google.gwt.core.client.GWT
          .create(TestSerializationFactoryComposer.class);
      final Tree tree = this.createTree(elementCount);

      final String serializedForm = this.performRocketSerializationTimings(tree, factory, iterations);
      this.performRocketDeserializationTimings(factory, tree, serializedForm, iterations);
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.