You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/11/15 23:51:50 UTC

[GitHub] asfgit closed pull request #1533: DRILL-6843: Update SchemaBuilder comment to match implementation

asfgit closed pull request #1533: DRILL-6843: Update SchemaBuilder comment to match implementation
URL: https://github.com/apache/drill/pull/1533
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/exec/java-exec/src/test/java/org/apache/drill/test/rowSet/schema/SchemaBuilder.java b/exec/java-exec/src/test/java/org/apache/drill/test/rowSet/schema/SchemaBuilder.java
index 2cc82a5616c..51193eb2355 100644
--- a/exec/java-exec/src/test/java/org/apache/drill/test/rowSet/schema/SchemaBuilder.java
+++ b/exec/java-exec/src/test/java/org/apache/drill/test/rowSet/schema/SchemaBuilder.java
@@ -36,32 +36,32 @@
  * i: BIGINT[], j: VARCHAR[][][])</tt>
  * <p>
  * Code:<pre><code>
- *     BatchSchema batchSchema = new SchemaBuilder()
+ *     TupleMetadata schema = new SchemaBuilder()
  *        .add("c", MinorType.INT)
  *        .addMap("a")
  *          .addNullable("b", MinorType.VARCHAR)
  *          .add("d", MinorType.INT)
  *          .addMap("e") // or .addMapArray("e")
  *            .add("f", MinorType.VARCHAR)
- *            .buildMap()
+ *            .resumeMap()
  *          .add("g", MinorType.INT)
- *          .buildMap()
+ *          .resumeSchema()
  *        .addUnion("h") // or .addList("h")
  *          .addType(MinorType.INT)
  *          .addMap()
  *            .add("h1", MinorType.INT)
- *            .buildNested()
+ *            .resumeUnion()
  *          .addList()
  *            .addType(MinorType.BIGINT)
- *            .buildNested()
- *          .build()
+ *            .resumeUnion()
+ *          .resumeSchema()
  *        .addArray("i", MinorType.BIGINT)
  *        .addRepeatedList("j")
  *          .addDimension()
  *            .addArray(MinorType.VARCHAR)
- *            .endDimension()
- *         .build()
- *        .build();
+ *            .resumeList()
+ *         .resumeSchema()
+ *        .buildSchema();
  * </code</pre>
  */
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services