org.apache.lucene.util
Class Version

java.lang.Object
  extended by org.apache.lucene.util.Parameter
      extended by org.apache.lucene.util.Version
All Implemented Interfaces:
Serializable

public final class Version
extends Parameter
implements Serializable

Use by certain classes to match version compatibility across releases of Lucene.

See Also:
Serialized Form

Field Summary
static Version LUCENE_24
          Deprecated. This will be removed in 3.0
static Version LUCENE_29
          Deprecated. This will be removed in 3.0
static Version LUCENE_CURRENT
          Use this to get the latest & greatest settings, bug fixes, etc, for Lucene.
 
Constructor Summary
Version(String name, int v)
           
 
Method Summary
 boolean onOrAfter(Version other)
           
 
Methods inherited from class org.apache.lucene.util.Parameter
readResolve, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LUCENE_CURRENT

public static final Version LUCENE_CURRENT
Use this to get the latest & greatest settings, bug fixes, etc, for Lucene.

WARNING: if you use this setting, and then upgrade to a newer release of Lucene, sizable changes may happen. If precise back compatibility is important then you should instead explicitly specify an actual version.


LUCENE_24

public static final Version LUCENE_24
Deprecated. This will be removed in 3.0
Match settings and bugs in Lucene's 2.4 release.


LUCENE_29

public static final Version LUCENE_29
Deprecated. This will be removed in 3.0
Match settings and bugs in Lucene's 2.9 release.

Constructor Detail

Version

public Version(String name,
               int v)
Method Detail

onOrAfter

public boolean onOrAfter(Version other)


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.