for o in aa{ println(o)}for (index,value) in enumerate(aa){println("\(index)\(value)")}
分类:
其他好文 时间:
2014-07-14 08:04:26
阅读次数:
208
语句如下:dicts.GetAt(Position).GetXrecord("年薪").First().Value其中DBDictionary dicts=(DBDictionary)trans.GetObject(db.NamedObjectsDictionaryId, OpenMode.ForR...
分类:
Web程序 时间:
2014-07-14 08:02:35
阅读次数:
757
TreeYou are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the bin...
分类:
其他好文 时间:
2014-07-13 21:24:22
阅读次数:
202
int main(){}void addTotail(ListNode *& pHead, int value){ ListNode *node = new ListNode(); node->value = value; node->pNext = NULL; ListNode *p = pHea...
分类:
其他好文 时间:
2014-07-13 21:11:59
阅读次数:
173
Properties类本身是Hashtable类的子类,也是按照key-value的形式存放数据的.
设置和取得属性:
public class PropertiesDemo01{
public static void main(String args[]){
Properties pro = new Properties() ; // 创建Properties对象
pro.setP...
分类:
编程语言 时间:
2014-07-13 20:45:05
阅读次数:
244
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
/**
* Defin...
分类:
其他好文 时间:
2014-07-13 15:50:25
阅读次数:
158
1. 什么是ticks
我们来看一下手册上面对ticks的解释:
A tick is an event that occurs for every N low-level statements executed by the parser within the declare block. The value for N is specified using ticks=N withi...
分类:
Web程序 时间:
2014-07-13 13:55:59
阅读次数:
269
使用例:
@OneToMany(mappedBy="item",cascade=CascadeType.ALL,fetch=FetchType.EAGER)
@Fetch(value=FetchMode.SUBSELECT)
两者比较:
两者都是设定关联对象的加载策略。前者是JPA标准的通用加载策略注解属性,
后者是Hibernate自有加载策略注解属性。
...
分类:
其他好文 时间:
2014-07-12 23:51:20
阅读次数:
369
Map接口操作的是一对对象,即二元偶对象,Map接口中的每个元素都使用"key--value"的形式存储在集合中.
SortedMap接口是排序接口,只要是实现了此接口的子类,都属于排序的子类.TreeMap就是此接口的一个子类
Map接口常用的子类:
HashMap:无序存放,新的操作类,key不允许重复
Hahtable:无序存放,旧的操作类,key不允许重复
...
分类:
其他好文 时间:
2014-07-12 23:07:14
阅读次数:
310
对于hadoop HDFS 中的所有命令进行解析(其中操作流程是自己的想法有不同意见欢迎大家指正)
接口名称
功能
操作流程
get
将文件复制到本地文件系统 。如果指定了多个源文件,本地目的端必须是一个目录。
(1)按照上述机制,在Config server上的存储引擎中逐层读取K-V,直到获得文件名(或大文件元数据...
分类:
其他好文 时间:
2014-07-12 22:25:59
阅读次数:
389