コンテンツタイプ
動画
所要時間
7分
レベル
入門
Java アプリケーションで XEP を使用して、InterSystems IRIS® data platform からデータを保存および取得する方法を確認します。
XEP は、InterSystems IRIS からオブジェクトを直接保存・取得するための API です。大量データの高スループット処理が求められる状況に最適化されています。
この動画を「完了」にする。
コンテンツタイプ
動画
所要時間
7分
レベル
入門
Java アプリケーションで XEP を使用して、InterSystems IRIS® data platform からデータを保存および取得する方法を確認します。
XEP は、InterSystems IRIS からオブジェクトを直接保存・取得するための API です。大量データの高スループット処理が求められる状況に最適化されています。
この動画を「完了」にする。
| リファレンス | タイムスタンプ | コード |
|---|---|---|
| XEP 接続を設定する | 2:33 | EventPersister xepPersister = PersisterFactory.createPersister(); xepPersister.connect(<ip>,<port>,<namespace>,<username>,<password>); |
| CelestialReading オブジェクトをデータベースに保存する | 3:20 | コード開始:xepPersister.importSchema("Demo.CelestialReading")
Event xepEvent = xepPersister.getEvent("Demo.CelestialReading");
CelestialReading[] readingsArray = CelestialReading.Generate(100);
xepEvent.store(readingsArray);コード終了 |
| データベースからオブジェクトを読み取る | 5:23 | コード開始:String sqlQuery = "SELECT * FROM Demo.CelestialReading WHERE distance < ? and type= ? and diameter > ?"; EventQuery<CelestialReading> xepQuery = xepEvent.createQuery(sqlQuery); xepQuery.setParameter(1, "238900"); xepQuery.setParameter(2, "asteroid"); xepQuery.setParameter(3, ".025"); xepQuery.execute(); EventQueryIterator<CelestialReading> xepIter = xepQuery.getIterator();コード終了 |
Having an issue with the learning site? Want to provide feedback on a course? Contact us by emailing online.training@intersystems.com.
Please include all relevant information, including the page or course you are having trouble with, and any necessary screenshots.