public class Versions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Versions.DocIdAndVersion
Wraps an
AtomicReaderContext , a doc ID relative to the context doc base and a version. |
Modifier and Type | Field and Description |
---|---|
static long |
MATCH_ANY |
static long |
MATCH_ANY_PRE_1_2_0 |
static long |
NOT_FOUND |
static long |
NOT_SET |
Modifier and Type | Method and Description |
---|---|
static Versions.DocIdAndVersion |
loadDocIdAndVersion(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term)
Load the internal doc ID and version for the uid from the reader, returning
null if the uid wasn't found,
a doc ID and a version otherwise, the version being potentially set to
NOT_SET if the uid has no associated version
|
static long |
loadVersion(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term)
|
static long |
readVersion(StreamInput in) |
static long |
readVersionWithVLongForBW(StreamInput in) |
static void |
writeVersion(long version,
StreamOutput out) |
static void |
writeVersionWithVLongForBW(long version,
StreamOutput out) |
public static final long MATCH_ANY
public static final long MATCH_ANY_PRE_1_2_0
public static final long NOT_FOUND
public static final long NOT_SET
public static void writeVersion(long version, StreamOutput out) throws IOException
IOException
public static long readVersion(StreamInput in) throws IOException
IOException
public static void writeVersionWithVLongForBW(long version, StreamOutput out) throws IOException
IOException
public static long readVersionWithVLongForBW(StreamInput in) throws IOException
IOException
public static Versions.DocIdAndVersion loadDocIdAndVersion(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term) throws IOException
NOT_SET
if the uid has no associated version
IOException
public static long loadVersion(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term) throws IOException
IOException
Copyright © 2009–2015. All rights reserved.