CloudFileOp

サマリー

Performs file related operations that are cloud specific.

説明

This class cannot be instantiated directly. An instance of this class is returned by the AIOFile object's cloud property.

方法の概要

方法説明
clearcache ()

Clears file properties and BLOB region cache. Call this method when an external process updates the file.

usebufferedreader ()

Caches last read bytes.

usecachedfile ({blocksize}, {cachesize})

Uses least recently used (LRU) block cache for handling files on cloud.

方法

clearcache ()
cloud_io = AIO(r"C:\data\datacloud.acs")
rcsfile = cloud_io.open(r'testfile.txt', 'r')
rcsfile.cloud.clearcache()
usebufferedreader ()
cloud_io = AIO(r"C:\data\datacloud.acs")
rcsfile = cloud_io.open(r'testfile.txt', 'r')
rcsfile.cloud.usebufferedreader()
usecachedfile ({blocksize}, {cachesize})
パラメーター説明データ タイプ
blocksize

The block size.

(デフォルト値は次のとおりです 32768)

Integer
cachesize

The cache size.

(デフォルト値は次のとおりです 0)

Integer
cloud_io = AIO(r"C:\data\datacloud.acs")
rcsfile = cloud_io.open(r'testfile.txt', 'r')
rcsfile.cloud.usecachedfile(blocksize=32768, cachesize=0)