-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.txt
More file actions
19 lines (18 loc) · 979 Bytes
/
notes.txt
File metadata and controls
19 lines (18 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
TODO: Example reader where you don't know what type of data you are getting.
Such as from an API.
https://github.com/apache/arrow/blob/master/java/vector/src/test/java/org/apache/arrow/vector/ipc/TestArrowStream.java
use listVector.getDataVector().getField().getType()
Or instance of ListVector/IntVector
For adding vector to root and then passing it somwhere else
List<Field> fields = Arrays.asList(listVector.getField());
List<FieldVector> vectors = Arrays.asList(listVector);
VectorSchemaRoot root = new VectorSchemaRoot(fields, vectors, listVector.getValueCount());
TODO: test an inner loop
writer.list().startList();
for loop ....
writer.list().integer().writeInt(j * i);
writer.list().endList(
Docs:
https://arrow.apache.org/docs/java/
https://github.com/animeshtrivedi/blog/blob/master/post/2017-12-26-arrow.md
https://github.com/apache/arrow/blob/master/java/vector/src/test/java/org/apache/arrow/vector/TestListVector.java