public class Arrow
extends java.lang.Object
| Constructor and Description |
|---|
Arrow()
Constructor.
|
Arrow(int batch)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
allocate(long limit)
Creates the root allocator.
|
smile.data.DataFrame |
read(java.io.InputStream input,
int limit)
Reads a limited number of records from an arrow file.
|
smile.data.DataFrame |
read(java.nio.file.Path path)
Reads an arrow file.
|
smile.data.DataFrame |
read(java.nio.file.Path path,
int limit)
Reads an arrow file.
|
smile.data.DataFrame |
read(java.lang.String path)
Reads a limited number of records from an arrow file.
|
smile.data.DataFrame |
read(java.lang.String path,
int limit)
Reads a limited number of records from an arrow file.
|
void |
write(smile.data.DataFrame df,
java.nio.file.Path path)
Writes the DataFrame to a file.
|
public Arrow()
public Arrow(int batch)
batch - the number of records in a record batch.public static void allocate(long limit)
limit - memory allocation limit in bytes.public smile.data.DataFrame read(java.nio.file.Path path)
throws java.io.IOException
path - an Apache Arrow file path.java.io.IOExceptionpublic smile.data.DataFrame read(java.nio.file.Path path,
int limit)
throws java.io.IOException
path - an Apache Arrow file path.java.io.IOExceptionpublic smile.data.DataFrame read(java.lang.String path)
throws java.io.IOException,
java.net.URISyntaxException
path - an Apache Arrow file path or URI.java.io.IOExceptionjava.net.URISyntaxExceptionpublic smile.data.DataFrame read(java.lang.String path,
int limit)
throws java.io.IOException,
java.net.URISyntaxException
path - an Apache Arrow file path or URI.limit - reads a limited number of records.java.io.IOExceptionjava.net.URISyntaxExceptionpublic smile.data.DataFrame read(java.io.InputStream input,
int limit)
throws java.io.IOException
input - an Apache Arrow file input stream.limit - reads a limited number of records.java.io.IOExceptionpublic void write(smile.data.DataFrame df,
java.nio.file.Path path)
throws java.io.IOException
java.io.IOException