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 PgxCsvFrameReader
csv()
returns a PgxCsvFrameReaderPgxFrame
csv(java.lang.String... uris)
loads the csv PgxFrame synchronouslyPgxFuture<PgxFrame>
csvAsync(java.lang.String... uris)
triggers the async loading of the csv PgxFramePgxDbFrameReader
db()
returns a PgxDbFrameReaderPgxFrameReader
format(java.lang.String format)
returns a PgxFrameReader for the type format specifiedPgxFuture<PgxFrame>
loadAsync(java.lang.String... uris)
triggers the async loading of the PgxFramePgxGenericFrameReader
name(java.lang.String frameName)
sets the name of the stored framePgxPgbFrameReader
pgb()
returns a PgxPgbFrameReaderPgxFrame
pgb(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:
name
in 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.InterruptedException
java.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.InterruptedException
java.util.concurrent.ExecutionException
-
loadAsync
public PgxFuture<PgxFrame> loadAsync(java.lang.String... uris)
triggers the async loading of the PgxFrame- Specified by:
loadAsync
in classPgxFrameReader<PgxGenericFrameReader>
- Parameters:
uris
- array denoting the uris- Returns:
- the future for the result of the operation
-
-