Class BQQueryResultsPipe<T>
- java.lang.Object
-
- org.pipecraft.pipes.source.google_bq.BQQueryResultsPipe<T>
-
- Type Parameters:
T- The type of each result record from BQ
- All Implemented Interfaces:
Closeable,AutoCloseable,org.pipecraft.pipes.BasePipe,org.pipecraft.pipes.sync.Pipe<T>
public class BQQueryResultsPipe<T> extends Object implements org.pipecraft.pipes.sync.Pipe<T>
A source pipe that runs a query onBigQueryConnectorand iterates over the results- Author:
- Eyal Schneider
-
-
Constructor Summary
Constructors Constructor Description BQQueryResultsPipe(BigQueryConnector bq, BQQuery<T,?> query, QueryExecutionConfig queryConfig)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()floatgetProgress()Tnext()Tpeek()voidprepareNext()voidstart()
-
-
-
Constructor Detail
-
BQQueryResultsPipe
public BQQueryResultsPipe(BigQueryConnector bq, BQQuery<T,?> query, QueryExecutionConfig queryConfig)
Constructor- Parameters:
bq- The BQ connectorquery- The query to executequeryConfig- Query execution configuration, or null for the default one
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
next
public T next() throws org.pipecraft.pipes.exceptions.PipeException, InterruptedException
- Specified by:
nextin interfaceorg.pipecraft.pipes.sync.Pipe<T>- Throws:
org.pipecraft.pipes.exceptions.PipeExceptionInterruptedException
-
start
public void start() throws org.pipecraft.pipes.exceptions.PipeException, InterruptedException- Specified by:
startin interfaceorg.pipecraft.pipes.BasePipe- Throws:
org.pipecraft.pipes.exceptions.PipeExceptionInterruptedException
-
prepareNext
public void prepareNext() throws BQPipeException- Throws:
BQPipeException
-
getProgress
public float getProgress()
- Specified by:
getProgressin interfaceorg.pipecraft.pipes.BasePipe
-
-