-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from jiayuasu/master
Push GeoSpark 0.4.0
- Loading branch information
Showing
94 changed files
with
15,979 additions
and
9,787 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ | |
/.settings/ | ||
/.classpath | ||
/.project | ||
/dependency-reduced-pom.xml | ||
/dependency-reduced-pom.xml | ||
/bin/ | ||
/doc/ |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ os: | |
- linux | ||
|
||
language: java | ||
sudo: true | ||
sudo: false | ||
git: | ||
submodules: false | ||
|
||
|
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
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 @@ | ||
*.DS_Store |
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 @@ | ||
*.DS_Store |
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
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
57 changes: 57 additions & 0 deletions
57
src/main/java/org/datasyslab/geospark/formatMapper/FormatMapper.java
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,57 @@ | ||
/** | ||
* FILE: FormatMapper.java | ||
* PATH: org.datasyslab.geospark.formatMapper.FormatMapper.java | ||
* Copyright (c) 2017 Arizona State University Data Systems Lab | ||
* All right reserved. | ||
*/ | ||
package org.datasyslab.geospark.formatMapper; | ||
|
||
import java.io.Serializable; | ||
|
||
import org.datasyslab.geospark.enums.FileDataSplitter; | ||
|
||
// TODO: Auto-generated Javadoc | ||
/** | ||
* The Class FormatMapper. | ||
*/ | ||
public abstract class FormatMapper implements Serializable{ | ||
|
||
|
||
/** The start offset. */ | ||
Integer startOffset = 0; | ||
|
||
/** The end offset. */ | ||
Integer endOffset = -1; /* If the initial value is negative, GeoSpark will consider each field as a spatial attribute if the target object is LineString or Polygon. */ | ||
|
||
/** The splitter. */ | ||
FileDataSplitter splitter = FileDataSplitter.CSV; | ||
|
||
/** The carry input data. */ | ||
boolean carryInputData = false; | ||
|
||
/** | ||
* Instantiates a new format mapper. | ||
* | ||
* @param startOffset the start offset | ||
* @param endOffset the end offset | ||
* @param Splitter the splitter | ||
* @param carryInputData the carry input data | ||
*/ | ||
public FormatMapper(Integer startOffset, Integer endOffset, FileDataSplitter Splitter, boolean carryInputData) { | ||
this.startOffset = startOffset; | ||
this.endOffset = endOffset; | ||
this.splitter = Splitter; | ||
this.carryInputData = carryInputData; | ||
} | ||
|
||
/** | ||
* Instantiates a new format mapper. | ||
* | ||
* @param Splitter the splitter | ||
* @param carryInputData the carry input data | ||
*/ | ||
public FormatMapper(FileDataSplitter Splitter, boolean carryInputData) { | ||
this.splitter = Splitter; | ||
this.carryInputData = carryInputData; | ||
} | ||
} |
Oops, something went wrong.