Package org.apache.solr.update
Class IndexFingerprint
java.lang.Object
org.apache.solr.update.IndexFingerprint
- All Implemented Interfaces:
org.apache.solr.common.MapWriter,org.apache.solr.common.NavigableObject,org.noggit.JSONWriter.Writable
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
org.apache.solr.common.MapWriter.EntryWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompare(IndexFingerprint f1, IndexFingerprint f2) returns 0 for equal, negative if f1 is less recent than f2, positive if more recentbooleanstatic IndexFingerprintfromObject(Object o) Create an IndexFingerprint object from a deserialized generic object (Map or NamedList)static IndexFingerprintgetFingerprint(SolrCore core, long maxVersion) Opens a new realtime searcher and returns it's (possibly cached) fingerprintstatic IndexFingerprintgetFingerprint(SolrIndexSearcher searcher, org.apache.lucene.index.LeafReaderContext ctx, Long maxVersion) longlonglonglonglonglonglonginthashCode()static IndexFingerprintreduce(IndexFingerprint acc, IndexFingerprint f2) toString()voidwriteMap(org.apache.solr.common.MapWriter.EntryWriter ew) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.solr.common.MapWriter
jsonStr, writeMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
Constructor Details
-
IndexFingerprint
public IndexFingerprint() -
IndexFingerprint
public IndexFingerprint(long maxVersionSpecified)
-
-
Method Details
-
getMaxVersionSpecified
public long getMaxVersionSpecified() -
getMaxVersionEncountered
public long getMaxVersionEncountered() -
getMaxInHash
public long getMaxInHash() -
getVersionsHash
public long getVersionsHash() -
getNumVersions
public long getNumVersions() -
getNumDocs
public long getNumDocs() -
getMaxDoc
public long getMaxDoc() -
getFingerprint
Opens a new realtime searcher and returns it's (possibly cached) fingerprint- Throws:
IOException
-
getFingerprint
public static IndexFingerprint getFingerprint(SolrIndexSearcher searcher, org.apache.lucene.index.LeafReaderContext ctx, Long maxVersion) throws IOException - Throws:
IOException
-
reduce
-
compare
returns 0 for equal, negative if f1 is less recent than f2, positive if more recent -
writeMap
- Specified by:
writeMapin interfaceorg.apache.solr.common.MapWriter- Throws:
IOException
-
fromObject
Create an IndexFingerprint object from a deserialized generic object (Map or NamedList) -
toString
-
equals
-
hashCode
public int hashCode()
-