File tree Expand file tree Collapse file tree
src/main/java/tech/ides/external/datasource/excel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171 <artifactId >scalatra-swagger_${scala.binary.version}</artifactId >
7272 <version >${scalatra.version} </version >
7373 </dependency >
74+
75+ <dependency >
76+ <groupId >tech.ides</groupId >
77+ <artifactId >ds-spark-excel-${spark.big.version}_${scala.binary.version}</artifactId >
78+ <version >${project.version} </version >
79+ </dependency >
7480 </dependencies >
7581
7682
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5+ <parent >
6+ <artifactId >DataLinked</artifactId >
7+ <groupId >tech.ides</groupId >
8+ <version >1.0.0</version >
9+ <relativePath >../../pom.xml</relativePath >
10+ </parent >
11+ <modelVersion >4.0.0</modelVersion >
12+
13+ <artifactId >ds-spark-excel-${spark.big.version} _${scala.binary.version} </artifactId >
14+
15+ <dependencies >
16+ <dependency >
17+ <groupId >tech.ides</groupId >
18+ <artifactId >ides-core-${spark.big.version}_${scala.binary.version}</artifactId >
19+ <version >${project.version} </version >
20+ <scope >provided</scope >
21+ </dependency >
22+ <dependency >
23+ <groupId >org.apache.spark</groupId >
24+ <artifactId >spark-sql_${scala.binary.version}</artifactId >
25+ <version >${spark.version} </version >
26+ <scope >provided</scope >
27+ </dependency >
28+ <dependency >
29+ <groupId >com.crealytics</groupId >
30+ <artifactId >spark-excel_${scala.binary.version}</artifactId >
31+ <version >0.13.5</version >
32+ </dependency >
33+ </dependencies >
34+
35+ </project >
Original file line number Diff line number Diff line change 1+ package tech .ides .external .datasource .excel
2+
3+ import tech .ides .datasource .{BaseDataSource , BaseFileDataSource , DataSource }
4+ import tech .ides .datasource .DataSource .Method ._
5+
6+ /**
7+ *
8+ * Created by songgr on 2020/10/25.
9+ */
10+
11+ @ DataSource (
12+ types = Array (SOURCE , SINK ),
13+ name = " excel" ,
14+ sinceVersion = " 1.0.0"
15+ )
16+ class ExcelDataSource extends BaseFileDataSource {
17+
18+ override def fullFormat : String = " com.crealytics.spark.excel"
19+
20+ override def shortFormat : String = " excel"
21+ }
Original file line number Diff line number Diff line change 3535 <module >dsl</module >
3636 <module >engine</module >
3737 <module >repl</module >
38+ <module >external/ds-spark-excel</module >
3839 </modules >
3940
4041
You can’t perform that action at this time.
0 commit comments