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
public class VersionedData extends Object implements org.apache.solr.common.MapWriter
Immutable representation of binary data with version.
-
-
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(org.apache.solr.common.MapWriter.EntryWriter ew)
-
-
-
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(org.apache.solr.common.MapWriter.EntryWriter ew) throws IOException
- Specified by:
writeMap
in interfaceorg.apache.solr.common.MapWriter
- Throws:
IOException
-
-