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
bufferHandler
- The buffer containing the serialized ParentIdAndRdnIOException
- if we can't deserialize the ParentIdAndRdnpublic ParentIdAndRdn deserialize(ByteBuffer buffer) throws IOException
IOException
public 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
IOException
public ParentIdAndRdn fromBytes(byte[] buffer, int pos) throws IOException
IOException
public 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 © 2003–2020 The Apache Software Foundation. All rights reserved.