Class VersionedData
java.lang.Object
org.apache.solr.client.solrj.cloud.VersionedData
- All Implemented Interfaces:
org.apache.solr.common.MapSerializable,org.apache.solr.common.MapWriter,org.apache.solr.common.NavigableObject,org.noggit.JSONWriter.Writable
Immutable representation of binary data with version.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
org.apache.solr.common.MapWriter.EntryWriter -
Field Summary
Fields inherited from interface org.apache.solr.common.MapWriter
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionVersionedData(int version, byte[] data, org.apache.zookeeper.CreateMode mode, String owner) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.solr.common.MapWriter
jsonStr, toMap, writeMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
Constructor Details
-
VersionedData
Constructor.- Parameters:
version- version of the data, or -1 if unknowndata- binary data, or null.mode- create modeowner- symbolic identifier of data owner / creator, or null.
-
-
Method Details
-
getVersion
public int getVersion() -
getData
public byte[] getData() -
getMode
public org.apache.zookeeper.CreateMode getMode() -
getOwner
-
writeMap
- Specified by:
writeMapin interfaceorg.apache.solr.common.MapWriter- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-