自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

K.Sun

用最简单的文字解释问题,用最少的步骤解决问题!

  • 博客(19)
  • 资源 (8)
  • 收藏
  • 关注

原创 整数转换中英文形式

前段时间参加了兴业银行信息科技部的面试,第一场是上机笔试,前面的题目不知道是啥,随便乱选,真不明白他们搞这样的笔试意义何在。最后两道是编程题,其中一个是数字转换,当时匆匆忙忙也没写好,今天闲下来了,随便写了些,并写了中英文转换两个版本。思路是这样的,假如有1234567890这么一个数字,那么中文的形式是这样的:1234567890=(12)億+(3456)万+(7890)那么英文形式是这样的:12

2017-07-11 14:11:06 553

翻译 《Hadoop生态》——第二章 数据库与数据管理——Spark SQL (formerly Shark)

Spark SQL 许可证: Apache License, Version 2.0 活跃度: 高 目的: SQL访问Hadoop数据 官方地址: http://spark.apache.org/sql/ Hadoop集成: API兼容如果你需要SQL来访问数据而且Hive又表现得不是那么好,而且你也愿意用Spark环境,那么你就应该考虑下 Spark SQL。Spark中

2017-07-09 14:31:10 357

翻译 《Hadoop生态》——第二章 数据库与数据管理——Hive

Hive 许可证: Apache License, Version 2.0 活跃度: 高 目的: 数据交互 官方地址: http://hive.apache.org Hadoop集成: 完全集成首先所有对在Hadoop集群上数据的访问都是通过用Java写的MapReduce任务完成的。当所有的Hadoop用户有了一个比较稳定的Java牛人团队的时候,这个在Hadoop发展初

2017-07-09 13:21:17 453

翻译 《Hadoop生态》——第二章 数据库与数据管理——MongoDB

