正如你可以看到图2中,外键映射为一类之间的关系。
As you can see in Figure 2, the foreign key is mapped as a relation between the classes.
本文中的所有Vimscript示例使用各种类型的键映射作为触发器。
All of the Vimscript examples in this article use key mappings of various types as triggers.
在调用时,只有当键映射到指定的值时才从map中删除这个键。
When called, it will only remove the key from the map if the key is mapped to the specific value.
你可以如下所示使用“stty -a”命令查看给进程发送特定信号的键映射。
You can view the key mappings that sends specific signal to a process using the "stty -a" command as shown below.
注意,上例中的键映射使用了一个包含类似c的“三元表达式”的表达式。
Note that the key-mapping in the previous example USES an expression containing a C-like "ternary expression".
最后一个最简单了:明显就应该用字典了,这样来把每个键映射到对应的多个值。
The last one is easy: a dictionary is the obvious choice for a mapping from keys to corresponding values.
有了这样一个可用的函数,您可以设置一个正常模式的键映射来调用全部文件的命令,就像这样
With such a function available, you could set up a Normal-mode keymap to invoke the command on entire files, like so
在这种情况下,通常最好将代码重构为一个用户定义的函数,键映射随后就可以调用该函数。
In such cases, it's usually a good idea to refactor the code out into a user-defined function, which the key-mapping can then call.
比如,可以创建一个键映射(比如;p),能够按照下面的方式在Vim中显式文本(比如前一个段落)。
For example, you could create a key-mapping (say:; p) that causes text like the previous paragraph to be displayed within Vim like so.
在一个非分区数据库中,不需要分区键或分区映射。
In a non-partitioned database, no partitioning key or partitioning map is required.
在收到对给定单词的同义词的请求后,使用给定单词作为键来搜索映射。
On receiving a request for synonyms of a given word, search the map using the given word as the key.
该创建类似于1个简单规则创建,但它展示了在每个事件流发生时使用映射键从数据库获取字段需要额外的性能开销。
This scenario is similar to the 1 simple rule scenario, but shows the additional performance cost of using a mapped key to retrieve a field from the database on every event flow.
在这两种情况下,内层容器都用于获得键到数据值的映射。
In either case, the inner container is used to obtain the key-to-data value mapping.
删除函数略微有些复杂,因为我们还想删除正在删除的键的反向映射。
Deletions are a little more complex, because we also want to delete the reverse mapping for the key we're deleting.
通过对整体单词应用这种映射,就产生了单词的语音“键”。
By applying this mapping to a whole word a phonetic "key" for the word is produced.
在创建映射时,必须为枚举的键传入这个类。
When you create the map, you must pass in the class for the enumerated key.
然后循环遍历列表获得带有特定标记的新闻,并以每条新闻的ID为键将它们放入映射中。
You then iterate over the list from the stories with the given tag, putting each into the map using the ID of the story as the key.
键还可以是其他JSON结构,比如列表或映射。
Keys can also be other JSON structures such as a list or a map.
将关系映射到数据库外键。
要使用映射键从数据源检索数据以构造中间对象,请执行以下操作。
To retrieve data from a data source using mapped keys for constructing an intermediate object.
除此以外,它还定义了一个secondary_keys方法来获取反向映射键。
In addition, it defines a secondary_keys method to get just the reverse mapping keys.
键属性映射不是手动填充的,而是在所连接的应用程序中的数据发生更改时,由RelationshipService动态地创建和删除。
The key attribute mappings are not manually populated; instead, the Relationship Service creates and removes them dynamically when the data in the connected application changes.
另一方面,iteritems()方法允许同时遍历键到数据值的映射。
On the other hand, the iteritems() method lets you iterate through the key-to-data value mappings at the same time.
缺省呈现为主机应用程序提供了一种合理的Web表示方法,它把功能键和选择列表映射到Web链接,并不加修改地将主机字段显示出来。
Default rendering offers a reasonable Web presentation of a host application by mapping function keys and selection lists to Web links, and displaying the host fields without change.
消息映射的键是字符串,表示用于访问业务对象的叶子节点的XPath表达式。
The keys of the message map are strings that represent XPath expressions to access the leaf nodes of the business object.
直接创建dict容器的另一个方法是直接提供键到数据值的映射。
The other method for creating a dict container directly is to provide the key-to-data value mapping directly.
可根据参数映射键中的前缀rateType加以识别。
They can be identified by the prefix Rate Type in the parameter map key.
还有一个名为 dealDetails 的映射,其键是ItemIDs(来自于交易数据),其值是从eBayShoppingAPI获取的详细信息。
There is also a map called dealDetails whose keys will be Item IDs (which you will get from the deals data), and whose values are the more detailed information obtained from the eBay Shopping API.
清单14检索当前Psycho文档,在CouchDB中删除它,然后通过添加一个带有当前id值的新movie -title键并从映射移除旧id来重新创建它。
Listing 14 retrieves the current Psycho document, deletes it in CouchDB, and then recreates it by adding a new movie-title key with the current ID value and removing the ID from the map.
对于英语和很多欧洲语言来说,一个字符映射为一个键(或两个键)就足够了。
For English and the vast majority of European languages, the one-key (or two) to one-character mapping is sufficient.
应用推荐