-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split apart Extract creation into an ExtractAdapter, to support Hyper…
… extracts in the future. Add Makefile for managing releases
- Loading branch information
jmorton
committed
May 29, 2018
1 parent
b92aaf8
commit 95c253e
Showing
15 changed files
with
312 additions
and
172 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
MKDIR_P = mkdir -p | ||
NAME = tableau-sdk-wrapper | ||
VERSION = 1.1 | ||
BUILD_DIR = ${NAME}-${VERSION} | ||
ARTIFACT = tableau-${VERSION}.jar | ||
ARCHIVE = ${NAME}-${VERSION}.zip | ||
TARGET = target | ||
SAMPLES = samples | ||
BIN_DIR = bin | ||
|
||
all: mkdir copy_files archive | ||
|
||
mkdir: | ||
${MKDIR_P} ${BUILD_DIR}/bin | ||
${MKDIR_P} ${BUILD_DIR}/lib | ||
${MKDIR_P} ${BUILD_DIR}/samples | ||
${MKDIR_P} ${BUILD_DIR}/tmp | ||
${MKDIR_P} ${BUILD_DIR}/logs | ||
|
||
copy_files: | ||
cp ${TARGET}/${ARTIFACT} ${BUILD_DIR}/lib | ||
cp -a ${SAMPLES}/* ${BUILD_DIR}/samples/ | ||
cp -a ${BIN_DIR}/* ${BUILD_DIR}/bin/ | ||
|
||
archive: | ||
zip -r ${ARCHIVE} ${BUILD_DIR} | ||
|
||
clean: | ||
rm -rf ${BUILD_DIR} | ||
rm -f ${ARCHIVE} |
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
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,19 @@ | ||
package net.jlmorton.tableau; | ||
|
||
import com.tableausoftware.TableauException; | ||
import com.tableausoftware.extract.Row; | ||
import com.tableausoftware.extract.TableDefinition; | ||
|
||
public interface ExtractAdapter { | ||
void openExtract() throws TableauException; | ||
|
||
void closeExtract(); | ||
|
||
void insertRow(Row row) throws TableauException; | ||
|
||
TableDefinition getTableDefinition(); | ||
|
||
default String getTableName() { | ||
return "Extract"; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package net.jlmorton.tableau; | ||
|
||
import com.tableausoftware.extract.Extract; | ||
import com.tableausoftware.TableauException; | ||
|
||
public interface ExtractWriter { | ||
Extract createExtract(); | ||
void writeExtract() throws TableauException; | ||
|
||
void closeExtract(); | ||
} |
130 changes: 0 additions & 130 deletions
130
src/main/java/net/jlmorton/tableau/ExtractWriterImpl.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.