Class SparkResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.spark.it.SparkResource
-
@Path("/spark") @ApplicationScoped public class SparkResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.CamelContextcontext(package private) StringsparkDataFrameUri(package private) StringsparkHiveUri(package private) StringsparkUri(package private) org.apache.camel.ProducerTemplatetemplate
-
Constructor Summary
Constructors Constructor Description SparkResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) org.apache.camel.component.spark.RddCallbackcountLinesTransformation()LongdataframeCount(String model)(package private) org.apache.spark.sql.hive.HiveContexthiveContext()LonghiveCount()(package private) voidinit()(package private) org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>jsonCars()LongrddCount()(package private) org.apache.spark.api.java.JavaRDD<String>testFileRdd()
-
-
-
Method Detail
-
init
@PostConstruct void init()
-
testFileRdd
@Produces @Named org.apache.spark.api.java.JavaRDD<String> testFileRdd()
-
jsonCars
@Produces @Named org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> jsonCars()
-
countLinesTransformation
@Produces @Named org.apache.camel.component.spark.RddCallback countLinesTransformation()
-
hiveContext
@Produces @Named org.apache.spark.sql.hive.HiveContext hiveContext()
-
rddCount
@Path("/rdd/count") @GET @Produces("text/plain") public Long rddCount() throws Exception- Throws:
Exception
-
dataframeCount
@Path("/dataframe/{model}/count") @GET @Produces("text/plain") public Long dataframeCount(@PathParam("model") String model) throws Exception- Throws:
Exception
-
-