public class IndexFormatVersion extends Object
PROPERTIES_SET
field which contains all property names of
a node. This speeds up queries that check the existence of a property.PROPERTY_LENGTHS
, LOCAL_NAME
and
NAMESPACE_URI
. Furthermore a Payload is added to
PROPERTIES
fields to indicate the property type.Modifier and Type | Field and Description |
---|---|
static IndexFormatVersion |
V1
V1 is the index format for Jackrabbit releases 1.0 to 1.3.x.
|
static IndexFormatVersion |
V2
V2 is the index format for Jackrabbit releases 1.4.x
|
static IndexFormatVersion |
V3
V3 is the index format for Jackrabbit releases >= 1.5
|
Modifier and Type | Method and Description |
---|---|
int |
getVersion()
Returns the index format version
|
static IndexFormatVersion |
getVersion(org.apache.lucene.index.IndexReader indexReader) |
boolean |
isAtLeast(IndexFormatVersion version)
Returns
true if this version is at least as high as the
given version . |
String |
toString() |
public static final IndexFormatVersion V1
public static final IndexFormatVersion V2
public static final IndexFormatVersion V3
public int getVersion()
public boolean isAtLeast(IndexFormatVersion version)
true
if this version is at least as high as the
given version
.version
- the other version to compare.true
if this version is at least as high as the
provided; false
otherwise.public String toString()
public static IndexFormatVersion getVersion(org.apache.lucene.index.IndexReader indexReader)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.