Index

A B C D E F G I L M N O P R S T V 
All Classes and Interfaces|All Packages

A

AbstractPersistentBlockBuffer - Class in com.aoapps.persistence
Base class for any implementation that treats a PersistentBuffer as a set of allocatable blocks.
AbstractPersistentBlockBuffer(PersistentBuffer) - Constructor for class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
AbstractPersistentBuffer - Class in com.aoapps.persistence
Provides a base implementation of PersistentBuffer in terms of basic read/write methods.
AbstractPersistentBuffer(ProtectionLevel) - Constructor for class com.aoapps.persistence.AbstractPersistentBuffer
 
add(int, E) - Method in class com.aoapps.persistence.PersistentLinkedList
 
add(E) - Method in class com.aoapps.persistence.PersistentLinkedList
 
addAll(int, Collection<? extends E>) - Method in class com.aoapps.persistence.PersistentLinkedList
 
addAll(Collection<? extends E>) - Method in class com.aoapps.persistence.PersistentLinkedList
 
addFirst(E) - Method in class com.aoapps.persistence.PersistentLinkedList
Inserts the specified element at the beginning of this list.
addLast(E) - Method in class com.aoapps.persistence.PersistentLinkedList
Appends the specified element to the end of this list.
allocate(long) - Method in class com.aoapps.persistence.DynamicPersistentBlockBuffer
This will call AbstractPersistentBlockBuffer.barrier(boolean) as necessary during block splitting.
allocate(long) - Method in class com.aoapps.persistence.FixedPersistentBlockBuffer
Allocates a block.
allocate(long) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Allocates a new block buffer that is at least as large as the requested space.

B

barrier(boolean) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
barrier(boolean) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
There is not currently a way to provide a barrier without using force.
barrier(boolean) - Method in class com.aoapps.persistence.MappedPersistentBuffer
There is not currently a way to provide a barrier without using force.
barrier(boolean) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Ensures that all writes before this barrier occur before all writes after this barrier.
barrier(boolean) - Method in interface com.aoapps.persistence.PersistentBuffer
Ensures that all writes before this barrier occur before all writes after this barrier.
barrier(boolean) - Method in class com.aoapps.persistence.RandomAccessFileBuffer
There is not currently a way to provide a barrier without using force.
barrier(boolean) - Method in class com.aoapps.persistence.TwoCopyBarrierBuffer
 
BARRIER - Enum constant in enum com.aoapps.persistence.ProtectionLevel
Prevents data corruption, but does not prevent data loss.
BooleanSerializer - Class in com.aoapps.persistence
Serializes Boolean objects.
BooleanSerializer() - Constructor for class com.aoapps.persistence.BooleanSerializer
 
BufferedSerializer<E> - Class in com.aoapps.persistence
BufferedSerializer() - Constructor for class com.aoapps.persistence.BufferedSerializer
 
ByteArraySerializer - Class in com.aoapps.persistence
Serializes byte[] objects.
ByteArraySerializer() - Constructor for class com.aoapps.persistence.ByteArraySerializer
 
ByteSerializer - Class in com.aoapps.persistence
Serializes Byte objects.
ByteSerializer() - Constructor for class com.aoapps.persistence.ByteSerializer
 

C

capacity() - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
capacity() - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
capacity() - Method in interface com.aoapps.persistence.PersistentBuffer
Gets the capacity of this buffer.
capacity() - Method in class com.aoapps.persistence.RandomAccessFileBuffer
 
capacity() - Method in class com.aoapps.persistence.TwoCopyBarrierBuffer
 
CharacterSerializer - Class in com.aoapps.persistence
Serializes Character objects.
CharacterSerializer() - Constructor for class com.aoapps.persistence.CharacterSerializer
 
CharArraySerializer - Class in com.aoapps.persistence
Serializes char[] objects.
CharArraySerializer() - Constructor for class com.aoapps.persistence.CharArraySerializer
 
