特别是,它可以将这个文件映射到进程自己的地址空间中。
In particular, it is possible to map the file into the process address space itself.
还可以把文件映射到内存,这是加快数据访问的理想解决方案。
You can map files into memory, as well-an ideal solution for accelerating data access.
保存映射文件,这两个错误应该会消失。
在映射文件中,您还可以声明程序常量。
In the map file, you can also declare application constants.
大多数映射文件的调试都是在运行期间。
所以,必须指定要映射文件的哪部分。
这样可以保持映射文件的短小,而且容易阅读。
This practice keeps the mapping files short and easy to read.
保存映射文件。
上面的映射文件很容易理解。
所有工作都完成了;现在形成了一个完整的映射文件。
向类添加字段并将它们映射到XML文件。
可以通过许多方式来修改映射文件。
最后,需要在解组过程中使用这个映射文件。
All that's left is to use the mapping file in your unmarshalling process.
可以有任意多个映射文件。
给映射文件指定名称。
选择用于身份映射的XSLT文件。
而且,映射文件本身并不难编写。
And, as you'll soon see, the mapping file itself isn't hard to construct.
以下是映射文件的一个片段。
对于本示例,以下是映射文件的代码段。
对于本示例,以下是映射文件的代码段。
为companyb内联映射重复相同的过程,然后保存映射文件。
Repeat the same process for the companyB Inline map, then save the mapping file.
MappedByteBuffer将文件所在区域直接映射到内存。
MappedByteBuffer maps a region of a file directly in memory.
定义包含身份映射规则的XSLT文件。
我选择使用sheet1 .xml文件,因为它包含了数据的映射。
I chose to use the sheet1.xml file because it contains the mapping to the data.
在EAR中直接修改映射文件。
在Order.hbm.xml文件中最后一种有趣的关系就是映射OrderItems属性。
The final mapping of interest in the Order.hbm.xml file is the mapping of the OrderItems property.
您需要在名为SQLMap的文件内定义该映射。
You would define this mapping inside a file called an SQLMap. Here's an example.
Localmap是用于组织映射文件的工具。
所包括的项目交换文件还包含一个用于AddressCSV_To_Address映射的单元测试用例。
The included project interchange file also contains a unit test case for the AddressCSV_To_Address map.
我还在Account. hbm . xml文件中定义了Account对象的映射。
I have defined a mapping for the Account object in the Account.hbm.xml file.
应用推荐