forked from bebee4java/ides
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f59ba2b
commit e85794c
Showing
4 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>DataLinked</artifactId> | ||
<groupId>tech.ides</groupId> | ||
<version>1.0.0</version> | ||
<relativePath>../../pom.xml</relativePath> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>ds-spark-excel-${spark.big.version}_${scala.binary.version}</artifactId> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>tech.ides</groupId> | ||
<artifactId>ides-core-${spark.big.version}_${scala.binary.version}</artifactId> | ||
<version>${project.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.spark</groupId> | ||
<artifactId>spark-sql_${scala.binary.version}</artifactId> | ||
<version>${spark.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.crealytics</groupId> | ||
<artifactId>spark-excel_${scala.binary.version}</artifactId> | ||
<version>0.13.5</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
21 changes: 21 additions & 0 deletions
21
...al/ds-spark-excel/src/main/java/tech/ides/external/datasource/excel/ExcelDataSource.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package tech.ides.external.datasource.excel | ||
|
||
import tech.ides.datasource.{BaseDataSource, BaseFileDataSource, DataSource} | ||
import tech.ides.datasource.DataSource.Method._ | ||
|
||
/** | ||
* | ||
* Created by songgr on 2020/10/25. | ||
*/ | ||
|
||
@DataSource( | ||
types = Array(SOURCE, SINK), | ||
name = "excel", | ||
sinceVersion = "1.0.0" | ||
) | ||
class ExcelDataSource extends BaseFileDataSource { | ||
|
||
override def fullFormat: String = "com.crealytics.spark.excel" | ||
|
||
override def shortFormat: String = "excel" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters