Package org.apache.drill.exec.ref.exceptions

Examples of org.apache.drill.exec.ref.exceptions.MajorException


    return engines.toArray(new Class<?>[engines.size()]);
  }

  @SuppressWarnings("unchecked")
  protected <T extends ReadEntry> T getReadEntry(Class<T> c, ReadEntry entry){
    if(!c.isAssignableFrom(entry.getClass())) throw new MajorException(String.format("Expected entry type was invalid.  Expected entry of type %s but received type of %s.", c.getCanonicalName(), entry.getClass().getCanonicalName()));
    return (T) entry;
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.ref.exceptions.MajorException

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.