Wesley13 Wesley13
3年前
java 数据结构(十二):Collections工具类的使用
Collections工具类1.作用:操作Collection和Map的工具类2.常用方法:reverse(List):反转List中元素的顺序shuffle(List):对List集合元素进行随机排序sort(List):根据元素的自然顺序对指定List集合元素升序排序sort(List,Comparator)
Stella981 Stella981
3年前
GraphLab与Pregel对比
一、GraphLab示例1:GraphLab完成对V0邻接顶点的求和计算!(http://static.oschina.net/uploads/img/201511/01234613_w53B.png)示例中,需要完成对V0邻接顶点的求和计算,串行实现中,V0对其所有的邻接点进行遍历,累加求和。而GraphLab中,将顶
Stella981 Stella981
3年前
Native memory allocation (mmap) failed to map xxx bytes for committing reserved memory
<divid"content\_views"class"markdown\_views"<!flowchart箭头图标勿删<svgxmlns"http://www.w3.org/2000/svg"style"display:none;"<pathstrokelinecap"round"d"M5,00,
Stella981 Stella981
3年前
Python中的list详解
Python中内置的一种数据类型list,列表。list是一个有序集合,所谓有序集合就是可以通过Key或者Index进行访问(无序集合,集合的元素只能遍历,比如set)。list能随时随地进行增加和删除。python中list用\\进行表示。例如:\\\friends\'fanbinbin','libinbin','xijin
Wesley13 Wesley13
3年前
Java集合面试题
CollectionSet和hashCode以及equals方法的联系Set内存放的元素为什么不可以重复,内部是如何保证和实现的?List和Set区别List和Map区别Arraylist与LinkedList区别ArrayList与Vector区别Arraylist与LinkedList默认空间是
Stella981 Stella981
3年前
Hadoop(十四)——hadoop之MapReduce理论篇(五)——MapReduce详细工作流程
一、Shuffle机制Mapreduce确保每个reducer的输入都是按键排序的。系统执行排序的过程(即将map输出作为输入传给reducer)称为shuffle。二、MapReduce工作流程1.图示流程!(https://oscimg.oschina.net/oscnet/b44af54dac168
Stella981 Stella981
3年前
GROOVY预览
1.Groovy中的闭包Java的一些不足可以通过使用groovy的闭包很好的解决,通过下面这个例子来看看使用闭包的优势:在Java中遍历一个集合的方法是使用迭代,就像下面这样:defacoll"Groovy","Java","Ruby"for(Iteratoriteracoll.iterator()
Stella981 Stella981
3年前
CitrusEngine系列教程六:使用Tiled Map Editor创建地图
作者:cls分享站(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.chenlinsheng.com%2F)目前已有教程:1. CitrusEngine系列教程一:认识CitrusEngine(https://www.oschina.net/action/GoToL
Stella981 Stella981
3年前
Map在Java 8中增加非常实用哪些函数接口?
!(https://oscimg.oschina.net/oscnet/7c38c1e26ad047b084fca9efc096a9a0.png)Map中的新方法相比 Collection(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fmp.
Wesley13 Wesley13
3年前
Java 8 中 Map 骚操作之 merge() 的用法分析
!(https://oscimg.oschina.net/oscnet/985add53402ea3e94310daaf1539cd50929.jpg)Java8最大的特性无异于更多地面向函数,比如引入了 lambda 等,可以更好地进行函数式编程。前段时间无意间发现了 map.merge() 方法,感觉还是很好用的,此文简单做一