You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/12 16:35:31 UTC

[GitHub] [arrow-cookbook] davisusanibar commented on a diff in pull request #183: ARROW-16170: [Java][Docs] Synch java code tutorial with java cookbook

davisusanibar commented on code in PR #183:
URL: https://github.com/apache/arrow-cookbook/pull/183#discussion_r848643374


##########
java/source/data.rst:
##########
@@ -15,7 +15,7 @@ Compare Vectors for Field Equality
     import org.apache.arrow.vector.compare.TypeEqualsVisitor;
     import org.apache.arrow.memory.RootAllocator;
 
-    RootAllocator rootAllocator = new RootAllocator(Long.MAX_VALUE);
+    RootAllocator rootAllocator = new RootAllocator();

Review Comment:
   Changed



##########
java/source/io.rst:
##########
@@ -33,30 +34,34 @@ Write - Out to File
     import org.apache.arrow.vector.VectorSchemaRoot;
     import static java.util.Arrays.asList;
     import org.apache.arrow.vector.ipc.ArrowFileWriter;
-
     import java.io.File;
     import java.io.FileOutputStream;
     import java.io.IOException;
 
-    try (RootAllocator rootAllocator = new RootAllocator(Long.MAX_VALUE)) {
+    try (
+        BufferAllocator allocator = new RootAllocator()

Review Comment:
   Deleted



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org