Skip to content

Commit e8d9bd0

Browse files
authored
Merge pull request #8 from RelationalAI/hnr-results-format
v2 predefined results formats
2 parents f175c5f + 676bcd3 commit e8d9bd0

21 files changed

+649
-187
lines changed

CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
21
## main
2+
* Added v2 predefined results formats:
3+
4+
- `getTransactions` returns `TransactionsAsyncMultipleResponses`.
5+
- `getTransaction` returns `TransactionAsyncSingleResponse`.
6+
- `getTransactionResults` returns `List<ArrowRelation>`.
7+
- `getTransactionMetadata` returns `List<TransactionAsyncMetadataResponse>`.
8+
- `getTransactionProblems` returns `List<ClientProblem|IntegrityConstraintViolation>`.
9+
- `executeAsync` returns `TransactionAsyncResult`.
10+
11+
## v0.1.0-alpha
312
* Added support to the asynchronous protocol including:
413
- `executeAsync`: runs an asynchronous request.
514
- `executeAsyncWait`: runs an asynchronous request and wait of its completion.
@@ -9,6 +18,3 @@
918
- `getTransactionMetadata`: gets transaction metadata.
1019
- `getTransactionProblems`: gets transaction execution problems.
1120
* Added `ExecuteAsyncTest` test class
12-
13-
## v0.0.1
14-
* initial release

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ In order to use the `rai-sdk-java`, you need add this dependency to your project
8686
<dependency>
8787
<groupId>com.relationalai</groupId>
8888
<artifactId>rai-sdk</artifactId>
89-
<version>0.1.0-alpha</version>
89+
<version>0.2.0-alpha</version>
9090
</dependency>
9191

9292
You need also to point maven to the SDK GitHub packages repository in the project's POM:

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<description>The RelationalAI Software Development Kit (SDK) for Java</description>
2222
<groupId>com.relationalai</groupId>
2323
<artifactId>rai-sdk-pom</artifactId>
24-
<version>0.1.0-alpha</version>
24+
<version>0.2.0-alpha</version>
2525
<packaging>pom</packaging>
2626
<url></url>
2727

rai-sdk-examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>com.relationalai</groupId>
2222
<artifactId>rai-sdk-pom</artifactId>
23-
<version>0.1.0-alpha</version>
23+
<version>0.2.0-alpha</version>
2424
</parent>
2525

2626
<name>RelationalAI SDK for Java Examples</name>

rai-sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>com.relationalai</groupId>
2222
<artifactId>rai-sdk-pom</artifactId>
23-
<version>0.1.0-alpha</version>
23+
<version>0.2.0-alpha</version>
2424
</parent>
2525

2626
<name>RelationalAI SDK for Java Package</name>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.relationalai;
2+
3+
import java.util.List;
4+
5+
public class ArrowRelation extends Entity {
6+
String relationId;
7+
List<Object> table;
8+
9+
public ArrowRelation(String relationId, List<Object> table) {
10+
this.relationId = relationId;
11+
this.table = table;
12+
}
13+
14+
@Override
15+
public boolean equals(Object o) {
16+
if (o == this) {
17+
return true;
18+
}
19+
20+
if (!(o instanceof ArrowRelation)) {
21+
return false;
22+
}
23+
var that = (ArrowRelation) o;
24+
25+
return this.relationId.equals(that.relationId) && this.table.equals(that.table);
26+
}
27+
}

0 commit comments

Comments
 (0)