public class MavibotParentIdAndRdnSerializer extends org.apache.directory.mavibot.btree.serializer.AbstractElementSerializer<ParentIdAndRdn>
| Constructor and Description |
|---|
MavibotParentIdAndRdnSerializer()
Creates a new instance of ParentIdAndRdnSerializer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ParentIdAndRdn type1,
ParentIdAndRdn type2) |
ParentIdAndRdn |
deserialize(org.apache.directory.mavibot.btree.serializer.BufferHandler bufferHandler)
Deserialize a ParentIdAndRdn.
|
ParentIdAndRdn |
deserialize(ByteBuffer buffer) |
ParentIdAndRdn |
fromBytes(byte[] buffer) |
ParentIdAndRdn |
fromBytes(byte[] buffer,
int pos) |
Comparator<ParentIdAndRdn> |
getComparator() |
Class<?> |
getType() |
byte[] |
serialize(ParentIdAndRdn parentIdAndRdn)
This is the place where we serialize ParentIdAndRdn.
|
static void |
setSchemaManager(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager) |
public MavibotParentIdAndRdnSerializer()
setSchemaManager(SchemaManager)public byte[] serialize(ParentIdAndRdn parentIdAndRdn)
public ParentIdAndRdn deserialize(org.apache.directory.mavibot.btree.serializer.BufferHandler bufferHandler) throws IOException
bytes - the byte array containing the serialized ParentIdAndRdnIOException - if we can't deserialize the ParentIdAndRdnpublic ParentIdAndRdn deserialize(ByteBuffer buffer) throws IOException
IOExceptionpublic int compare(ParentIdAndRdn type1, ParentIdAndRdn type2)
compare in interface org.apache.directory.mavibot.btree.serializer.ElementSerializer<ParentIdAndRdn>compare in class org.apache.directory.mavibot.btree.serializer.AbstractElementSerializer<ParentIdAndRdn>public Comparator<ParentIdAndRdn> getComparator()
getComparator in interface org.apache.directory.mavibot.btree.serializer.ElementSerializer<ParentIdAndRdn>getComparator in class org.apache.directory.mavibot.btree.serializer.AbstractElementSerializer<ParentIdAndRdn>public static void setSchemaManager(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
public ParentIdAndRdn fromBytes(byte[] buffer) throws IOException
IOExceptionpublic ParentIdAndRdn fromBytes(byte[] buffer, int pos) throws IOException
IOExceptionpublic Class<?> getType()
getType in interface org.apache.directory.mavibot.btree.serializer.ElementSerializer<ParentIdAndRdn>getType in class org.apache.directory.mavibot.btree.serializer.AbstractElementSerializer<ParentIdAndRdn>Copyright © 2021. All rights reserved.