Class VersionedData
- java.lang.Object
-
- org.apache.solr.client.solrj.cloud.autoscaling.VersionedData
-
- All Implemented Interfaces:
MapSerializable
,MapWriter
,NavigableObject
public class VersionedData extends Object implements MapWriter
Immutable representation of binary data with version.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter
-
-
Constructor Summary
Constructors Constructor Description VersionedData(int version, byte[] data, org.apache.zookeeper.CreateMode mode, String owner)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
byte[]
getData()
org.apache.zookeeper.CreateMode
getMode()
String
getOwner()
int
getVersion()
int
hashCode()
String
toString()
void
writeMap(MapWriter.EntryWriter ew)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
-
-
-
-
Constructor Detail
-
VersionedData
public VersionedData(int version, byte[] data, org.apache.zookeeper.CreateMode mode, String owner)
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 Detail
-
getVersion
public int getVersion()
-
getData
public byte[] getData()
-
getMode
public org.apache.zookeeper.CreateMode getMode()
-
getOwner
public String getOwner()
-
writeMap
public void writeMap(MapWriter.EntryWriter ew) throws IOException
- Specified by:
writeMap
in interfaceMapWriter
- Throws:
IOException
-
-