Examples of FakeSchema


Examples of org.apache.drill.jdbc.DrillHandler.FakeSchema

   * Creates a DrillEnumerable from a plan represented as a string. Each record returned is a {@link JsonNode}.
   */
  public static <E> EnumerableDrillFullEngine<E> of(String plan, final List<String> fieldNames, Class<E> clazz,
      DataContext context) {
    DrillConfig config = DrillConfig.create();
    FakeSchema s = (FakeSchema) context.getSubSchema("--FAKE--");
    return new EnumerableDrillFullEngine<>(config, plan, clazz, fieldNames, s == null ? null : s.getClient());
  }
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.