数数看一行有多少棵树。
我们不是很乐意使用DPSI,但是我们必须跨多个分区探测多个索引树来寻找行。
We are not so pleased with the DPSI if we must probe multiple index trees to find rows across multiple partitions.
第一步是添加两个按钮(清单5中的第 28- 38行),用于展开或折叠树的所有项目。
The first step is to add the two buttons (lines 28 to 38 in listing 5) that expand or collapse all the tree’s items.
在这个列中,单击一行会下拉出输入产品提要中一个示例条目的树型表示。
Clicking on a row in this column drops down a tree representation of a sample entry from the input product feed.
仅利用15行内容,我们就创建了文件访问程序,来浏览任何您所给出的文件树,并检查包含在其中的文件。
In only about 15 lines, we've created a file visitor that will walk any file tree you give it and inspect the files contained therein.
这一行访问ast树,起步于编辑单元(最顶层的节点),并且查询所有的方法声明。
This line visits the AST tree, starting at the compilation unit (the top-most node), and queries for a list of all method declarations.
然后,你必须收集树项目和树的列信息(第25 -31行)。
You must then gather the tree items and column information of the tree (lines 25 to 31).
当在一个树项目中找到搜索字符串时,将会选定该树项目(第48行)。
When the search string is found in one of the tree items, that tree item is selected (line 48).
算法很简单,它对树的顶级项目进行迭代,并将其文本内容与搜索字符串进行比较(清单6中的第43- 52行)。
The algorithm is simple; it iterates through the top-level items of the tree and compares their text contents with the search string (lines 43 to 52 in listing 6).
成行的棕榈树在加勒比海坎昆的热带海滩上排成了行。
Rows of palm trees line a tropical beach in Cancun, which lies on the Caribbean Sea.
使用相同的常规界面,左侧有一个可折叠树,右侧将属性/元素内容显示在一行上。
The same general interface is used, with a collapsible-tree to the left, and an attribute/element content inline to the right.
排序通过对树项目进行迭代(第37- 39行)来执行。
The sorting is performed by iterating through the tree's items (lines 37 to 39).
而且,树的标题必须设置为可视的(第21行),以显示列的标题。
Also, the tree's header must be set as visible (line 21) for the column's headers to display.
清单4展示了具有列的基本树的完整实现,其中,列排序功能添加在第27和33行。
Listing 4 shows the full implementation of the Basic tree with columns, in which the column-sorting capability is added in lines 27 and 33.
可以选择父表中的任何行,将树扩展到所选父对象的位置。
Any row in the parent table can be selected to expand the tree to the location of the selected parent object.
对于其他任何情况,树必须按升序排序(第75 - 116行)。
For any other case, the tree must be sorted upward (lines 75 to 116).
B-树将存储键值,以及一个指向每个物理行的指针列表。
The B-tree would store the key value, followed by a list of pointers to each of the physical rows.
XMLNotepad的基本界面由两个窗格构成,一个窗格中是XML文档的可折叠树视图,另一个窗格包含一些表明元素内容和属性的行。
The basic interface to XML Notepad consists of a collapsible tree view of an XML document in one pane, with the other pane containing lines indicating the content of elements and attributes.
我们通过实例化treecolumn类(第23和28行)来向树中添加列。
We add columns to the tree by instantiating the TreeColumn class (lines 23 and 28).
lcov工具会生成一棵完整的HTML 树,其中包含有内核中代码的每一行以及关于每一行执行了多少次的数据(如果有的话)。
The lcov tool generates an entire HTML tree that contains every line of code in the kernel and data on how many times, if any, each line was executed.
将完成两项基本操作:它将XML文档转换成一种更易于进行语法分析的基于行的格式;并且它提供了将XML文档当作可操作树处理的方法。
Does two basic things: it transforms XML documents to a more easily parsed line-oriented format; and it provides methods to treat an XML document as a walkable tree.
排序之前,第4行是展开的,树型网格记住了这个状态。
Before the sorting action, the fourth row is expanded and the tree grid remembered it.
当排序变量设置为true时,会按照正确的顺序将两个受影响的项目重新创建为新的树项目,旧项目将从树中删除(第51 - 67和91 - 107行)。
When the sort variable is set to true, the two affected items are recreated as new tree items in the correct order, and the old items are removed from the tree (lines 51 to 67 and 91 to 107).
为了探明树蛇是否故意发出这一行为,Socha博士限制了树蛇在飞行时的视野,目的是让他们在起飞时只能向前看。
To find out if this might be deliberate, Dr Socha limited their view from the tower so that they could see only straight ahead when they launched themselves.
pyxie将完成两项基本操作:它将XML文档转换成一种更易于进行语法分析的基于行的格式;并且它提供了将XML文档当作可操作树处理的方法。
Pyxie does two basic things: it transforms XML documents to a more easily parsed line-oriented format; and it provides methods to treat an XML document as a walkable tree.
我们通过实例化tree类(清单1中的第17行)创建一个树,并通过实例化TreeIte m类(第20、23和26行)创建树的分支。
We create a tree by instantiating the tree class (line 17 of listing 1) and create the branches of the tree by instantiating the TreeItem class (lines 20, 23, and 26).
第 13行,来自类zk.Widget的 bind_callback方法被重写来运行update() 方法,在listbox被绑定到DOM树之后,设置列表第一项作为选中项。
In line 13, the bind_ callback method from the class zk.Widget is overridden to run the update() method and set the first list item as the selected one after the listbox is bound to the DOM tree.
这一行代码返回数据树的userroot。
每个输入的三角形对应一行输出,打印出在该三角形内部的树的数量。输出的数字应右对齐至第4列。
Output will consist of one line for each triangle, containing the number of trees for that triangle right justified in a field of width 4.
另外,根据调查结果,提出了有必要在北京建立一行道树田间基因库的设想。
In addition, it proposes a project constructing a field gene pool of street trees in Beijing as well.
应用推荐