MongoDB![这里写图片描述](http://img.blog.csdn.net/20170708181117310?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvc2luYXRfMzYyNDYzNzE=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEas

2017-07-08 22:36:43 319

翻译 《Hadoop生态》——第二章 数据库与数据管理——Solr

Solr 许可证: Apache License, Version 2.0 活跃度: 高 目的: 文档仓库 官方地址: https://lucene.apache.org/solr Hadoop集成: API兼容有时候你只是想从一大堆文档中做查询。但是不是所有的任务都得对PB级的数据做大型复杂的分析。对于大多数情况,你可能觉得对于一个简单的Unix grep命令或者Wi

2017-07-08 17:38:22 339

翻译 《Hadoop生态》——第二章 数据库与数据管理——Blur

Blur 许可证: Apache License, Version 2.0 活跃度: 中 目的: 文档仓库 官方地址: https://incubator.apache.org/blur Hadoop集成: 完全集成假设你在Hadoop已经保存了大量的数据。你已经用Flume对数据做了整理并放在HDFS中,MapReduce的任务就是将数据进行转换并建立key-valu

2017-07-08 16:25:50 356

翻译 《Hadoop生态》——第二章 数据库与数据管理——Memcached

Memcached 许可证: Revised BSD License 活跃度: 中 目的: 内存缓存 官方地址: http://memcached.org Hadoop集成: 无集成你完全有可能遇到这种情景,你需要在很短的时间内访问大量的数据。例如,假设你想要给你的客户发送一封邮件,并期望他们能够了解你在你产品中添加的新特征,但是你也需要是一些你这个月已经联系过但是不包

2017-07-06 18:17:32 253

翻译 《Hadoop生态》——第二章 数据库与数据管理——Accumulo

Accumulo 许可证: Apache License, Version 2.0 活跃度: 高 目的: 带有单元级安全的Name-value数据库 官方地址: https://hbase.apache.org Hadoop集成: 完全集成你有这么一个应用,它可以很好地利用列/name-value存储,就像HBase一样,但是你又有了安全问题;你必须得严格控制那个用户可

2017-07-06 17:14:27 751

翻译 《Hadoop生态》——第二章 数据库与数据管理——HBase

HBase 许可证: Apache License, Version 2.0 活跃度: 高 目的: 可随机访问的NoSQL数据库 官方地址: https://hbase.apache.org Hadoop集成: 完全集成很多情况下你拥有的数据可能是稀疏的。也就是说数据由许多属性,但是每个观察则只有这些属性的少数一部分。例如,你可能想在一个帮助服务台的应用中要一个有各种标

2017-07-06 16:13:14 346

翻译 《Hadoop生态》——第二章 数据库与数据管理——Cassandra

数据库与数据管理如果你计划用Hadoop,那么你要去管理大量的数据的可能性还是很大的,然后要添加到MapReduce任务中,你可能需要某种数据库。自从Google的BigTable出现以来,Hadoop就已经对数据的管理产生了浓厚的兴趣。虽然已经有一些关系型数据库或者与HDFS数据的SQL接口,比如Hive,Hadoop的许多数据管理都是用non-SQL的技术来存储和访问数据。NoSQL的文档列表超

2017-07-06 14:48:30 827

翻译 《Hadoop生态》——第一章 核心技术

第一章 核心技术在2002年,那时候World Wide Web相对还是比较新颖的,而且在用“谷歌”查询东西以前,Doug Cutting和Mike Cafarella想通过爬取网站,并为内容建立索引来建立一个Internet搜索引擎。为了这件事情他们启动了一个叫Nutch的工程,但是这个工程需要一个可伸缩的方法来存储内容的索引。在2002年组织存储数据的标准做法是用关系型数据库管理系统(RDBMS

2017-07-06 14:32:07 483

翻译 Java中的Callable和Future

原文地址:http://www.geeksforgeeks.org/callable-future-java/Callable的用处在Java中创建线程有两种方法——一种是继承Thread类,另一种是实现Runnable接口。但是Runnable没有的一个特点就是它不能在线程结束的时候返回结果,例如当run()结束了。Java中的Callable接口正好支持这个特征。Callable vs Runn

2017-07-06 10:11:47 499

原创 Java中Thread类的start()方法和run()方法

我们知道在Java中可以通过继承一个Thread类来实现一个线程类,继承以后,需要重载run()方法,但是在启动线程的时候则又是用start()方法,这个是几个意思,启动直接用run()不行么,我们试一下。首先还是用start()方法启动线程:public class RunAndStart extends Thread{ @Override public void run() {

2017-07-05 18:29:17 2930

原创 SOAP Web Service与REST Web Service的区别

Web Service曾经也是令多少码农迷恋的技术,目前流行的主要是SOAP和RESTful两种类型的WS,那这两种类型到底有啥区别呢?SOAP是一种协议,REST是一种架构风格;SOAP是简单对象访问协议(Simple Object Access Protocol),REST代表的是表现层状态转换(REpresentational State Transfer);SOAP不能用REST因为它

2017-07-05 16:30:55 913

翻译 Java中阻止线程执行的方法

原文地址:http://www.geeksforgeeks.org/java-concurrency-yield-sleep-and-join-methods/我们可以通过Thread类中的下面几个方法阻止线程的执行。yield()假设有三个线程t1,t2和t3。线程t1得到了处理器并且开始执行,线程t2和t3在等待/可执行状态。t1需要5小时可以完成,t2需要5分钟可以完成。因为t1在5个小时以后

2017-07-05 13:56:47 1978

翻译 Java中的Main线程

原文地址:http://www.geeksforgeeks.org/main-thread-java/Java对多线程编程提供了内置的支持。一个多线程程序可以包含两个或者更多的并发部分。每一部分都称为一个线程,而且每个线程都定义为一个独立的执行路径。Main Thread当一个Java程序启动以后,有一个线程就会立马跑起来。这就是通常所说的Main线程,因为当我的程序一启动,它就开始执行了。属性大

2017-07-05 11:22:46 8897 3

翻译 Java中的多线程

原文地址:http://www.geeksforgeeks.org/multithreading-in-java/多线程是Java的一个特征,它允许执行程序的两个或者更多的部分以使CPU利用最大化。程序的每个部分都称为线程。所以说线程是轻量级的进程。线程可以通过两种机制来创建:继承Thread类实现Runnable接口通过继承Thread类创建线程我们创建一个继承于java.lang.Thre

2017-07-05 10:16:53 252

原创 Java中的字符串翻转

字符串翻转操作是再常见不过的问题了,C/C++中实际上就是操作字符数组,那么在Java中貌似不是直接就可以搞定的。既然不能直接搞定,那么就是可以间接搞定,间接搞定意思就是先把原字符串转换为数组的形式,然后再前后做调换:public class ReverseString { public static String swap1(String s) { byte[] byteA

2017-07-04 09:45:00 435

原创 Java中下划线用于表示数字

今天发现一个Java中表示数字的特殊用法,第一次发现下划线‘_’竟然能用于表示数据,看代码:public class UsingUnderscoreInNumericLiterals { public static void main(String[] args) { int int_num = 1_00_00_000; System.out.println(

2017-07-03 22:06:11 10288 8

Spring Data

As a developer of Java enterprise applications, you can choose among several data access frameworks when working with relational databases. But what do you turn to when working with newer technologies such as NoSQL databases and Hadoop? This book shows you how Spring's data access framework can help you connect to either non-relational or relational databases, or a combination of the two. You'll learn how Spring Data's familiar and consistent programming model greatly reduces the learning curve for creating applications with newer data access technologies. And you'll discover how to use Spring Data's improved JPA and JDBC support to increase your productivity when writing RDBMS-based data access layers. Relational database technologies continue to be predominant in the enterprise, but they're no longer considered a 'one size fits all' solution. This book shows you how to increase your options.

2017-10-05

OSGi in Action

HIGHLIGHT OSGi in Action is the definitive guide to OSGi, the hottest technology available for creating modular enterprise Java applications. DESCRIPTION What is OSGi? Simply put, OSGi is a standardized technology that allows developers to create the highly modular Java applications that are required for enterprise development. OSGi lets you install, start, stop, update, or uninstall components without taking down your entire system. The interest in OSGibased applications has exploded since major vendors like Sun, Spring, Oracle, BEA, and IBM have gotten behind the standard. OSGi in Action is a comprehensive guide to OSGi with two primary goals. First, it provides a clear introduction to OSGi concepts with examples that are relevant both for architects and developers. Then, it explores numerous practical scenarios and techniques, answering questions like: How much of OSGi do you actually need? How do you embed OSGi inside other containers? What are the best practices for moving legacy systems to OSGi? KEY POINTS Highly-visible authors and reviewers are core members of OSGI community. This book is based on hands-on experience with OSGI. Authors have contributed to high-profile OSGi implementations, including Apache Felix.

2017-10-05

C++编程思想 两卷合订本

(美)Bruce Eckel 著 刘宗田 袁兆山 潘秋菱 等译

2017-10-01

iOS编程 第四版

作者[美] Christian Keur / [美] Aaron Hillegass / [美] Joe Conway

2017-10-01

apt-mirror-api-0.1.jar

Files contained in apt-mirror-api-0.1.jar: META-INF/MANIFEST.MF META-INF/maven/com.moparisthebest.aptIn16/apt-mirror-api/pom.properties META-INF/maven/com.moparisthebest.aptIn16/apt-mirror-api/pom.xml com.sun.mirror.apt.AnnotationProcessor.class com.sun.mirror.apt.AnnotationProcessorEnvironment.class com.sun.mirror.apt.AnnotationProcessorFactory.class com.sun.mirror.apt.AnnotationProcessorListener.class com.sun.mirror.apt.AnnotationProcessors.class com.sun.mirror.apt.Filer.class com.sun.mirror.apt.Messager.class com.sun.mirror.apt.RoundCompleteEvent.class com.sun.mirror.apt.RoundCompleteListener.class com.sun.mirror.apt.RoundState.class com.sun.mirror.declaration.AnnotationMirror.class com.sun.mirror.declaration.AnnotationTypeDeclaration.class com.sun.mirror.declaration.AnnotationTypeElementDeclaration.class com.sun.mirror.declaration.AnnotationValue.class com.sun.mirror.declaration.ClassDeclaration.class com.sun.mirror.declaration.ConstructorDeclaration.class com.sun.mirror.declaration.Declaration.class com.sun.mirror.declaration.EnumConstantDeclaration.class com.sun.mirror.declaration.EnumDeclaration.class com.sun.mirror.declaration.ExecutableDeclaration.class com.sun.mirror.declaration.FieldDeclaration.class com.sun.mirror.declaration.InterfaceDeclaration.class com.sun.mirror.declaration.MemberDeclaration.class com.sun.mirror.declaration.MethodDeclaration.class com.sun.mirror.declaration.Modifier.class com.sun.mirror.declaration.PackageDeclaration.class com.sun.mirror.declaration.ParameterDeclaration.class com.sun.mirror.declaration.TypeDeclaration.class com.sun.mirror.declaration.TypeParameterDeclaration.class com.sun.mirror.type.AnnotationType.class com.sun.mirror.type.ArrayType.class com.sun.mirror.type.ClassType.class com.sun.mirror.type.DeclaredType.class com.sun.mirror.type.EnumType.class com.sun.mirror.type.InterfaceType.class com.sun.mirror.type.MirroredTypeException.class com.sun.mirror.type.MirroredTypesException.class com.sun.mirror.type.PrimitiveType.class com.sun.mirror.type.ReferenceType.class com.sun.mirror.type.TypeMirror.class com.sun.mirror.type.TypeVariable.class com.sun.mirror.type.VoidType.class com.sun.mirror.type.WildcardType.class com.sun.mirror.util.DeclarationFilter.class com.sun.mirror.util.DeclarationScanner.class com.sun.mirror.util.DeclarationVisitor.class com.sun.mirror.util.DeclarationVisitors.class com.sun.mirror.util.Declarations.class com.sun.mirror.util.SimpleDeclarationVisitor.class com.sun.mirror.util.SimpleTypeVisitor.class com.sun.mirror.util.SourceOrderDeclScanner.class com.sun.mirror.util.SourcePosition.class com.sun.mirror.util.TypeVisitor.class com.sun.mirror.util.Types.class

2016-11-15

《Java编程思想 第四版》源码

《Java编程思想 第四版》源码

2016-11-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除