/
var
/
www
/
qr4y.gr
/
server
/
delivery
/
node_modules
/
@google-cloud
/
firestore
/
build
/
src
/
/var/www/qr4y.gr/server/delivery/node_modules/@google-cloud/firestore/build/src
mkdir
upload
Name
Size
Mode
Actions
v1/
-
0755
rm
v1beta1/
-
0755
rm
backoff.d.ts
5547
0644
edit
dl
rm
backoff.js
7650
0644
edit
dl
rm
bulk-writer.d.ts
19241
0644
edit
dl
rm
bulk-writer.js
36076
0644
edit
dl
rm
bundle.d.ts
835
0644
edit
dl
rm
bundle.js
8427
0644
edit
dl
rm
collection-group.d.ts
3610
0644
edit
dl
rm
collection-group.js
4520
0644
edit
dl
rm
convert.d.ts
2776
0644
edit
dl
rm
convert.js
7167
0644
edit
dl
rm
document-change.d.ts
5041
0644
edit
dl
rm
document-change.js
5292
0644
edit
dl
rm
document-reader.d.ts
1842
0644
edit
dl
rm
document-reader.js
5353
0644
edit
dl
rm
document.d.ts
18136
0644
edit
dl
rm
document.js
30411
0644
edit
dl
rm
field-value.d.ts
8618
0644
edit
dl
rm
field-value.js
13904
0644
edit
dl
rm
geo-point.d.ts
2644
0644
edit
dl
rm
geo-point.js
3217
0644
edit
dl
rm
index.d.ts
36511
0644
edit
dl
rm
index.js
59421
0644
edit
dl
rm
logger.d.ts
1310
0644
edit
dl
rm
logger.js
2112
0644
edit
dl
rm
order.d.ts
1096
0644
edit
dl
rm
order.js
7525
0644
edit
dl
rm
path.d.ts
12126
0644
edit
dl
rm
path.js
19003
0644
edit
dl
rm
pool.d.ts
4116
0644
edit
dl
rm
pool.js
8859
0644
edit
dl
rm
query-partition.d.ts
4019
0644
edit
dl
rm
query-partition.js
5769
0644
edit
dl
rm
rate-limiter.d.ts
3015
0644
edit
dl
rm
rate-limiter.js
5850
0644
edit
dl
rm
recursive-delete.d.ts
5714
0644
edit
dl
rm
recursive-delete.js
10010
0644
edit
dl
rm
reference.d.ts
45610
0644
edit
dl
rm
reference.js
89449
0644
edit
dl
rm
serializer.d.ts
2942
0644
edit
dl
rm
serializer.js
12813
0644
edit
dl
rm
status-code.d.ts
1121
0644
edit
dl
rm
status-code.js
712
0644
edit
dl
rm
timestamp.d.ts
6987
0644
edit
dl
rm
timestamp.js
9697
0644
edit
dl
rm
transaction.d.ts
9673
0644
edit
dl
rm
transaction.js
18889
0644
edit
dl
rm
types.d.ts
3869
0644
edit
dl
rm
types.js
1387
0644
edit
dl
rm
util.d.ts
3463
0644
edit
dl
rm
util.js
6023
0644
edit
dl
rm
validate.d.ts
6527
0644
edit
dl
rm
validate.js
12314
0644
edit
dl
rm
watch.d.ts
9762
0644
edit
dl
rm
watch.js
24972
0644
edit
dl
rm
write-batch.d.ts
10533
0644
edit
dl
rm
write-batch.js
27234
0644
edit
dl
rm
Edit:
/var/www/qr4y.gr/server/delivery/node_modules/@google-cloud/firestore/build/src/collection-group.js
(4520B)
"use strict"; /* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CollectionGroup = void 0; const query_partition_1 = require("./query-partition"); const util_1 = require("./util"); const logger_1 = require("./logger"); const reference_1 = require("./reference"); const path_1 = require("./path"); const validate_1 = require("./validate"); const types_1 = require("./types"); const order_1 = require("./order"); /** * A `CollectionGroup` refers to all documents that are contained in a * collection or subcollection with a specific collection ID. * * @class CollectionGroup */ class CollectionGroup extends reference_1.Query { /** @hideconstructor */ constructor(firestore, collectionId, converter) { super(firestore, reference_1.QueryOptions.forCollectionGroupQuery(collectionId, converter)); } /** * Partitions a query by returning partition cursors that can be used to run * the query in parallel. The returned cursors are split points that can be * used as starting and end points for individual query invocations. * * @example * ``` * const query = firestore.collectionGroup('collectionId'); * for await (const partition of query.getPartitions(42)) { * const partitionedQuery = partition.toQuery(); * const querySnapshot = await partitionedQuery.get(); * console.log(`Partition contained ${querySnapshot.length} documents`); * } * * ``` * @param {number} desiredPartitionCount The desired maximum number of * partition points. The number must be strictly positive. The actual number * of partitions returned may be fewer. * @return {AsyncIterable<QueryPartition>} An AsyncIterable of * `QueryPartition`s. */ async *getPartitions(desiredPartitionCount) { var _a; (0, validate_1.validateInteger)('desiredPartitionCount', desiredPartitionCount, { minValue: 1, }); const tag = (0, util_1.requestTag)(); await this.firestore.initializeIfNeeded(tag); const partitions = []; if (desiredPartitionCount > 1) { // Partition queries require explicit ordering by __name__. const queryWithDefaultOrder = this.orderBy(path_1.FieldPath.documentId()); const request = queryWithDefaultOrder.toProto(); // Since we are always returning an extra partition (with an empty endBefore // cursor), we reduce the desired partition count by one. request.partitionCount = desiredPartitionCount - 1; const stream = await this.firestore.requestStream('partitionQueryStream', request, tag); stream.resume(); for await (const currentCursor of stream) { partitions.push((_a = currentCursor.values) !== null && _a !== void 0 ? _a : []); } } (0, logger_1.logger)('Firestore.getPartitions', tag, 'Received %d partitions', partitions.length); // Sort the partitions as they may not be ordered if responses are paged. partitions.sort((l, r) => (0, order_1.compareArrays)(l, r)); for (let i = 0; i < partitions.length; ++i) { yield new query_partition_1.QueryPartition(this._firestore, this._queryOptions.collectionId, this._queryOptions.converter, i > 0 ? partitions[i - 1] : undefined, partitions[i]); } // Return the extra partition with the empty cursor. yield new query_partition_1.QueryPartition(this._firestore, this._queryOptions.collectionId, this._queryOptions.converter, partitions.pop(), undefined); } withConverter(converter) { return new CollectionGroup(this.firestore, this._queryOptions.collectionId, converter !== null && converter !== void 0 ? converter : (0, types_1.defaultConverter)()); } } exports.CollectionGroup = CollectionGroup; //# sourceMappingURL=collection-group.js.map
Save
cmd:
run