-
-
Notifications
You must be signed in to change notification settings - Fork 95
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 #23 from dizitart/master
Create release 2.0.0
- Loading branch information
Showing
55 changed files
with
784 additions
and
133 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ -z "${TRAVIS_TAG}" ]]; then | ||
./gradlew build run asciidoc -Dscan -PnitriteVersion=$NITRITE_VERSION | ||
./gradlew clean build run asciidoc -Dscan -PnitriteVersion=$NITRITE_VERSION --stacktrace --info | ||
else | ||
openssl aes-256-cbc -pass pass:$PGP_KEY_PASSWORD -in .ci/secring.gpg.enc -out ~/secring.gpg -d | ||
./gradlew build run asciidoc -Prelease -PnitriteVersion=$NITRITE_VERSION -Psigning.keyId=$PGP_KEY_ID -Psigning.password=$PGP_KEY_PASSWORD -Psigning.secretKeyRingFile=$PGP_KEY_FILE uploadArchives closeAndReleaseRepository :nitrite-explorer:shadowJar -Dscan | ||
./gradlew clean build run asciidoc -Prelease -PnitriteVersion=$NITRITE_VERSION -Psigning.keyId=$PGP_KEY_ID -Psigning.password=$PGP_KEY_PASSWORD -Psigning.secretKeyRingFile=$PGP_KEY_FILE uploadArchives closeAndReleaseRepository :nitrite-explorer:shadowJar -Dscan --stacktrace --info | ||
fi |
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 |
---|---|---|
|
@@ -42,5 +42,5 @@ deploy: | |
|
||
env: | ||
global: | ||
- NITRITE_VERSION=1.0.1 | ||
- NITRITE_VERSION=2.0.0 | ||
- PGP_KEY_FILE=~/secring.gpg |
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,54 @@ | ||
NitriteMapper relies on third-party serialization libraries for Document | ||
serialization. Those libraries heavily depend on reflection, but | ||
reflection has its toll. In environment like Android use of reflection | ||
degrades the performance drastically. To bypass this overhead, Nitrite | ||
provides a mechanism called Mappable | ||
icon:file-code-o[link="http://static.javadoc.io/org.dizitart/nitrite/{version}/org/dizitart/no2/mapper/Mappable.html", window="_blank"] | ||
interface. | ||
If an object is `Mappable`, Nitrite will use the implementation | ||
to convert the object to a Document and vice versa thus bypass the reflection | ||
overhead. | ||
[source,java] | ||
.Example for Mappable | ||
-- | ||
public class Employee implements Mappable { | ||
private String empId; | ||
private String name; | ||
private Date joiningDate; | ||
private Employee boss; | ||
@Override | ||
public Document write(NitriteMapper mapper) { | ||
Document document = new Document(); | ||
document.put("empId", getEmpId()); | ||
document.put("name", getName()); | ||
document.put("joiningDate", getJoiningDate()); | ||
if (getBoss() != null) { | ||
Document bossDoc = getBoss().write(mapper); | ||
document.put("boss", bossDoc); | ||
} | ||
return document; | ||
} | ||
@Override | ||
public void read(NitriteMapper mapper, Document document) { | ||
if (document != null) { | ||
setEmpId((String) document.get("empId")); | ||
setName((String) document.get("name")); | ||
setJoiningDate((Date) document.get("joiningDate")); | ||
Document bossDoc = (Document) document.get("boss"); | ||
if (bossDoc != null) { | ||
Employee bossEmp = new Employee(); | ||
bossEmp.read(mapper, bossDoc); | ||
setBoss(bossEmp); | ||
} | ||
} | ||
} | ||
} | ||
-- |
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 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
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,16 @@ | ||
Replication is a secured operation. There are two sets of credentials needed to | ||
successfully perform replication. | ||
|
||
1. The client credential | ||
2. The user credential | ||
Client credential is required to create user credentials in the DataGate server. | ||
The user credential is required to perform several operations during the replication | ||
life cycle. Once a user credential is created it can be used for replication. | ||
|
||
A client credential can be created using the DataGate portal. Once it is created, | ||
an app can use that client credential to create further users. Those users will take | ||
part in the replication. | ||
|
||
NOTE: The user credential has *USER* authority and a client credential has *CLIENT* | ||
authority. |
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
Oops, something went wrong.