checkBounds(long, long, long) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
Checks that a request is within the bounds of the block.
checkConsistency(boolean) - Method in class com.aoapps.persistence.PersistentLinkedList
Performs a check that this linked list is in a consistent state, optionally correcting problems that may occur during an unclean shutdown.
clear() - Method in class com.aoapps.persistence.PersistentLinkedList
Clears the list.
close() - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
close() - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
close() - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
close() - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Closes this buffer.
close() - Method in interface com.aoapps.persistence.PersistentBuffer
Closes this buffer.
close() - Method in class com.aoapps.persistence.PersistentLinkedList
Closes the block buffer backing this list.
close() - Method in class com.aoapps.persistence.RandomAccessFileBuffer
 
close() - Method in class com.aoapps.persistence.TwoCopyBarrierBuffer
 
com.aoapps.persistence - module com.aoapps.persistence
 
com.aoapps.persistence - package com.aoapps.persistence
 
contains(Object) - Method in class com.aoapps.persistence.PersistentLinkedList
 

D

deallocate(long) - Method in class com.aoapps.persistence.DynamicPersistentBlockBuffer
 
deallocate(long) - Method in class com.aoapps.persistence.FixedPersistentBlockBuffer
Deallocates the block for the provided id.
deallocate(long) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Deallocates the block with the provided id.
descendingIterator() - Method in class com.aoapps.persistence.PersistentLinkedList
 
deserialize(InputStream) - Method in class com.aoapps.persistence.BooleanSerializer
 
deserialize(InputStream) - Method in class com.aoapps.persistence.ByteArraySerializer
 
deserialize(InputStream) - Method in class com.aoapps.persistence.ByteSerializer
 
deserialize(InputStream) - Method in class com.aoapps.persistence.CharacterSerializer
 
deserialize(InputStream) - Method in class com.aoapps.persistence.CharArraySerializer
 
deserialize(InputStream) - Method in class com.aoapps.persistence.DoubleSerializer
 
deserialize(InputStream) - Method in class com.aoapps.persistence.FloatSerializer
 
deserialize(InputStream) - Method in class com.aoapps.persistence.GZIPSerializer
 
deserialize(InputStream) - Method in class com.aoapps.persistence.IntegerSerializer
 
deserialize(InputStream) - Method in class com.aoapps.persistence.LongSerializer
 
deserialize(InputStream) - Method in class com.aoapps.persistence.ObjectSerializer
 
deserialize(InputStream) - Method in interface com.aoapps.persistence.Serializer
Restores an object from an InputStream.
deserialize(InputStream) - Method in class com.aoapps.persistence.ShortSerializer
 
DoubleSerializer - Class in com.aoapps.persistence
Serializes Double objects.
DoubleSerializer() - Constructor for class com.aoapps.persistence.DoubleSerializer
 
DynamicPersistentBlockBuffer - Class in com.aoapps.persistence
Treats a PersistentBuffer as a set of allocatable blocks.
DynamicPersistentBlockBuffer(PersistentBuffer) - Constructor for class com.aoapps.persistence.DynamicPersistentBlockBuffer
Creates a buffer.

E

element() - Method in class com.aoapps.persistence.PersistentLinkedList
 
ensureCapacity(long) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
Ensures the underlying persistent buffer is of adequate capacity.
ensureCapacity(long) - Method in class com.aoapps.persistence.DynamicPersistentBlockBuffer
The capacity should always be enough because the capacity ensured here is constrained to a single block, and blocks are always allocated fully.
ensureCapacity(long) - Method in class com.aoapps.persistence.FixedPersistentBlockBuffer
This class takes a lazy approach on allocating buffer space.
ensureZeros(long, long) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
ensureZeros(long, long) - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
ensureZeros(long, long) - Method in interface com.aoapps.persistence.PersistentBuffer
Ensures that all values from the position for the provided length are zeros.
ensureZeros(long, long) - Method in class com.aoapps.persistence.RandomAccessFileBuffer
 
