Package org.apache.arrow.datafusion
Interface SessionContext
- All Superinterfaces:
java.lang.AutoCloseable
public interface SessionContext
extends java.lang.AutoCloseable
A session context holds resources and is the entrance for obtaining
DataFrame-
Method Summary
Modifier and Type Method Description longgetPointer()RuntimegetRuntime()Get the runtime associated with this contextjava.util.concurrent.CompletableFuture<java.lang.Void>registerCsv(java.lang.String name, java.nio.file.Path path)Registering a csv file with the contextjava.util.concurrent.CompletableFuture<java.lang.Void>registerParquet(java.lang.String name, java.nio.file.Path path)Registering a parquet file with the contextjava.util.concurrent.CompletableFuture<DataFrame>sql(java.lang.String sql)Obtain theDataFrameby running thesqlagainst the datafusion libraryMethods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
sql
Obtain theDataFrameby running thesqlagainst the datafusion library -
registerCsv
java.util.concurrent.CompletableFuture<java.lang.Void> registerCsv(java.lang.String name, java.nio.file.Path path)Registering a csv file with the context -
registerParquet
java.util.concurrent.CompletableFuture<java.lang.Void> registerParquet(java.lang.String name, java.nio.file.Path path)Registering a parquet file with the context -
getRuntime
Runtime getRuntime()Get the runtime associated with this context -
getPointer
long getPointer()
-