1、RDD是什么RDD:Spark的核心概念是RDD (resilientdistributed dataset),指的是一个只读的,可分区的分布式数据集,这个数据集的全部或部分可以缓存在内存中,在多次计算间重用。RDD的描述
Internally, each RDD is characterized by five main properties:A list of partitions
A fu...
分类:
其他好文 时间:
2016-05-18 19:45:30
阅读次数:
1064
1.Linux文件删除原理
Linux是通过link的数量控制文件删除的,只有当文件不存在任何链接时,该文件才会被删除,一般每个文件有两个link计数器: i_count 和 i_nlink,从VFS inode结构体中可以找到:
struct inode {struct hlist_node i_hash; /* hash链表的指针 */struct list_head i_...
分类:
系统相关 时间:
2016-05-18 19:38:08
阅读次数:
379
题目信息1089. Insert or Merge (25)时间限制200 ms
内存限制65536 kB
代码长度限制16000 BInsertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion so...
分类:
编程语言 时间:
2016-05-18 19:33:21
阅读次数:
201
题目信息1097. Deduplication on a Linked List (25)时间限制300 ms
内存限制65536 kB
代码长度限制16000 B
Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute value...
分类:
其他好文 时间:
2016-05-18 19:33:10
阅读次数:
164
题目信息1098. Insertion or Heap Sort (25)时间限制100 ms
内存限制65536 kB
代码长度限制16000 BAccording to Wikipedia:Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list...
分类:
编程语言 时间:
2016-05-18 19:31:52
阅读次数:
152
Wpa_supplicant为每个网络接口都分配了一个struct wpa_supplicant, 该结构体存储了一些必要信息例如 struct dl_list bss(扫描结果); struct wpa_config *conf(配置文件)等等。...
分类:
移动开发 时间:
2016-05-18 19:08:44
阅读次数:
356
title
ul{
list-style:none;
}
.first{
font-size:16px;
}
.second{
font-size:14px;
}
.third{
font-size:12px;
}
.fourth{
font-size:10px;
}
16px
14px
12p...
分类:
其他好文 时间:
2016-05-18 19:00:25
阅读次数:
126
Collection接口 Collection是最基本的集合接口,一个Collection代表一组Object,即Collection的元素(Elements)。一些 Collection允许相同的元素而另一些不行。一些能排序而另一些不行。Java SDK不提供直接继承自Collection的类,Java SDK提供的类都是继承自Collection的“子接口”如List和Set。
所有实现C...
分类:
编程语言 时间:
2016-05-18 18:48:47
阅读次数:
253
17.01_集合框架(HashSet存储字符串并遍历)
A:Set集合概述及特点
通过API查看即可
和list相比,没有什么特殊方法,都是add(),toArray,asList等方法
B:案例演示
HashSet存储字符串并遍历
public class Demo1_HashSet {
/**
* set:无序(存取顺序不一致)、无索引、不可重复
* @param...
分类:
其他好文 时间:
2016-05-18 18:44:54
阅读次数:
205
本解析源码来自JDK1.7
LinkedList许多方法是为了适配其实现的接口,本质上都是双向链表的操作LinkedList概要
基于双向链表,主要实现了List和Deque接口,Deque接口继承自Queue,所以LinkedList同时实现了Queue接口
由于其基于双向链表,操作需要操作连接指针数数较多,所以线性操作系数比ArrayList较大
插入删除快,随机访问慢
线程不安全,修改列表结...
分类:
其他好文 时间:
2016-05-18 18:23:00
阅读次数:
172