ensureZeros(long, long) - Method in class com.aoapps.persistence.TwoCopyBarrierBuffer
 
ensureZeros(RandomAccessFile, long, long) - Static method in class com.aoapps.persistence.PersistentCollections
Writes the requested number of zeros to the provided RandomAccessFile, but only if they do not already contain zeros.
ensureZeros(ByteBuffer, int, int) - Static method in class com.aoapps.persistence.PersistentCollections
Stores the requested number of zeros to the provided ByteBuffer, but only if they do not already contain zeros.
expandCapacity(long, long) - Method in class com.aoapps.persistence.FixedPersistentBlockBuffer
 

F

FixedPersistentBlockBuffer - Class in com.aoapps.persistence
Treats a PersistentBuffer as a set of allocatable blocks.
FixedPersistentBlockBuffer(PersistentBuffer, long) - Constructor for class com.aoapps.persistence.FixedPersistentBlockBuffer
Creates a persistent buffer with the provided block size.
FloatSerializer - Class in com.aoapps.persistence
Serializes Float objects.
FloatSerializer() - Constructor for class com.aoapps.persistence.FloatSerializer
 
FORCE - Enum constant in enum com.aoapps.persistence.ProtectionLevel
Prevents both data corruption and data loss.

G

get(int) - Method in class com.aoapps.persistence.PersistentLinkedList
 
get(long) - Method in class com.aoapps.persistence.AbstractPersistentBuffer
get(long) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
Gets a single byte from the buffer.
get(long) - Method in class com.aoapps.persistence.MappedPersistentBuffer
Gets a single byte from the buffer.
get(long) - Method in interface com.aoapps.persistence.PersistentBuffer
Reads a byte at the provided position.
get(long) - Method in class com.aoapps.persistence.RandomAccessFileBuffer
Gets a single byte from the buffer.
get(long) - Method in class com.aoapps.persistence.TwoCopyBarrierBuffer
 
get(long, byte[], int, int) - Method in class com.aoapps.persistence.AbstractPersistentBuffer
get(long, byte[], int, int) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
get(long, byte[], int, int) - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
get(long, byte[], int, int) - Method in interface com.aoapps.persistence.PersistentBuffer
Reads to the provided byte[], starting at the provided position and for the designated number of bytes.
get(long, long, byte[], int, int) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
get(long, long, byte[], int, int) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Gets bytes from this block.
getBlockAddress(long) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
Gets the address of the block in the underlying persistent buffer.
getBlockAddress(long) - Method in class com.aoapps.persistence.DynamicPersistentBlockBuffer
 
getBlockAddress(long) - Method in class com.aoapps.persistence.FixedPersistentBlockBuffer
Gets the address that stores the beginning of the block with the provided id.
getBlockSize(long) - Method in class com.aoapps.persistence.DynamicPersistentBlockBuffer
Gets the maximum amount of data that may be stored in the entry.
getBlockSize(long) - Method in class com.aoapps.persistence.FixedPersistentBlockBuffer
 
