As the name implies, a memory-mapped file maps a file-like construct to an address in memory.
顾名思义,一个内存映射文件将一个类似文件的结构映射到内存的地址中。
Would your own programming benefit from more uniformity in the way it accesses file-like resources?
您自己的编程能从更为一致的访问类文件资源的方式中获益吗?
Next we'll look at some examples using dump and load , which work with files and file-like objects.
接下来,我们看一些示例,这些示例用到了dump和load,它们使用文件和类似文件的对象。
Feedinfo is the main function, and takes a URL and an optional output stream (file-like object), defaulting to system output (the console).
feedinfo是主函数,负责接收url和可选的输出流(类似文件的对象),默认输出流为系统输出(控制台)。
For example, there are many functions that operate on "file-like" objects, where file-like is defined simply by supporting a few methods like .read(), .readlines(), and maybe .seek().
例如,有许多函数都是对“类文件”对象进行操作,其中只是通过支持类似 .read() 、 .readlines()也许还有 .seek() 这样的几个方法来定义类文件。
Then, create the JAR file like this.
然后,像这样创建JAR文件。
When implemented, this scheme produces a hosts file like the example you can access under Downloads.
在实现的时候,这个方案生成与下载中能访问的示例类似的主机文件。
For example, you might globally configure the framework with a line in a properties file like the one in Listing 10.
例如,可以在一个属性文件中用一行全局地配置框架,如清单 10 所示。
It reads a Prolog data file like the sample, then creates Python objects to model the Prolog declarations.
它读取像样本那样的Prolog数据文件,然后创建Python对象来对Prolog声明建模。
I like graphical file managers.
我喜欢图形化的文件管理器。
If you don't like the file, delete it.
如果不喜欢这个文件,可以删除它。
A relative URI reference is much like a file path.
相对的URI引用更像一个文件路径。
DB2 now USES this file to support recoverability like automatic restore.
现在DB 2使用该文件来支持可恢复性,例如自动恢复。
A URI path is like a typical file pathname.
URI路径像一个典型的文件路径名。
Any class in Ruby that supports the each method (like File) lets you iterate this way.
Ruby中支持each方法的任何类(比如File)都允许以这种方式进行迭代。
The text search index data is stored outside of DB2 in the integrated file system, much like regular DB2 text search indexes.
文本搜索索引数据存储在DB2之外的集成文件系统中,与常规DB 2文本搜索索引非常类似。
Scenario: You’ve realized that you’ve created your database in your instance’s home directory and not on a larger, dedicated file system like you intended.
场景:您发现您已经在实例主目录中创建了数据库,而不是像期望的那样,在一个更大的、专门的文件系统中创建该数据库。
The new file will look like Listing 1.
新文件看起来像清单1这样。
The file should look like this.
文件看起来应该像下面这样。
My impulse was to think "but I like the file system."
而我想说的是“可是我挺喜欢文件系统的”。
It caches the file data as pages, just like virtual memory for processes.
它将文件数据缓存为分页,就如同进程的虚拟内存一样。
Running it on a valid database file, like the penultimate command in Listing 4, gives a count of the records in the file.
在有效的数据库文件上运行它,类似清单4中的倒数第二个命令,则会提供文件中的记录数。
Like file storage areas, fixed storage areas use a directory structure on the underlying file system.
和文件存储区域一样,固定存储区域使用底层文件系统上的目录结构。
You expose the service in an XML file, like this.
将该服务暴露在XML文件中,如下所示。
Select the contents of both tables with a join and you can produce a shape and coordinate file like that shown below.
选择两张表组合在一起后的内容,然后可以生成如下所示的图形和坐标文件。
So what does an XML version of the configuration file look like?
所以配置文件的XML版本会是什么样的呢?
Your file should look like that in Figure 19.
你的文件应当如图19所示。
Listing 4 shows what this file might look like for you.
清单4展示了这个文件的内容。
Let's see how the local IBM NAS client configuration file looks like this time.
下面让我们来看一下本地IBMNAS客户端配置文件的内容。
Open this file in whatever editor you'd like.
在任意一种编辑器中打开这个文件。
应用推荐