Package oracle.pgx.api.frames
Class PgxGenericFrameReader
- java.lang.Object
-
- oracle.pgx.api.frames.PgxFrameReader<PgxGenericFrameReader>
-
- oracle.pgx.api.frames.PgxGenericFrameReader
-
public class PgxGenericFrameReader extends PgxFrameReader<PgxGenericFrameReader>
-
-
Constructor Summary
Constructors Constructor Description PgxGenericFrameReader(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgxCsvFrameReadercsv()returns a PgxCsvFrameReaderPgxFramecsv(java.lang.String... uris)loads the csv PgxFrame synchronouslyPgxFuture<PgxFrame>csvAsync(java.lang.String... uris)triggers the async loading of the csv PgxFramePgxDbFrameReaderdb()returns a PgxDbFrameReaderPgxFrameReaderformat(java.lang.String format)returns a PgxFrameReader for the type format specifiedPgxFuture<PgxFrame>loadAsync(java.lang.String... uris)triggers the async loading of the PgxFramePgxGenericFrameReadername(java.lang.String frameName)sets the name of the stored framePgxPgbFrameReaderpgb()returns a PgxPgbFrameReaderPgxFramepgb(java.lang.String... uris)loads the csv PgxFrame synchronouslyPgxFuture<PgxFrame>pgbAsync(java.lang.String... uris)triggers the async loading of the pgb PgxFrame-
Methods inherited from class oracle.pgx.api.frames.PgxFrameReader
autodetectColumns, columns, load
-
-
-
-
Constructor Detail
-
PgxGenericFrameReader
public PgxGenericFrameReader(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
-
-
Method Detail
-
name
public PgxGenericFrameReader name(java.lang.String frameName)
sets the name of the stored frame- Specified by:
namein classPgxFrameReader<PgxGenericFrameReader>- Parameters:
frameName- string used as name- Returns:
- this loader
-
format
public PgxFrameReader format(java.lang.String format)
returns a PgxFrameReader for the type format specified- Parameters:
format- string denoting format to be loaded- Returns:
- a loader for the format
-
db
public PgxDbFrameReader db()
returns a PgxDbFrameReader- Returns:
- a loader for loading from database
-
csv
public PgxCsvFrameReader csv()
returns a PgxCsvFrameReader- Returns:
- a loader for loading from CSV files
-
csvAsync
public PgxFuture<PgxFrame> csvAsync(java.lang.String... uris)
triggers the async loading of the csv PgxFrame- Parameters:
uris- array denoting the uris- Returns:
- the future for the result of the operation
-
csv
public PgxFrame csv(java.lang.String... uris) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
loads the csv PgxFrame synchronously- Parameters:
uris- array denoting the uris- Returns:
- the loaded frame
- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionException
-
pgb
public PgxPgbFrameReader pgb()
returns a PgxPgbFrameReader- Returns:
- a loader for loading from PGB files
-
pgbAsync
public PgxFuture<PgxFrame> pgbAsync(java.lang.String... uris)
triggers the async loading of the pgb PgxFrame- Parameters:
uris- array denoting the uris- Returns:
- the future for the result of the operation
-
pgb
public PgxFrame pgb(java.lang.String... uris) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
loads the csv PgxFrame synchronously- Parameters:
uris- array denoting the uris- Returns:
- the loaded frame
- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionException
-
loadAsync
public PgxFuture<PgxFrame> loadAsync(java.lang.String... uris)
triggers the async loading of the PgxFrame- Specified by:
loadAsyncin classPgxFrameReader<PgxGenericFrameReader>- Parameters:
uris- array denoting the uris- Returns:
- the future for the result of the operation
-
-