Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
8d30265
Clarify tha metastorage is optional in Quick start doc
jinxxxoid Jul 22, 2025
269314d
Clarify that cluster name is required to init the cluster
jinxxxoid Jul 22, 2025
29f47dc
Update CLI usage via REPL/non-interactive mode
jinxxxoid Jul 22, 2025
3fb5f3f
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jul 22, 2025
6aa0745
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jul 23, 2025
c0126b6
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jul 23, 2025
bfdb5e3
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jul 30, 2025
8b8608e
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jul 31, 2025
f3247de
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jul 31, 2025
c7e8f35
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 1, 2025
9d1aafc
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 5, 2025
d476390
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 6, 2025
9aa1e3d
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 6, 2025
b6abd39
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 7, 2025
8e958a0
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 8, 2025
be7f2dc
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 11, 2025
cb4569e
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 12, 2025
ae515f0
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 13, 2025
aab9cea
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 15, 2025
3980932
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 18, 2025
cf7fb3a
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 19, 2025
80a97b2
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 20, 2025
cc4f316
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 25, 2025
d22772b
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 25, 2025
9749294
Merge remote-tracking branch 'upstream/main'
jinxxxoid Aug 26, 2025
2f215b8
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 3, 2025
e607dbc
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 3, 2025
6f69ef6
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 4, 2025
1a5c03e
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 8, 2025
55f2af4
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 10, 2025
ccd5f22
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 14, 2025
37c4770
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 15, 2025
03b09d5
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 16, 2025
8c1f5b6
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 17, 2025
0d8538b
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 23, 2025
299ce02
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 23, 2025
04295c1
Merge remote-tracking branch 'upstream/main'
jinxxxoid Sep 26, 2025
d356b30
Merge remote-tracking branch 'upstream/main'
jinxxxoid Oct 27, 2025
8b76e53
IGNITE-26831 Cached query plans system view
jinxxxoid Oct 27, 2025
f43845e
Revert "IGNITE-26831 Cached query plans system view"
jinxxxoid Oct 27, 2025
4bf245c
Merge remote-tracking branch 'upstream/main'
jinxxxoid Oct 28, 2025
ed8a7d0
Merge remote-tracking branch 'upstream/main'
jinxxxoid Nov 3, 2025
4ebd99d
Merge remote-tracking branch 'upstream/main'
jinxxxoid Nov 5, 2025
67cff2f
Merge remote-tracking branch 'upstream/main'
jinxxxoid Nov 10, 2025
7cb86f6
Merge remote-tracking branch 'upstream/main'
jinxxxoid Nov 12, 2025
99c21e2
Merge remote-tracking branch 'upstream/main'
jinxxxoid Nov 14, 2025
dd40003
Merge remote-tracking branch 'upstream/main'
jinxxxoid Nov 18, 2025
94dc376
Merge remote-tracking branch 'upstream/main'
jinxxxoid Nov 24, 2025
479f0ca
Merge remote-tracking branch 'upstream/main'
jinxxxoid Dec 3, 2025
fb1539b
Merge remote-tracking branch 'upstream/main'
jinxxxoid Dec 12, 2025
f7fbbef
Merge remote-tracking branch 'upstream/main'
jinxxxoid Dec 12, 2025
fc37743
Merge remote-tracking branch 'upstream/main'
jinxxxoid Dec 29, 2025
d45b0ed
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jan 9, 2026
55ef3df
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jan 12, 2026
63717b5
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jan 13, 2026
94bba06
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jan 14, 2026
b997ec6
Merge remote-tracking branch 'upstream/main'
jinxxxoid Jan 29, 2026
bd040d7
Merge remote-tracking branch 'upstream/main'
jinxxxoid Feb 4, 2026
8a1043f
Merge remote-tracking branch 'upstream/main'
jinxxxoid Feb 6, 2026
7467d67
IGNITE-27737 Update TX API usage in examples
jinxxxoid Feb 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static void main(String[] args) {
System.out.println("\nCreating account records...");

for (int i = 0; i < ACCOUNTS_COUNT; i++) {
view.insert(null, account(i));
view.insert(account(i));
}

//--------------------------------------------------------------------------------------
Expand Down Expand Up @@ -162,7 +162,7 @@ public CompletableFuture<Void> executeAsync(JobExecutionContext context, Integer

RecordView<Tuple> view = context.ignite().tables().table("accounts").recordView();

Tuple account = view.get(null, accountKey);
Tuple account = view.get(accountKey);

System.out.println("Account info [accountNumber=" + account.intValue(0) +
", name=" + account.stringValue(1) + "]");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ private static void verifyPut(RecordView view) {
System.out.println("=== Table data after PUT ===");
for (int i = 0; i < ACCOUNTS_COUNT; i++) {
Account keyRec = new Account(i);
if (view.contains(null, keyRec)) {
Account record = (Account) view.get(null, keyRec);
if (view.contains(keyRec)) {
Account record = (Account) view.get(keyRec);
System.out.printf("Found: id=%d, name=%s, balance=%d, active=%b%n",
record.getId(), record.getName(), record.getBalance(), record.isActive());
} else {
Expand All @@ -131,7 +131,7 @@ private static void verifyRemove(RecordView<Account> view) {
List<Account> keys = IntStream.range(0, ACCOUNTS_COUNT)
.mapToObj(Account::new)
.collect(Collectors.toList());
List<Account> records = view.getAll(null, keys);
List<Account> records = view.getAll(keys);
for (int i = 0; i < records.size(); i++) {
System.out.printf("id=%d exists? %b%n", i, records.get(i) != null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public CompletableFuture<List<Tuple>> receive(List<Tuple> page, DataStreamerRece
.set("street", sourceItem.stringValue("street"))
.set("city", sourceItem.stringValue("city"));

customersTable.upsert(null, customer);
addressesTable.upsert(null, address);
customersTable.upsert(customer);
addressesTable.upsert(address);
}

return CompletableFuture.completedFuture(results);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ public static void main(String[] args) throws Exception {
.set("accountNumber", 123456);

Tuple value = Tuple.create()
.set("firstName", "Val")
.set("lastName", "Kulichenko")
.set("firstName", "Jane")
.set("lastName", "Doe")
.set("balance", 100.00d);

kvView.put(null, key, value);
kvView.put(key, value);

//--------------------------------------------------------------------------------------
//
Expand All @@ -102,7 +102,7 @@ public static void main(String[] args) throws Exception {

System.out.println("\nRetrieving a value using KeyValueView API...");

value = kvView.get(null, key);
value = kvView.get(key);

System.out.println(
"\nRetrieved value:\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public static void main(String[] args) throws Exception {
AccountKey key = new AccountKey(123456);

Account value = new Account(
"Val",
"Kulichenko",
"Jane",
"Doe",
100.00d
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static void main(String[] args) throws Exception {

Person myPerson = new Person(2, "2", "John Doe", 40, "Apache");

view.upsert(null, myPerson);
view.upsert(myPerson);
} finally {

System.out.println("Dropping the table...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static void performQueryWithoutTransaction(Table table) {
System.out.println("[ Example 1 ] Performing query without transaction");

try (Cursor<Entry<Tuple, Tuple>> cursor = table.keyValueView().query(
null, // Implicit transaction
(Transaction) null, // Implicit transaction
// Query criteria
and(
columnValue("name", equalTo("John Doe")),
Expand Down Expand Up @@ -118,7 +118,7 @@ public static void performQueryAsync(Table table) {
System.out.println("[ Example 3 ] Performing asynchronous query");

AsyncCursor<Entry<Tuple, Tuple>> result = table.keyValueView().queryAsync(
null, // Implicit transaction
(Transaction) null, // Implicit transaction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not need to cast, but we have plans to adjust this method as well.

and(
columnValue("name", equalTo("John Doe")),
columnValue("age", greaterThan(20))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.ignite.client.IgniteClient;
import org.apache.ignite.table.RecordView;
import org.apache.ignite.table.Tuple;
import org.apache.ignite.tx.Transaction;

/**
* This example demonstrates the usage of the {@link RecordView} API.
Expand Down Expand Up @@ -86,11 +87,11 @@ public static void main(String[] args) throws Exception {

Tuple newAccountTuple = Tuple.create()
.set("accountNumber", 123456)
.set("firstName", "Val")
.set("lastName", "Kulichenko")
.set("firstName", "Jane")
.set("lastName", "Doe")
.set("balance", 100.00d);

accounts.insert(null, newAccountTuple);
accounts.insert(newAccountTuple);

//--------------------------------------------------------------------------------------
//
Expand All @@ -102,7 +103,7 @@ public static void main(String[] args) throws Exception {

Tuple accountNumberTuple = Tuple.create().set("accountNumber", 123456);

Tuple accountTuple = accounts.get(null, accountNumberTuple);
Tuple accountTuple = accounts.get(accountNumberTuple);

System.out.println(
"\nRetrieved record:\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ public static void main(String[] args) throws Exception {

Account newAccount = new Account(
123456,
"Val",
"Kulichenko",
"Jane",
"Doe",
100.00d
);

accounts.insert(null, newAccount);
accounts.insert(newAccount);

//--------------------------------------------------------------------------------------
//
Expand All @@ -102,7 +102,7 @@ public static void main(String[] args) throws Exception {

System.out.println("\nRetrieving a record using RecordView API...");

Account account = accounts.get(null, new Account(123456));
Account account = accounts.get(new Account(123456));

System.out.println(
"\nRetrieved record:\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ public static void main(String[] args) throws Exception {
.set("age", 32)
.set("company", "Apache");

personTableView.upsert(null, personTuple);
personTableView.upsert(personTuple);

Tuple personIdTuple = Tuple.create()
.set("id", 1);
Tuple insertedPerson = personTableView.get(null, personIdTuple);
Tuple insertedPerson = personTableView.get(personIdTuple);

System.out.println("Person name: " + insertedPerson.stringValue("name"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static void main(String[] args) throws Exception {

/* Insert initial account */
accounts.put(null, key, new Account("John", "Doe", 1000.0d));
System.out.println("Initial balance: " + accounts.get(null, key).balance);
System.out.println("Initial balance: " + accounts.get(key).balance);

/* Using synchronous transactional API to update the balance */
client.transactions().runInTransaction(tx -> {
Expand All @@ -69,7 +69,7 @@ public static void main(String[] args) throws Exception {
accounts.put(tx, key, acct);
});

System.out.println("Balance after the sync transaction: " + accounts.get(null, key).balance);
System.out.println("Balance after the sync transaction: " + accounts.get(key).balance);

/* Using asynchronous transactional API to update the balance */
CompletableFuture<Void> future = client.transactions().runInTransactionAsync(tx ->
Expand All @@ -80,7 +80,7 @@ public static void main(String[] args) throws Exception {
})
);
future.join();
System.out.println("Balance after the async transaction: " + accounts.get(null, key).balance);
System.out.println("Balance after the async transaction: " + accounts.get(key).balance);

} finally {

Expand Down