ネイティブ モードの Cloud Firestore Enterprise エディションが利用可能になりました。
詳細
オフセット
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
説明
最初の N 入力ドキュメントをスキップします。
構文
Node.js
const results = await db.pipeline()
.collection("/cities")
.offset(10)
.execute();
クライアントの例
Node.js
const results = await db.pipeline()
.collection("cities")
.offset(10)
.execute();
Web
const results = await execute(db.pipeline()
.collection("cities")
.offset(10));
Swift
let results = try await db.pipeline()
.collection("cities")
.offset(10)
.execute()
Kotlin
val results = db.pipeline()
.collection("cities")
.offset(10)
.execute()
Java
Task<Pipeline.Snapshot> results = db.pipeline()
.collection("cities")
.offset(10)
.execute();
Python
results = client.pipeline().collection("cities").offset(10).execute()
Java
Pipeline.Snapshot results =
firestore.pipeline().collection("cities").offset(10).execute().get();
動作
offset ステージは、最初の N 入力ドキュメントをスキップします。offset の前に sort ステージが使用されていない限り、ドキュメントが返される順序は不安定で、繰り返し実行すると異なる結果が生成される可能性があります。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2026-03-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2026-03-26 UTC。"],[],[]]