Package org.apache.drill.common.exceptions

Examples of org.apache.drill.common.exceptions.LogicalPlanParsingException


  public <T> T getWith(DrillConfig config, Class<T> c){
    try {
      //logger.debug("Read tree {}", root);
      return config.getMapper().treeToValue(root, c);
    } catch (JsonProcessingException e) {
      throw new LogicalPlanParsingException(String.format("Failure while trying to convert late bound json options to type of %s. Reference was originally located at line %d, column %d.", c.getCanonicalName(), location.getLineNr(), location.getColumnNr()), e);
    }
  }
View Full Code Here


      }

      //logger.debug("Read tree {}", root);
      return config.getMapper().treeToValue(root, c);
    } catch (JsonProcessingException e) {
      throw new LogicalPlanParsingException(String.format("Failure while trying to convert late bound json options to type of %s. Reference was originally located at line %d, column %d.", c.getCanonicalName(), location.getLineNr(), location.getColumnNr()), e);
    }
  }
View Full Code Here

  public <T> T getWith(Class<T> c){
    try {
      return getMapper().treeToValue(objectNode, c);
    } catch (JsonProcessingException e) {
      throw new LogicalPlanParsingException(String.format("Failure while trying to convert late bound json type to type of %s.", c.getCanonicalName()), e);
    }
  }
View Full Code Here

      }
     
      //logger.debug("Read tree {}", root);
      return config.getMapper().treeToValue(root, c);
    } catch (JsonProcessingException e) {
      throw new LogicalPlanParsingException(String.format("Failure while trying to convert late bound json options to type of %s. Reference was originally located at line %d, column %d.", c.getCanonicalName(), location.getLineNr(), location.getColumnNr()), e);
    }
  }
View Full Code Here

 
  public <T> T getWith(Class<T> c){
    try {
      return getMapper().treeToValue(objectNode, c);
    } catch (JsonProcessingException e) {
      throw new LogicalPlanParsingException(String.format("Failure while trying to convert late bound json type to type of %s.", c.getCanonicalName()), e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.common.exceptions.LogicalPlanParsingException

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.