Skip to content

Commit 3df60d6

Browse files
authored
Rename coordinates in pom. (#16)
* Rename coordinates in pom. Set provided dependencies. * Add developers to pom. Update notice. * Remove author for javadoc.
1 parent c6bb662 commit 3df60d6

File tree

7 files changed

+44
-13
lines changed

7 files changed

+44
-13
lines changed

NOTICE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ Copyright (2022) Databricks, Inc.
44

55

66
This Software includes software developed at Databricks (https://www.databricks.com/) and its use is subject to the included LICENSE file.
7+
8+
--------------------------------------------------------------------------------
9+
10+
This Software includes adapted class from https://github.com/benwatson528/intellij-avro-parquet-plugin.

pom.xml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,31 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>io.delta.sharing.java</groupId>
8-
<artifactId>DeltaSharingJavaConnector</artifactId>
7+
<groupId>com.databricks.labs</groupId>
8+
<artifactId>delta-sharing-java-connector</artifactId>
99
<version>0.1.0-SNAPSHOT</version>
1010

11+
<developers>
12+
<developer>
13+
<id>milos-colic</id>
14+
<name>Milos Colic</name>
15+
<email>milos.colic@databricks.com</email>
16+
<organization>Databricks</organization>
17+
<roles>
18+
<role>Solutions Architect</role>
19+
</roles>
20+
</developer>
21+
<developer>
22+
<id>vuong-nguyen</id>
23+
<name>Vuong Nguyen</name>
24+
<email>vuong.nguyen@databricks.com</email>
25+
<organization>Databricks</organization>
26+
<roles>
27+
<role>Solutions Architect</role>
28+
</roles>
29+
</developer>
30+
</developers>
31+
1132
<properties>
1233
<maven.compiler.source>8</maven.compiler.source>
1334
<maven.compiler.target>8</maven.compiler.target>
@@ -23,6 +44,7 @@
2344
<groupId>com.fasterxml.jackson.core</groupId>
2445
<artifactId>jackson-databind</artifactId>
2546
<version>2.12.3</version>
47+
<scope>provided</scope>
2648
</dependency>
2749
<dependency>
2850
<groupId>org.apache.parquet</groupId>
@@ -33,11 +55,13 @@
3355
<groupId>org.apache.parquet</groupId>
3456
<artifactId>parquet-hadoop</artifactId>
3557
<version>1.12.3</version>
58+
<scope>provided</scope>
3659
</dependency>
3760
<dependency>
3861
<groupId>org.apache.hadoop</groupId>
3962
<artifactId>hadoop-core</artifactId>
4063
<version>1.2.1</version>
64+
<scope>provided</scope>
4165
<exclusions>
4266
<exclusion>
4367
<groupId>commons-httpclient</groupId>
@@ -49,6 +73,7 @@
4973
<groupId>commons-httpclient</groupId>
5074
<artifactId>commons-httpclient</artifactId>
5175
<version>3.1</version>
76+
<scope>provided</scope>
5277
<exclusions>
5378
<exclusion>
5479
<groupId>junit</groupId>
@@ -60,21 +85,25 @@
6085
<groupId>org.apache.httpcomponents</groupId>
6186
<artifactId>httpclient</artifactId>
6287
<version>4.5.13</version>
88+
<scope>provided</scope>
6389
</dependency>
6490
<dependency>
6591
<groupId>commons-io</groupId>
6692
<artifactId>commons-io</artifactId>
6793
<version>2.11.0</version>
94+
<scope>provided</scope>
6895
</dependency>
6996
<dependency>
7097
<groupId>org.apache.commons</groupId>
7198
<artifactId>commons-lang3</artifactId>
7299
<version>3.12.0</version>
100+
<scope>provided</scope>
73101
</dependency>
74102
<dependency>
75103
<groupId>org.apache.spark</groupId>
76104
<artifactId>spark-core_2.12</artifactId>
77105
<version>3.2.1</version>
106+
<scope>provided</scope>
78107
<exclusions>
79108
<exclusion>
80109
<groupId>com.fasterxml.jackson.core</groupId>

src/main/java/com/databricks/labs/delta/sharing/java/DeltaSharing.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import java.nio.file.OpenOption;
1818
import java.nio.file.Path;
1919
import java.nio.file.Paths;
20+
import java.nio.file.attribute.FileAttribute;
2021
import java.util.HashMap;
2122
import java.util.LinkedList;
2223
import java.util.List;
@@ -43,15 +44,14 @@
4344
* available local copy in the temp directory.
4445
* <p/>
4546
*
46-
* @author Milos Colic
4747
* @since 0.1.0
4848
*/
4949
public class DeltaSharing {
50-
private DeltaSharingProfileProvider profileProvider;
51-
private DeltaSharingRestClient httpClient;
52-
private Path checkpointPath;
53-
private Path tempDir;
54-
private Map<String, DeltaTableMetadata> metadataMap;
50+
private final DeltaSharingProfileProvider profileProvider;
51+
private final DeltaSharingRestClient httpClient;
52+
private final Path checkpointPath;
53+
private final Path tempDir;
54+
private final Map<String, DeltaTableMetadata> metadataMap;
5555

5656
/**
5757
* Getter for {@link DeltaSharing#profileProvider}.

src/main/java/com/databricks/labs/delta/sharing/java/adaptor/DeltaSharingJsonProvider.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* creation will fail in case of breaking the constraints.
1414
* <p/>
1515
*
16-
* @author Milos Colic
1716
* @see DeltaSharingProfileAdaptor DeltaSharingProfileAdaptor used for object
1817
* mapping when parsing JSON.
1918
* @since 0.1.0

src/main/java/com/databricks/labs/delta/sharing/java/adaptor/DeltaSharingProfileAdaptor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
* @implNote Suppress is added because of all the getters and setters are required to be explicitly
1111
* created for Jackson to parse JSONs correctly. However warnings are shown since getters
1212
* and setters are not explicitly tests.
13-
* @author Milos Colic
1413
* @since 0.1.0
1514
*/
1615
public class DeltaSharingProfileAdaptor {

src/main/java/com/databricks/labs/delta/sharing/java/format/parquet/LocalInputFile.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
import org.apache.parquet.io.SeekableInputStream;
1111

1212
/**
13-
* Parquet InputFile with a local java.nio.Path. Adapted from https://github.com/haifengl/smile This
13+
* Parquet InputFile with a local java.nio.Path. Adapted from https://github.com/benwatson528/intellij-avro-parquet-plugin/blob/master/src/main/java/uk/co/hadoopathome/intellij/viewer/fileformat/LocalInputFile.java This
1414
* class is required to instantiate {@link org.apache.parquet.avro.AvroParquetReader} instances.
15+
* @implNote https://github.com/benwatson528/intellij-avro-parquet-plugin is licenced under Apache 2.0.
1516
*/
1617
public class LocalInputFile implements InputFile {
1718
/** Local file object. */

src/main/java/com/databricks/labs/delta/sharing/java/format/parquet/TableReader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
* constitute a table.
1515
* <p/>
1616
*
17-
* @author Milos Colic
18-
* @since 1.0.0
17+
* @since 0.1.0
1918
*/
2019
public class TableReader<T> {
2120
private Queue<ParquetReader<T>> readers;

0 commit comments

Comments
 (0)