Package org.pipecraft.infra.bq
Interface BQResultlessQuery
-
- All Known Subinterfaces:
BQDMLQuery
- All Known Implementing Classes:
CreateTableDMLQuery
public interface BQResultlessQuery extends BQQuery<Void,Void>
A base interface for BQ queries with no returned result, or with a returned result that can be dropped. Executed viaBigQueryConnector- Author:
- Eyal Schneider
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Voidaggregate(Iterator<Void> it)default VoidmapRow(com.google.cloud.bigquery.FieldValueList row)-
Methods inherited from interface org.pipecraft.infra.bq.BQQuery
getQueryParameters, getSQL, isLegacySQL, mapAndAggregate
-
-
-
-
Method Detail
-
mapRow
default Void mapRow(com.google.cloud.bigquery.FieldValueList row)
-
aggregate
default Void aggregate(Iterator<Void> it) throws BQException
- Specified by:
aggregatein interfaceBQQuery<Void,Void>- Parameters:
it- An iterator over transformed rows (i.e. rows processed with transformRow(..)). Memory efficient - results are streamed during the iteration.- Returns:
- The final result object, obtained by aggregating all result rows
- Throws:
BQException- In case that the results can't be aggregated
-
-