Package eu.stratosphere.runtime.io.serialization

Examples of eu.stratosphere.runtime.io.serialization.DataInputDeserializer


    if (this.serializedEventList == null) {
      return Collections.emptyList();
    }

    try {
      DataInputDeserializer deserializer = new DataInputDeserializer(this.serializedEventList);

      int numEvents = deserializer.readInt();
      ArrayList<AbstractEvent> events = new ArrayList<AbstractEvent>(numEvents);

      for (int i = 0; i < numEvents; i++) {
        String className = deserializer.readUTF();
        Class<? extends AbstractEvent> clazz;
        try {
          clazz = Class.forName(className).asSubclass(AbstractEvent.class);
        } catch (ClassNotFoundException e) {
          throw new RuntimeException("Could not load event class '" + className + "'.", e);
View Full Code Here

TOP

Related Classes of eu.stratosphere.runtime.io.serialization.DataInputDeserializer

Copyright © 2018 www.massapicom. 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.