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
    long getPointer()  
    Runtime getRuntime()
    Get the runtime associated with this context
    java.util.concurrent.CompletableFuture<java.lang.Void> registerCsv​(java.lang.String name, java.nio.file.Path path)
    Registering a csv file with the context
    java.util.concurrent.CompletableFuture<java.lang.Void> registerParquet​(java.lang.String name, java.nio.file.Path path)
    Registering a parquet file with the context
    java.util.concurrent.CompletableFuture<DataFrame> sql​(java.lang.String sql)
    Obtain the DataFrame by running the sql against the datafusion library

    Methods inherited from interface java.lang.AutoCloseable

    close
  • Method Details

    • sql

      java.util.concurrent.CompletableFuture<DataFrame> sql​(java.lang.String sql)
      Obtain the DataFrame by running the sql against 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()