public class JdbmTable<K,V> extends org.apache.directory.server.xdbm.AbstractTable<K,V>
| Constructor and Description |
|---|
JdbmTable(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
String name,
int numDupLimit,
jdbm.RecordManager manager,
Comparator<K> keyComparator,
Comparator<V> valueComparator,
jdbm.helper.Serializer keySerializer,
jdbm.helper.Serializer valueSerializer)
Creates a Jdbm BTree based tuple Table abstraction that enables
duplicates.
|
JdbmTable(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
String name,
jdbm.RecordManager manager,
Comparator<K> keyComparator,
jdbm.helper.Serializer keySerializer,
jdbm.helper.Serializer valueSerializer)
Creates a Jdbm BTree based tuple Table abstraction without duplicates
enabled using a simple key comparator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.directory.server.core.api.partition.PartitionTxn transaction) |
long |
count(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key) |
org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,V>> |
cursor() |
org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,V>> |
cursor(org.apache.directory.server.core.api.partition.PartitionTxn partitionTxn,
K key) |
V |
get(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key) |
org.apache.directory.server.core.avltree.Marshaller<org.apache.directory.server.core.avltree.ArrayTree<V>> |
getMarshaller() |
boolean |
has(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key) |
boolean |
has(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key,
V value) |
boolean |
hasGreaterOrEqual(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key) |
boolean |
hasGreaterOrEqual(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key,
V val) |
boolean |
hasLessOrEqual(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key) |
boolean |
hasLessOrEqual(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key,
V val) |
void |
put(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key,
V value) |
void |
remove(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key) |
void |
remove(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key,
V value) |
org.apache.directory.api.ldap.model.cursor.Cursor<V> |
valueCursor(org.apache.directory.server.core.api.partition.PartitionTxn transaction,
K key) |
public JdbmTable(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager, String name, int numDupLimit, jdbm.RecordManager manager, Comparator<K> keyComparator, Comparator<V> valueComparator, jdbm.helper.Serializer keySerializer, jdbm.helper.Serializer valueSerializer) throws IOException
schemaManager - The server schemaManagername - the name of the tablenumDupLimit - the size limit of duplicates before switching to BTrees for values instead of AvlTreesmanager - the record manager to be used for this tablekeyComparator - a key comparatorvalueComparator - a value comparatorkeySerializer - a serializer to use for the keys instead of using
default Java serialization which could be very expensivevalueSerializer - a serializer to use for the values instead of
using default Java serialization which could be very expensiveIOException - if the table's file cannot be createdpublic JdbmTable(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager, String name, jdbm.RecordManager manager, Comparator<K> keyComparator, jdbm.helper.Serializer keySerializer, jdbm.helper.Serializer valueSerializer) throws IOException
schemaManager - The server schemaManagername - the name of the tablemanager - the record manager to be used for this tablekeyComparator - a tuple comparatorkeySerializer - a serializer to use for the keys instead of using
default Java serialization which could be very expensivevalueSerializer - a serializer to use for the values instead of
using default Java serialization which could be very expensiveIOException - if the table's file cannot be createdpublic long count(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic V get(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean hasGreaterOrEqual(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key, V val) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean hasLessOrEqual(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key, V val) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean hasGreaterOrEqual(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean hasLessOrEqual(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean has(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key, V value) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean has(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic void put(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key, V value) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic void remove(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key, V value) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic void remove(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,V>> cursor()
public org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.cursor.Tuple<K,V>> cursor(org.apache.directory.server.core.api.partition.PartitionTxn partitionTxn, K key) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic org.apache.directory.api.ldap.model.cursor.Cursor<V> valueCursor(org.apache.directory.server.core.api.partition.PartitionTxn transaction, K key) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic void close(org.apache.directory.server.core.api.partition.PartitionTxn transaction) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic org.apache.directory.server.core.avltree.Marshaller<org.apache.directory.server.core.avltree.ArrayTree<V>> getMarshaller()
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.