getBlockSize(long) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Gets the block size for the provided id.
getBoolean(long) - Method in class com.aoapps.persistence.AbstractPersistentBuffer
Implemented as call to AbstractPersistentBuffer.get(long).
getBoolean(long) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
getBoolean(long) - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
getBoolean(long) - Method in interface com.aoapps.persistence.PersistentBuffer
Reads a boolean at the provided position, zero is considered false and any non-zero value is true.
getFirst() - Method in class com.aoapps.persistence.PersistentLinkedList
Returns the first element in this list.
getInputStream(long, long) - Method in class com.aoapps.persistence.AbstractPersistentBuffer
getInputStream(long, long) - Method in interface com.aoapps.persistence.PersistentBuffer
Gets an input stream that reads from this buffer.
getInputStream(long, long, long) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
getInputStream(long, long, long) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Gets an input stream that reads from this buffer.
getInt(long) - Method in class com.aoapps.persistence.AbstractPersistentBuffer
getInt(long) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
getInt(long) - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
getInt(long) - Method in interface com.aoapps.persistence.PersistentBuffer
Reads an integer at the provided position.
getInt(long, long) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
getInt(long, long) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Gets an integer from this block.
getLast() - Method in class com.aoapps.persistence.PersistentLinkedList
Returns the last element in this list.
getLong(long) - Method in class com.aoapps.persistence.AbstractPersistentBuffer
getLong(long) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
getLong(long) - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
getLong(long) - Method in interface com.aoapps.persistence.PersistentBuffer
Reads a long at the provided position.
getLong(long, long) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
getLong(long, long) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Gets a long from this block.
getOutputStream(long, long) - Method in class com.aoapps.persistence.AbstractPersistentBuffer
getOutputStream(long, long) - Method in interface com.aoapps.persistence.PersistentBuffer
Gets an output stream that writes to this buffer.
getOutputStream(long, long, long) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
getOutputStream(long, long, long) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Gets an output stream that writes to this buffer.
getPersistentBlockBuffer(Serializer<?>, PersistentBuffer, long) - Static method in class com.aoapps.persistence.PersistentCollections
Gets the most efficient PersistentBlockBuffer for the provided provided Serializer.
getPersistentBuffer(long) - Static method in class com.aoapps.persistence.PersistentCollections
Selects the most efficient temporary PersistentBuffer for the current machine and the provided maximum buffer size.
getPersistentBuffer(RandomAccessFile, ProtectionLevel, long) - Static method in class com.aoapps.persistence.PersistentCollections
Selects the most efficient PersistentBuffer for the current machine and the provided maximum buffer size.
getProtectionLevel() - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
getProtectionLevel() - Method in class com.aoapps.persistence.AbstractPersistentBuffer
 
getProtectionLevel() - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Gets the protection level currently implemented by the buffer.
getProtectionLevel() - Method in interface com.aoapps.persistence.PersistentBuffer
Gets the protection level currently enforced by the buffer.
getSerializedSize(byte[]) - Method in class com.aoapps.persistence.ByteArraySerializer
 
getSerializedSize(char[]) - Method in class com.aoapps.persistence.CharArraySerializer
 
getSerializedSize(E) - Method in class com.aoapps.persistence.BufferedSerializer
 
getSerializedSize(E) - Method in class com.aoapps.persistence.GZIPSerializer
 
getSerializedSize(E) - Method in interface com.aoapps.persistence.Serializer
Determines the size of the object after serialization.
getSerializedSize(Boolean) - Method in class com.aoapps.persistence.BooleanSerializer
 
getSerializedSize(Byte) - Method in class com.aoapps.persistence.ByteSerializer
 
getSerializedSize(Character) - Method in class com.aoapps.persistence.CharacterSerializer
 
getSerializedSize(Double) - Method in class com.aoapps.persistence.DoubleSerializer
 
getSerializedSize(Float) - Method in class com.aoapps.persistence.FloatSerializer
 
getSerializedSize(Integer) - Method in class com.aoapps.persistence.IntegerSerializer
 
getSerializedSize(Long) - Method in class com.aoapps.persistence.LongSerializer
 
getSerializedSize(Short) - Method in class com.aoapps.persistence.ShortSerializer
 
getSerializer(Class<E>) - Static method in class com.aoapps.persistence.PersistentCollections
Selects the most efficient Serializer for the provided class.
getSome(long, byte[], int, int) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
getSome(long, byte[], int, int) - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
getSome(long, byte[], int, int) - Method in interface com.aoapps.persistence.PersistentBuffer
Reads to the provided byte[], may read fewer than len bytes, but will always read at least one byte.
getSome(long, byte[], int, int) - Method in class com.aoapps.persistence.RandomAccessFileBuffer
 
getSome(long, byte[], int, int) - Method in class com.aoapps.persistence.TwoCopyBarrierBuffer
 
