|
25 | 25 |
|
26 | 26 | public final class Native extends NativeBase { |
27 | 27 |
|
28 | | - ///////////// Arrow Native Parquet Reader APIs |
29 | | - |
30 | 28 | /** |
31 | 29 | * Verify that object store options are valid. An exception will be thrown if the provided options |
32 | 30 | * are not valid. |
33 | 31 | */ |
34 | 32 | public static native void validateObjectStoreConfig( |
35 | 33 | String filePath, Map<String, String> objectStoreOptions); |
36 | 34 |
|
37 | | - /** |
38 | | - * Initialize a record batch reader for a PartitionedFile |
39 | | - * |
40 | | - * @param filePath |
41 | | - * @param starts |
42 | | - * @param lengths |
43 | | - * @return a handle to the record batch reader, used in subsequent calls. |
44 | | - */ |
45 | | - public static native long initRecordBatchReader( |
46 | | - String filePath, |
47 | | - long fileSize, |
48 | | - long[] starts, |
49 | | - long[] lengths, |
50 | | - byte[] filter, |
51 | | - byte[] requiredSchema, |
52 | | - byte[] dataSchema, |
53 | | - String sessionTimezone, |
54 | | - int batchSize, |
55 | | - boolean caseSensitive, |
56 | | - boolean returnNullStructIfAllFieldsMissing, |
57 | | - Map<String, String> objectStoreOptions, |
58 | | - CometFileKeyUnwrapper keyUnwrapper, |
59 | | - Object metricsNode); |
60 | | - |
61 | | - /** |
62 | | - * Read the next batch of data into memory on native side |
63 | | - * |
64 | | - * @param handle |
65 | | - * @return the number of rows read |
66 | | - */ |
67 | | - public static native int readNextRecordBatch(long handle); |
68 | | - |
69 | | - /** |
70 | | - * Load the column corresponding to columnNum in the currently loaded record batch into JVM |
71 | | - * |
72 | | - * @param handle |
73 | | - * @param columnNum |
74 | | - * @param arrayAddr |
75 | | - * @param schemaAddr |
76 | | - */ |
77 | | - public static native void currentColumnBatch( |
78 | | - long handle, int columnNum, long arrayAddr, long schemaAddr); |
79 | | - |
80 | | - /** |
81 | | - * Close the record batch reader. Free the resources |
82 | | - * |
83 | | - * @param handle |
84 | | - */ |
85 | | - public static native void closeRecordBatchReader(long handle); |
86 | 35 | } |
0 commit comments