Package eu.stratosphere.api.java.functions

Examples of eu.stratosphere.api.java.functions.InvalidTypesException


  static final <T extends Writable> TypeInformation<T> getWritableTypeInfo(Class<T> typeClass) {
    if (Writable.class.isAssignableFrom(typeClass) && !typeClass.equals(Writable.class)) {
      return new WritableTypeInfo<T>(typeClass);
    }
    else {
      throw new InvalidTypesException("The given class is no subclass of " + Writable.class.getName());
    }
  }
View Full Code Here

TOP

Related Classes of eu.stratosphere.api.java.functions.InvalidTypesException

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.