GZIPSerializer<E> - Class in com.aoapps.persistence
Wraps a serializer and compresses the data using GZIP.
GZIPSerializer(Serializer<E>) - Constructor for class com.aoapps.persistence.GZIPSerializer
 

I

indexOf(Object) - Method in class com.aoapps.persistence.PersistentLinkedList
 
IntegerSerializer - Class in com.aoapps.persistence
Serializes Integer objects.
IntegerSerializer() - Constructor for class com.aoapps.persistence.IntegerSerializer
 
isClosed() - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
isClosed() - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
isClosed() - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
isClosed() - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Checks if this buffer is closed.
isClosed() - Method in interface com.aoapps.persistence.PersistentBuffer
Checks if this buffer is closed.
isClosed() - Method in class com.aoapps.persistence.RandomAccessFileBuffer
 
isClosed() - Method in class com.aoapps.persistence.TwoCopyBarrierBuffer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.BooleanSerializer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.BufferedSerializer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.ByteArraySerializer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.ByteSerializer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.CharacterSerializer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.CharArraySerializer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.DoubleSerializer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.FloatSerializer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.GZIPSerializer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.IntegerSerializer
 
isFixedSerializedSize() - Method in class com.aoapps.persistence.LongSerializer
 
isFixedSerializedSize() - Method in interface com.aoapps.persistence.Serializer
If a serializer always creates the same number of bytes, containers can choose a fixed-size block for higher performance.
isFixedSerializedSize() - Method in class com.aoapps.persistence.ShortSerializer
 
iterateBlockIds() - Method in class com.aoapps.persistence.DynamicPersistentBlockBuffer
 
iterateBlockIds() - Method in class com.aoapps.persistence.FixedPersistentBlockBuffer
 
iterateBlockIds() - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Iterates over the allocated block IDs in no specific order, with one exception: the first block allocated must be the first block iterated.

L

LargeMappedPersistentBuffer - Class in com.aoapps.persistence
Uses a set of MappedByteBuffer for persistence.
LargeMappedPersistentBuffer() - Constructor for class com.aoapps.persistence.LargeMappedPersistentBuffer
Creates a read-write buffer backed by a temporary file.
LargeMappedPersistentBuffer(File) - Constructor for class com.aoapps.persistence.LargeMappedPersistentBuffer
Creates a read-write buffer with ProtectionLevel.BARRIER protection level.
LargeMappedPersistentBuffer(File, ProtectionLevel) - Constructor for class com.aoapps.persistence.LargeMappedPersistentBuffer
Creates a buffer.
LargeMappedPersistentBuffer(RandomAccessFile, ProtectionLevel) - Constructor for class com.aoapps.persistence.LargeMappedPersistentBuffer
Creates a buffer using the provided RandomAccessFile.
LargeMappedPersistentBuffer(String) - Constructor for class com.aoapps.persistence.LargeMappedPersistentBuffer
Creates a read-write buffer with ProtectionLevel.BARRIER protection level.
LargeMappedPersistentBuffer(String, ProtectionLevel) - Constructor for class com.aoapps.persistence.LargeMappedPersistentBuffer
Creates a buffer.
lastIndexOf(Object) - Method in class com.aoapps.persistence.PersistentLinkedList
 
listIterator(int) - Method in class com.aoapps.persistence.PersistentLinkedList
 
LongSerializer - Class in com.aoapps.persistence
Serializes Long objects.
LongSerializer() - Constructor for class com.aoapps.persistence.LongSerializer
 

M

