Repository navigation
ARROW-15576: [Java][Doc] Document VectorSchemaRoots for 2D data - #12634
davisusanibar wants to merge 6 commits into
Conversation
|
|
| ======= | ||
|
|
||
| A `Schema`_ describes the overall structure of a two-dimensional dataset such | ||
| as a table. It holds a sequence of fields together with some optional |
There was a problem hiding this comment.
Tables don't exist in Java. This should talk about VectorSchemaRoot.
| metadata.put("K2", "V2"); | ||
| Field a = new Field("A", FieldType.nullable(new ArrowType.Int(32, true)), null); | ||
| Field b = new Field("B", FieldType.nullable(new ArrowType.Utf8()), null); | ||
| Schema schema = new Schema(java.util.Arrays.asList(a, b), metadata); |
| Tables | ||
| ====== | ||
|
|
||
| There is not a object or implementation of Table on java side. More close definition | ||
| like a table could be VectorSchemaRoot (see the next section). |
There was a problem hiding this comment.
IMO we don't need a whole section for this. In the next section we can say something like "VectorSchemaRoot is somewhat analogous to tables and record batches in the other Arrow implementations in that they all are 2D datasets, but the usage is different."
There was a problem hiding this comment.
Deleted and added as a note on VectorSchemRoot
|
|
||
| .. _`Field`: https://arrow.apache.org/docs/java/reference/org/apache/arrow/vector/types/pojo/Field.html | ||
| .. _`Schema`: https://arrow.apache.org/docs/java/reference/org/apache/arrow/vector/types/pojo/Schema.html | ||
| .. _`Flight`: https://github.com/apache/arrow/tree/master/java/flight/flight-core/src/main/java/org/apache/arrow/flight |
Co-authored-by: David Li <[email protected]>
lidavidm
left a comment
There was a problem hiding this comment.
Looks good to me. Is this ready for review?
Yes, it is ready, I forgot to change the title of the PR. Thanks in advance. |
|
Can you rebase to kick off the pipelines? |
Added |
| Fields | ||
| ====== | ||
|
|
||
| Fields are used to denote the particular columns of a table. |
There was a problem hiding this comment.
Wait, sorry I missed this. We should not talk about tables in Java. Since we haven't introduced VectorSchemaRoot yet, we can talk about "tabular data" abstractly.
| VectorSchemaRoot is somewhat analogous to tables and record batches in the other Arrow implementations | ||
| in that they all are 2D datasets, but the usage is different. | ||
|
|
||
| A :class:`VectorSchemaRoot` is a container that can hold batches, batches flow through :class:`VectorSchemaRoot` |
There was a problem hiding this comment.
Not so sure about this since we haven't introduced batches yet at this point…but we can revisit this later.
Co-authored-by: Alessandro Molina <[email protected]>
|
Benchmark runs are scheduled for baseline = 495eb16 and contender = 68164c8. 68164c8 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Update current VectorSchemaRoot documentation to be more generic, change title to tabular data. Adding definitions of: