
深入lucene 3.5源码
文章平均质量分 69
deepfuture
这个作者很懒,什么都没留下…
展开
-
LucenePackage 包获取当前lucene包信息
package org.apache.lucene; /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for add...原创 2012-03-21 11:16:51 · 109 阅读 · 0 评论 -
lucene的until包当前lucene的版本号
首先介绍一下Java中枚举实现: public enum Color{ RED,BLUE,BLACK,YELLOW,GREEN } 显然,enum很像特殊的class,实际上enum声明定义的类型就是一个类。 而这些类都是类库中Enum类的子类(java.lang.Enum)。它们继承了这个Enum中的许多有用的方法 我们可以如下定义枚举常量(实质是一个类对象) ...2012-03-21 11:54:39 · 261 阅读 · 0 评论 -
lucene3.5之StringInterner
首先讲解关于java的intern public String intern()返回字符串对象的规范化表示形式。 一个初始时为空的字符串池,它由类 String 私有地维护。 当调用 intern 方法时,如果池已经包含一个等于此 String 对象的字符串(该对象由 equals(Object) 方法确定),则返回池中的字符串。否则,将此 String 对象添加到池中,并且返回此 ...原创 2012-03-21 12:15:36 · 132 阅读 · 0 评论 -
lucene3.5之StringHelper
这个类主要是完成2个功能: 1、版本号比较 2、生成字符串实例 package org.apache.lucene.util; import java.util.Comparator; import java.util.StringTokenizer; /** * Licensed to the Apache Software Foundation (ASF) under ...2012-03-21 14:54:40 · 124 阅读 · 0 评论 -
lucene3.5之ToStringUtils
package org.apache.lucene.util; /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work fo...2012-03-22 17:25:40 · 87 阅读 · 0 评论 -
lucene 3.5之SimpleStringInterner
public class SimpleStringInterner extends StringInterner 可看出SimpleStringInterner提供一个简单的字符串引用缓存,节约内存,保证同一值的字符串使用同一段内存空间,因为使用了intern,所以继承自StringInterner package org.apache.lucene.util; /** * Lice...2012-03-23 10:25:00 · 102 阅读 · 0 评论 -
lucene3.5之SmallFloat
package org.apache.lucene.util; /** * Copyright 2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in c...2012-03-26 09:21:01 · 190 阅读 · 0 评论 -
lucene3.5之Bits
package org.apache.lucene.util; /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work fo...2012-03-27 17:23:08 · 117 阅读 · 0 评论 -
pb串口编程
powerbuilder串口编程的实现 因公司软件产品需要和POS机进行通信,所以笔者研究了一下PB串口编程的实现方式。 PB是一个非常好的数据库管理系统的开发工具,但在web和计算机接口通信等方面PB就不是很好用了。幸好我们有ole和com这些很牛的技术,可以让我们非常容易的使用一些组件的功能,而不用自己去开发去关心底层的业务逻辑。使用PB进行串口编程有两种途径,一种是使用微软提...原创 2013-03-21 16:08:47 · 459 阅读 · 0 评论