MappedPersistentBuffer - Class in com.aoapps.persistence
Uses MappedByteBuffer for persistence.
MappedPersistentBuffer() - Constructor for class com.aoapps.persistence.MappedPersistentBuffer
Creates a read-write buffer backed by a temporary file.
MappedPersistentBuffer(File) - Constructor for class com.aoapps.persistence.MappedPersistentBuffer
Creates a read-write buffer with ProtectionLevel.BARRIER protection level.
MappedPersistentBuffer(File, ProtectionLevel) - Constructor for class com.aoapps.persistence.MappedPersistentBuffer
Creates a buffer.
MappedPersistentBuffer(RandomAccessFile, ProtectionLevel) - Constructor for class com.aoapps.persistence.MappedPersistentBuffer
Creates a buffer using the provided RandomAccessFile.
MappedPersistentBuffer(String) - Constructor for class com.aoapps.persistence.MappedPersistentBuffer
Creates a read-write buffer with ProtectionLevel.BARRIER protection level.
MappedPersistentBuffer(String, ProtectionLevel) - Constructor for class com.aoapps.persistence.MappedPersistentBuffer
Creates a buffer.

N

NONE - Enum constant in enum com.aoapps.persistence.ProtectionLevel
Offers no data protection.

O

ObjectSerializer<E> - Class in com.aoapps.persistence
Serializes any Serializable objects.
ObjectSerializer(Class<E>) - Constructor for class com.aoapps.persistence.ObjectSerializer
Creates a new Serializable object serializer.
offer(E) - Method in class com.aoapps.persistence.PersistentLinkedList
 
offerFirst(E) - Method in class com.aoapps.persistence.PersistentLinkedList
 
offerLast(E) - Method in class com.aoapps.persistence.PersistentLinkedList
 

P

pbuffer - Variable in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
peek() - Method in class com.aoapps.persistence.PersistentLinkedList
 
peekFirst() - Method in class com.aoapps.persistence.PersistentLinkedList
 
peekLast() - Method in class com.aoapps.persistence.PersistentLinkedList
 
PersistentBlockBuffer - Interface in com.aoapps.persistence
A persistent set of blocks of arbitrary data.
PersistentBuffer - Interface in com.aoapps.persistence
A persistent buffer retains its data between uses.
PersistentCollections - Class in com.aoapps.persistence
A set of static utility methods to help in the selection, creation, and management of persistent collections.
PersistentLinkedList<E> - Class in com.aoapps.persistence
Serializes and stores objects in a persistent buffer.
PersistentLinkedList(PersistentBuffer, Serializer<E>) - Constructor for class com.aoapps.persistence.PersistentLinkedList
Constructs a list backed by the provided persistent buffer.
PersistentLinkedList(PersistentBuffer, Class<E>) - Constructor for class com.aoapps.persistence.PersistentLinkedList
Constructs a list backed by the provided persistent buffer using the most efficient serialization for the provided type.
PersistentLinkedList(Class<E>) - Constructor for class com.aoapps.persistence.PersistentLinkedList
Constructs a list backed by a temporary file using standard serialization.
PersistentLinkedList(Class<E>, Collection<? extends E>) - Constructor for class com.aoapps.persistence.PersistentLinkedList
Constructs a list with a temporary file using standard serialization containing all of the provided elements.
poll() - Method in class com.aoapps.persistence.PersistentLinkedList
 
pollFirst() - Method in class com.aoapps.persistence.PersistentLinkedList
 
pollLast() - Method in class com.aoapps.persistence.PersistentLinkedList
 
pop() - Method in class com.aoapps.persistence.PersistentLinkedList
 
protectionLevel - Variable in class com.aoapps.persistence.AbstractPersistentBuffer
 
ProtectionLevel - Enum in com.aoapps.persistence
The different protection levels offered.
push(E) - Method in class com.aoapps.persistence.PersistentLinkedList
 
put(long, byte) - Method in class com.aoapps.persistence.AbstractPersistentBuffer
put(long, byte) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
Puts a single byte in the buffer.
put(long, byte) - Method in class com.aoapps.persistence.MappedPersistentBuffer
Puts a single byte in the buffer.
put(long, byte) - Method in interface com.aoapps.persistence.PersistentBuffer
Puts a single value in the buffer.
put(long, byte) - Method in class com.aoapps.persistence.RandomAccessFileBuffer
Puts a single byte in the buffer.
put(long, byte) - Method in class com.aoapps.persistence.TwoCopyBarrierBuffer
 
