rabbitmq实现高吞吐量的rpc调用 importcom.rabbitmq.client.Channel;importcom.rabbitmq.client.Connection;for(inti=0;importcom.rabbitmq.client.Connection; zhaijunliang00 2016-10-09 14:03:48
HBase HMerge源代码阅读和修改 importorg.apache.hadoop.fs.Path;importorg.apache.hadoop.hbase.HConstants;importorg.apache.hadoop.hbase.HRegionInfo;if(! yixiaoqi00 2011-11-14 17:57:20
Hbase HLog源代码阅读笔记 this.enabled){ return;} if(!this.writer.append(newHLog.Entry(logKey,logEdit));this.numEntries.incrementAndGet();if(seq! XiaoM 2011-11-03 15:23:48
rabbitmq 学习-10-channel 说明 //关闭channel,closeCode=com.rabbitmq.client.AMQP#REPLY_SUCCESS,closeMessage='OK' voidclose()throwsIOException; wubinbaoyi 2012-07-06 15:56:39
Lucene中的自定义排序功能 importorg.apache.lucene.search.ScoreDocComparator;importorg.apache.lucene.search.SortField;packagecom.nikee.lucene; exitzhang 2011-04-07 09:03:17
HTTP请求范例 urlConnection.setDoOutput(true);httpResponser.urlString=urlString;httpResponser.method=urlConnection.getRequestMethod(); 81550392 2013-05-24 18:42:48
java中利用dom4j对XML文档的创建、解析、查找、修改、保存等操作 import java.io.File;import org.dom4j.Element;System.out.println(list.getName());System.out.println(list.getName());} } rugl 2011-02-21 13:18:58
rabbitmq 学习-13- 发送接收消息示例-2 System.out.println("exchange:"+exchange);System.out.println("routingKey:"+routingKey);} });channel.queueDeclare(queue); 不忘初心砥砺前行 2012-07-06 15:12:53
freemarker 初步认识 importfreemarker.template.Configuration;importfreemarker.template.Template;importfreemarker.template.TemplateException; 89570691 2011-12-05 15:43:57
[zz]学习lucene应该多看源代码 =null&&max!} publicvoidsearch(Queryquery,Collectorresults) throwsIOException{ search(createWeight(query),null,results); xiaoxiaoabc 2010-08-31 12:49:16
IO流上:概述、字符流、缓冲区 fw.close();fr.close();fr.close();fw.close();4.关闭资源。in.close();} fr.close();fw.close();} brw.close();//刷新缓冲区 bfw.close(); BitTigerio 2018-02-04 10:10:33
Httpclient 设置域名指向ip的两种方式 httpClientBuilder.setDefaultCookieStore(cookieStore);//} CloseableHttpClientclient=httpClientBuilder.build();if(entity!} guoscy 2017-07-20 00:07:14
一个简单的用户口令验证机制 importjava.io.IOException;importjavax.security.auth.callback.Callback;importjavax.security.auth.callback.Callback;} } jacky的部落 2008-03-19 12:44:48
HTML压缩(JSP的GZIP实现)【转】 不清楚如何配置哦!=null&&encoding.indexOf("gzip")!=-1){ request.setHeader("Content-Encoding","gzip");importjavax.servlet.Filter; zhangpeng 2011-05-10 11:01:49
hadoop0.18.3 到 0.20.2 importorg.apache.hadoop.io.IntWritable;importorg.apache.hadoop.io.IntWritable;importorg.apache.hadoop.io.IntWritable; NeboFeng 2011-07-01 11:18:43
正则表达试代码统计小工具 line.endsWith("*/")){ commentLines++;}elseif(line.startsWith("/*")&&line.endsWith("*/")){ commentLines++;br=null;} } } alipro 2011-09-16 07:36:14
Android开发——OKHttp用法详解 msg.obj=res;importcom.squareup.okhttp.Callback;importcom.squareup.okhttp.OkHttpClient;importcom.squareup.okhttp.Request; jackeysion 2015-10-14 14:08:07
[转发]Hadoop MapReduce程序编写备忘 conf.setMapperClass(MOMap.class);conf.setReducerClass(MOReduce.class);!!!!!!extendsInputFormat>inputFormatClass,Class<? Harper 2012-06-04 08:27:03
HttpClientUtil importorg.apache.http.HttpEntity;importorg.apache.http.HttpStatus;importorg.apache.http.protocol.HTTP;Stringresult=null; chenhualeguan 2015-06-30 14:45:42
一段获取ip所在地的java代码 importjava.io.IOException;importorg.apache.http.HttpEntity;importorg.apache.http.client.HttpClient;)\\s*?</ip>",result); dinux 2011-08-21 19:20:41