public class MavibotEntrySerializer extends org.apache.directory.mavibot.btree.serializer.AbstractElementSerializer<org.apache.directory.api.ldap.model.entry.Entry>
| Constructor and Description |
|---|
MavibotEntrySerializer()
Creates a new instance of ServerEntrySerializer.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.api.ldap.model.entry.Entry |
deserialize(org.apache.directory.mavibot.btree.serializer.BufferHandler bufferHandler) |
org.apache.directory.api.ldap.model.entry.Entry |
deserialize(ByteBuffer buffer)
Deserialize a Entry.
|
org.apache.directory.api.ldap.model.entry.Entry |
fromBytes(byte[] buffer) |
org.apache.directory.api.ldap.model.entry.Entry |
fromBytes(byte[] buffer,
int pos) |
Comparator<org.apache.directory.api.ldap.model.entry.Entry> |
getComparator() |
Class<?> |
getType() |
byte[] |
serialize(org.apache.directory.api.ldap.model.entry.Entry entry)
This is the place where we serialize entries, and all theirs
elements. the reason why we don't call the underlying methods
(
ServerAttribute.write(), Value.write()) is that we need
access to the registries to read back the values. |
static void |
setSchemaManager(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager) |
public MavibotEntrySerializer()
setSchemaManager(SchemaManager)public Comparator<org.apache.directory.api.ldap.model.entry.Entry> getComparator()
getComparator in interface org.apache.directory.mavibot.btree.serializer.ElementSerializer<org.apache.directory.api.ldap.model.entry.Entry>getComparator in class org.apache.directory.mavibot.btree.serializer.AbstractElementSerializer<org.apache.directory.api.ldap.model.entry.Entry>public byte[] serialize(org.apache.directory.api.ldap.model.entry.Entry entry)
This is the place where we serialize entries, and all theirs
elements. the reason why we don't call the underlying methods
(ServerAttribute.write(), Value.write()) is that we need
access to the registries to read back the values.
The structure used to store the entry is the following :
public org.apache.directory.api.ldap.model.entry.Entry deserialize(ByteBuffer buffer) throws IOException
buffer - The buffer containing the serialized entryIOException - if we can't deserialize the Entrypublic org.apache.directory.api.ldap.model.entry.Entry deserialize(org.apache.directory.mavibot.btree.serializer.BufferHandler bufferHandler) throws IOException
IOExceptionpublic static void setSchemaManager(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
public org.apache.directory.api.ldap.model.entry.Entry fromBytes(byte[] buffer) throws IOException
IOExceptionpublic org.apache.directory.api.ldap.model.entry.Entry fromBytes(byte[] buffer, int pos) throws IOException
IOExceptionpublic Class<?> getType()
getType in interface org.apache.directory.mavibot.btree.serializer.ElementSerializer<org.apache.directory.api.ldap.model.entry.Entry>getType in class org.apache.directory.mavibot.btree.serializer.AbstractElementSerializer<org.apache.directory.api.ldap.model.entry.Entry>Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.