put(long, byte[], int, int) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
put(long, byte[], int, int) - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
put(long, byte[], int, int) - Method in interface com.aoapps.persistence.PersistentBuffer
Writes the bytes to the provided position.
put(long, byte[], int, int) - Method in class com.aoapps.persistence.RandomAccessFileBuffer
 
put(long, byte[], int, int) - Method in class com.aoapps.persistence.TwoCopyBarrierBuffer
 
put(long, long, byte[], int, int) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
put(long, long, byte[], int, int) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Puts bytes to this block.
putInt(long, int) - Method in class com.aoapps.persistence.AbstractPersistentBuffer
putInt(long, int) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
putInt(long, int) - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
putInt(long, int) - Method in interface com.aoapps.persistence.PersistentBuffer
Writes an integer at the provided position.
putInt(long, long, int) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
putInt(long, long, int) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Puts an integer to this block.
putLong(long, long) - Method in class com.aoapps.persistence.AbstractPersistentBuffer
putLong(long, long) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
putLong(long, long) - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
putLong(long, long) - Method in interface com.aoapps.persistence.PersistentBuffer
Writes a long at the provided position.
putLong(long, long, long) - Method in class com.aoapps.persistence.AbstractPersistentBlockBuffer
 
putLong(long, long, long) - Method in interface com.aoapps.persistence.PersistentBlockBuffer
Puts a long to this block.

R

RandomAccessFileBuffer - Class in com.aoapps.persistence
Uses RandomAccessFile for persistence.
RandomAccessFileBuffer() - Constructor for class com.aoapps.persistence.RandomAccessFileBuffer
Creates a read-write buffer backed by a temporary file.
RandomAccessFileBuffer(File) - Constructor for class com.aoapps.persistence.RandomAccessFileBuffer
Creates a read-write buffer with ProtectionLevel.BARRIER protection level.
RandomAccessFileBuffer(File, ProtectionLevel) - Constructor for class com.aoapps.persistence.RandomAccessFileBuffer
Creates a buffer.
RandomAccessFileBuffer(RandomAccessFile, ProtectionLevel) - Constructor for class com.aoapps.persistence.RandomAccessFileBuffer
Creates a buffer using the provided RandomAccessFile.
RandomAccessFileBuffer(String) - Constructor for class com.aoapps.persistence.RandomAccessFileBuffer
Creates a read-write buffer with ProtectionLevel.BARRIER protection level.
RandomAccessFileBuffer(String, ProtectionLevel) - Constructor for class com.aoapps.persistence.RandomAccessFileBuffer
Creates a buffer.
READ_ONLY - Enum constant in enum com.aoapps.persistence.ProtectionLevel
Read-only access.
remove() - Method in class com.aoapps.persistence.PersistentLinkedList
 
remove(int) - Method in class com.aoapps.persistence.PersistentLinkedList
 
remove(Object) - Method in class com.aoapps.persistence.PersistentLinkedList
 
removeFirst() - Method in class com.aoapps.persistence.PersistentLinkedList
Removes and returns the first element from this list.
removeFirstOccurrence(Object) - Method in class com.aoapps.persistence.PersistentLinkedList
 
removeLast() - Method in class com.aoapps.persistence.PersistentLinkedList
Removes and returns the last element from this list.
removeLastOccurrence(Object) - Method in class com.aoapps.persistence.PersistentLinkedList
 

S

serialize(byte[], OutputStream) - Method in class com.aoapps.persistence.ByteArraySerializer
 
serialize(char[], OutputStream) - Method in class com.aoapps.persistence.CharArraySerializer
 
serialize(E, ByteArrayOutputStream) - Method in class com.aoapps.persistence.BufferedSerializer
 
serialize(E, ByteArrayOutputStream) - Method in class com.aoapps.persistence.ObjectSerializer
 
