Class GoogleBigQueryProducer
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultProducer
-
- org.apache.camel.component.google.bigquery.GoogleBigQueryProducer
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.EndpointAware
,org.apache.camel.IsSingleton
,org.apache.camel.Processor
,org.apache.camel.Producer
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
public class GoogleBigQueryProducer extends org.apache.camel.support.DefaultProducer
Generic BigQuery Producer
-
-
Constructor Summary
Constructors Constructor Description GoogleBigQueryProducer(com.google.api.services.bigquery.Bigquery bigquery, GoogleBigQueryEndpoint endpoint, GoogleBigQueryConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GoogleBigQueryEndpoint
getEndpoint()
void
process(org.apache.camel.Exchange exchange)
Process the exchange The incoming exchange can be a grouped exchange in which case all the exchanges will be combined.-
Methods inherited from class org.apache.camel.support.DefaultProducer
createExchange, doStart, doStop, isSingleton, toString
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
GoogleBigQueryProducer
public GoogleBigQueryProducer(com.google.api.services.bigquery.Bigquery bigquery, GoogleBigQueryEndpoint endpoint, GoogleBigQueryConfiguration configuration)
-
-
Method Detail
-
process
public void process(org.apache.camel.Exchange exchange) throws Exception
Process the exchange The incoming exchange can be a grouped exchange in which case all the exchanges will be combined. The incoming can be- A map where all map keys will map to field records. One map object maps to one bigquery row
- A list of maps. Each entry in the list will map to one bigquery row
- Throws:
Exception
-
getEndpoint
public GoogleBigQueryEndpoint getEndpoint()
- Specified by:
getEndpoint
in interfaceorg.apache.camel.EndpointAware
- Overrides:
getEndpoint
in classorg.apache.camel.support.DefaultProducer
-
-