public class IndexFingerprint extends Object implements MapSerializable
Constructor and Description |
---|
IndexFingerprint() |
IndexFingerprint(long maxVersionSpecified) |
Modifier and Type | Method and Description |
---|---|
static int |
compare(IndexFingerprint f1,
IndexFingerprint f2)
returns 0 for equal, negative if f1 is less recent than f2, positive if more recent
|
static IndexFingerprint |
fromObject(Object o)
Create an IndexFingerprint object from a deserialized generic object (Map or NamedList)
|
static IndexFingerprint |
getFingerprint(SolrCore core,
long maxVersion)
Opens a new realtime searcher and returns it's (possibly cached) fingerprint
|
static IndexFingerprint |
getFingerprint(SolrIndexSearcher searcher,
LeafReaderContext ctx,
Long maxVersion) |
long |
getMaxDoc() |
long |
getMaxInHash() |
long |
getMaxVersionEncountered() |
long |
getMaxVersionSpecified() |
long |
getNumDocs() |
long |
getNumVersions() |
long |
getVersionsHash() |
static IndexFingerprint |
reduce(IndexFingerprint acc,
IndexFingerprint f2) |
Map<String,Object> |
toMap(Map<String,Object> map) |
String |
toString() |
public IndexFingerprint()
public IndexFingerprint(long maxVersionSpecified)
public long getMaxVersionSpecified()
public long getMaxVersionEncountered()
public long getMaxInHash()
public long getVersionsHash()
public long getNumVersions()
public long getNumDocs()
public long getMaxDoc()
public static IndexFingerprint getFingerprint(SolrCore core, long maxVersion) throws IOException
IOException
public static IndexFingerprint getFingerprint(SolrIndexSearcher searcher, LeafReaderContext ctx, Long maxVersion) throws IOException
IOException
public static IndexFingerprint reduce(IndexFingerprint acc, IndexFingerprint f2)
public static int compare(IndexFingerprint f1, IndexFingerprint f2)
public Map<String,Object> toMap(Map<String,Object> map)
toMap
in interface MapSerializable
public static IndexFingerprint fromObject(Object o)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.