serialize(E, OutputStream) - Method in class com.aoapps.persistence.BufferedSerializer
 
serialize(E, OutputStream) - Method in class com.aoapps.persistence.GZIPSerializer
 
serialize(E, OutputStream) - Method in interface com.aoapps.persistence.Serializer
Writes the object to the OutputStream.
serialize(Boolean, OutputStream) - Method in class com.aoapps.persistence.BooleanSerializer
 
serialize(Byte, OutputStream) - Method in class com.aoapps.persistence.ByteSerializer
 
serialize(Character, OutputStream) - Method in class com.aoapps.persistence.CharacterSerializer
 
serialize(Double, OutputStream) - Method in class com.aoapps.persistence.DoubleSerializer
 
serialize(Float, OutputStream) - Method in class com.aoapps.persistence.FloatSerializer
 
serialize(Integer, OutputStream) - Method in class com.aoapps.persistence.IntegerSerializer
 
serialize(Long, OutputStream) - Method in class com.aoapps.persistence.LongSerializer
 
serialize(Short, OutputStream) - Method in class com.aoapps.persistence.ShortSerializer
 
Serializer<E> - Interface in com.aoapps.persistence
Writes and reads serialized forms of objects to and from OutputStream and InputStream.
set(int, E) - Method in class com.aoapps.persistence.PersistentLinkedList
 
setCapacity(long) - Method in class com.aoapps.persistence.LargeMappedPersistentBuffer
 
setCapacity(long) - Method in class com.aoapps.persistence.MappedPersistentBuffer
 
setCapacity(long) - Method in interface com.aoapps.persistence.PersistentBuffer
Sets the capacity of this buffer.
setCapacity(long) - Method in class com.aoapps.persistence.RandomAccessFileBuffer
 
setCapacity(long) - Method in class com.aoapps.persistence.TwoCopyBarrierBuffer
 
ShortSerializer - Class in com.aoapps.persistence
Serializes Short objects.
ShortSerializer() - Constructor for class com.aoapps.persistence.ShortSerializer
 
size() - Method in class com.aoapps.persistence.PersistentLinkedList
Gets the number of elements in this list.

T

toArray() - Method in class com.aoapps.persistence.PersistentLinkedList
 
toArray(T[]) - Method in class com.aoapps.persistence.PersistentLinkedList
 
TwoCopyBarrierBuffer - Class in com.aoapps.persistence
Java does not support write barriers without a complete force call, this class works-around this issue by maintaining two copies of the file and updating the older copy to be the newer copy occasionally on barrier(false) and immediately on barrier(true) (if protectionLevel is high enough).
TwoCopyBarrierBuffer() - Constructor for class com.aoapps.persistence.TwoCopyBarrierBuffer
Creates a read-write buffer backed by temporary files.
TwoCopyBarrierBuffer(File) - Constructor for class com.aoapps.persistence.TwoCopyBarrierBuffer
Creates a read-write buffer with ProtectionLevel.BARRIER protection level.
TwoCopyBarrierBuffer(File, ProtectionLevel) - Constructor for class com.aoapps.persistence.TwoCopyBarrierBuffer
Creates a buffer.
TwoCopyBarrierBuffer(File, ProtectionLevel, int, long, long) - Constructor for class com.aoapps.persistence.TwoCopyBarrierBuffer
Creates a buffer.
TwoCopyBarrierBuffer(String) - Constructor for class com.aoapps.persistence.TwoCopyBarrierBuffer
Creates a read-write buffer with ProtectionLevel.BARRIER protection level.
TwoCopyBarrierBuffer(String, ProtectionLevel) - Constructor for class com.aoapps.persistence.TwoCopyBarrierBuffer
Creates a buffer.

V

valueOf(String) - Static method in enum com.aoapps.persistence.ProtectionLevel
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.aoapps.persistence.ProtectionLevel
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G I L M N O P R S T V 
All Classes and Interfaces|All Packages