Skip to content

chore: add data model classes for native Java test vector rewrite#2295

Closed
rishav-karanjit wants to merge 8 commits into
add-test-vector-nativelyfrom
TestVectorModels-data-classes
Closed

chore: add data model classes for native Java test vector rewrite#2295
rishav-karanjit wants to merge 8 commits into
add-test-vector-nativelyfrom
TestVectorModels-data-classes

Conversation

@rishav-karanjit

@rishav-karanjit rishav-karanjit commented May 26, 2026

Copy link
Copy Markdown
Member

Issue #, if available:

Description of changes:

First PR in the TestVectors native Java rewrite series. Sets up the build configuration and introduces the core data model classes that replace the Dafny-generated types.

What changed

Dafny → Java mapping

Dafny Source (TestVectors/dafny/DDBEncryption/src/JsonConfig.dfy) Native Java Class
datatype Record (line 47) model/Record.java
datatype LargeRecord line 52 model/LargeRecord.java
datatype TableConfig line 57 model/TableConfig.java
datatype SimpleQuery line 63 model/SimpleQuery.java
datatype ComplexQuery line 70 model/ComplexQuery.java
datatype ComplexTest line 76 model/ComplexTest.java
datatype IoTest line 98 model/IoTest.java
datatype RoundTripTest line 82 model/RoundTripTest.java
datatype WriteTest line 87 model/WriteTest.java
datatype DecryptTest line 92 model/DecryptTest.java
datatype TestVectorConfig (in TestVectors.dfy line 53) model/TestVectorConfig.java
type ConfigPair = (ConfigName, ConfigName) (line 111) model/ConfigPair.java

Key type translations

Dafny Type Java Type
DDB.AttributeMap Map<String, AttributeValue>
Option<T> Nullable field (Java 8 compat)
seq<T> List<T>
map<K, V> Map<K, V>
ConfigPair = (string, string) String[] (length 2)
DDB.CreateTableInput CreateTableRequest
Types.DynamoDbTableEncryptionConfig DynamoDbTableEncryptionConfig (native DBESDK)

Testing

  • gradle clean compileJava passes with no errors

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rishav-karanjit
rishav-karanjit changed the base branch from main to add-test-vector-natively May 27, 2026 00:09
@rishav-karanjit
rishav-karanjit marked this pull request as ready for review May 27, 2026 21:25
@rishav-karanjit
rishav-karanjit requested a review from a team as a code owner May 27, 2026 21:25
@rishav-karanjit rishav-karanjit changed the title chore: Project setup and data model classes for native Java test vector rewrite chore: add data model classes for native Java test vector rewrite May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant