类 BytesSchemaVersion
java.lang.Object
org.apache.pulsar.common.protocol.schema.BytesSchemaVersion
- 所有已实现的接口:
Comparable<BytesSchemaVersion>,SchemaVersion
public class BytesSchemaVersion
extends Object
implements SchemaVersion, Comparable<BytesSchemaVersion>
Bytes schema version.
-
嵌套类概要
嵌套类修饰符和类型类说明static interfaceThis interface helps to compare byte arrays. -
字段概要
字段修饰符和类型字段说明static final BytesSchemaVersion.ByteArrayComparatorA byte array comparator based on lexicograpic ordering.从接口继承的字段 org.apache.pulsar.common.protocol.schema.SchemaVersion
Empty, Latest -
方法概要
修饰符和类型方法说明byte[]bytes()intcompareTo(BytesSchemaVersion that) booleanbyte[]get()Get the data from the Bytes.inthashCode()The hashcode is cached except for the case where it is computed as 0, in which case we compute the hashcode on every call.static BytesSchemaVersionof(byte[] bytes) toString()
-
字段详细资料
-
BYTES_LEXICO_COMPARATOR
A byte array comparator based on lexicograpic ordering.
-
-
方法详细资料
-
bytes
public byte[] bytes()- 指定者:
bytes在接口中SchemaVersion
-
of
-
get
public byte[] get()Get the data from the Bytes.- 返回:
- The underlying byte array
-
hashCode
public int hashCode()The hashcode is cached except for the case where it is computed as 0, in which case we compute the hashcode on every call. -
equals
-
compareTo
- 指定者:
compareTo在接口中Comparable<BytesSchemaVersion>
-
toString
-