Package org.apache.hadoop.hbase
Class ClusterId
java.lang.Object
org.apache.hadoop.hbase.ClusterId
The identifier for this cluster. It is serialized to the filesystem and up into zookeeper. This
is a container for the id. Also knows how to serialize and deserialize the cluster id.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.shaded.protobuf.generated.ClusterIdProtos.ClusterIdconvert()Returns A pb instance to represent this instance.static ClusterIdconvert(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterIdProtos.ClusterId cid) Returns AClusterIdmade from the passed incidstatic ClusterIdparseFrom(byte[] bytes) Parse the serialized representation of theClusterIdbyte[]Returns The clusterid serialized using pb w/ pb magic prefixtoString()
-
Field Details
-
id
-
-
Constructor Details
-
ClusterId
public ClusterId()New ClusterID. Generates a uniqueid. -
ClusterId
-
-
Method Details
-
toByteArray
Returns The clusterid serialized using pb w/ pb magic prefix -
parseFrom
Parse the serialized representation of theClusterId- Parameters:
bytes- A pb serializedClusterIdinstance with pb magic prefix- Returns:
- An instance of
ClusterIdmade frombytes - Throws:
DeserializationException- See Also:
-
convert
Returns A pb instance to represent this instance. -
convert
public static ClusterId convert(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterIdProtos.ClusterId cid) Returns AClusterIdmade from the passed incid -
toString
-