バージョン1.2で変更。
MongoDB\GridFS\Bucket::getChunkSizeBytes()
このバケットのチャンク サイズをバイト単位で返します。
function getChunkSizeBytes(): integer
このバケットのチャンク サイズ(バイト単位)。
<?php $bucket = (new MongoDB\Client)->test->selectGridFSBucket(); var_dump($bucket->getChunkSizeBytes());
出力は次のようになります。
int(261120)
項目一覧
ドキュメンテーション
PHP ライブラリ マニュアル
Overview
スタートガイド
接続
データベースとコレクション
CRUD 操作
集計
Data Formats
Indexes
データベースコマンドの実行
MongoDB Search
MongoDB ベクトル検索
ログ記録とモニタリング
セキュリティ
サードパーティ統合
参照
互換性
API ドキュメント
BSON
MongoDB\Client
MongoDB\Database
MongoDB\Collection
MongoDB\GridFS\bucket
__construct()
delete()
deleteByName()
ダウンロードToStream()
downloadToStreamByName()
drop()
find()
findOne()
getbucketName()
getChunksCollection()
getChunkSizeBytes()
getDatabaseName()
getFileDocumentForStream()
getFileIdForStream()
getFilesCollection()
getReadConcern()
getReadPreference()
getTypeMap()
getWriteConcern()
openDownloadStream()
openDownloadStreamByName()
openUploadStream()
registerグローバルストリーム ラッパーエイリアス()
rename()
renameByName()
アップロードFromStream()
結果のクラス
関数
例外クラス
問題とヘルプ