Class Schema
java.lang.Object
org.apache.pulsar.common.api.proto.Schema
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllProperties
(Iterable<KeyValue> properties) clear()
getName()
int
getPropertyAt
(int idx) byte[]
int
io.netty.buffer.ByteBuf
int
getType()
boolean
hasName()
boolean
boolean
hasType()
void
parseFrom
(byte[] a) void
parseFrom
(io.netty.buffer.ByteBuf _buffer, int _size) setSchemaData
(byte[] schemaData) setSchemaData
(io.netty.buffer.ByteBuf schemaData) setType
(Schema.Type type) byte[]
int
writeTo
(io.netty.buffer.ByteBuf _b)
-
Constructor Details
-
Schema
public Schema()
-
-
Method Details
-
hasName
public boolean hasName() -
getName
-
setName
-
clearName
-
hasSchemaData
public boolean hasSchemaData() -
getSchemaDataSize
public int getSchemaDataSize() -
getSchemaData
public byte[] getSchemaData() -
getSchemaDataSlice
public io.netty.buffer.ByteBuf getSchemaDataSlice() -
setSchemaData
-
setSchemaData
-
clearSchemaData
-
hasType
public boolean hasType() -
getType
-
setType
-
clearType
-
getPropertiesCount
public int getPropertiesCount() -
getPropertyAt
-
getPropertiesList
-
addProperty
-
addAllProperties
-
clearProperties
-
writeTo
public int writeTo(io.netty.buffer.ByteBuf _b) -
getSerializedSize
public int getSerializedSize() -
parseFrom
public void parseFrom(io.netty.buffer.ByteBuf _buffer, int _size) -
clear
-
copyFrom
-
toByteArray
public byte[] toByteArray() -
parseFrom
public void parseFrom(byte[] a)
-