Index

A B C D E F G I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

add(byte[], byte[]) - Method in class Index
Adds a record.
add(String, String) - Method in class Index
Adds a record, with string data.
And() - Constructor for class Status.And
 
ANY_BYTES - Static variable in class DBM
The special bytes value for no-operation or any data.
ANY_STRING - Static variable in class DBM
The special string value for no-operation or any data.
append(byte[]) - Method in class File
Appends data at the end of the file.
append(byte[], byte[], byte[]) - Method in class AsyncDBM
Appends data at the end of a record of a key.
append(byte[], byte[], byte[]) - Method in class DBM
Appends data at the end of a record of a key.
append(byte[], long, Status) - Method in class File
Appends data at the end of the file.
append(String) - Method in class File
Appends data at the end of the file.
append(String, String, String) - Method in class AsyncDBM
Appends data at the end of a record of a key, with string data.
append(String, String, String) - Method in class DBM
Appends data at the end of a record of a key, with string data.
appendMulti(Map<byte[], byte[]>, byte[]) - Method in class AsyncDBM
Appends data to multiple records
appendMulti(Map<byte[], byte[]>, byte[]) - Method in class DBM
Appends data to multiple records
appendMulti(Map<String, String>, String) - Method in class AsyncDBM
Appends data to multiple records, with string data.
appendMulti(Map<String, String>, String) - Method in class DBM
Appends data to multiple records, with string data.
APPLICATION_ERROR - Enum constant in enum class Status.Code
Generic error caused by the application logic.
APPLICATION_ERROR - Static variable in class Status
Status code: Generic error caused by the application logic.
AsyncDBM - Class in tkrzw
Asynchronous database manager adapter.
AsyncDBM(DBM, int) - Constructor for class AsyncDBM
Constructor.
await(double) - Method in class Future
Awaits the operation to be done.

B

BROKEN_DATA_ERROR - Enum constant in enum class Status.Code
Error that internal data are broken.
BROKEN_DATA_ERROR - Static variable in class Status
Status code: Error that internal data are broken.

C

CANCELED_ERROR - Enum constant in enum class Status.Code
Error that the operation is canceled.
CANCELED_ERROR - Static variable in class Status
Status code: Error that the operation is canceled.
clear() - Method in class AsyncDBM
Removes all records.
clear() - Method in class DBM
Removes all records.
clear() - Method in class Index
Removes all records.
clone() - Method in class Status
Clones the object.
close() - Method in class DBM
Closes the database file.
close() - Method in class File
Closes the file.
close() - Method in class Index
Closes the index file.
compareExchange(byte[], byte[], byte[]) - Method in class AsyncDBM
Compares the value of a record and exchanges if the condition meets.
compareExchange(byte[], byte[], byte[]) - Method in class DBM
Compares the value of a record and exchanges if the condition meets.
compareExchange(String, String, String) - Method in class AsyncDBM
Compares the value of a record and exchanges if the condition meets, with string data.
compareExchange(String, String, String) - Method in class DBM
Compares the value of a record and exchanges if the condition meets, with string data.
compareExchangeAndGet(byte[], byte[], byte[]) - Method in class DBM
Does compare-and-exchange and/or gets the old value of the record.
compareExchangeAndGet(String, String, String) - Method in class DBM
Does compare-and-exchange and/or gets the old value of the record.
compareExchangeMulti(Map<byte[], byte[]>, Map<byte[], byte[]>) - Method in class AsyncDBM
Compares the values of records and exchanges if the condition meets.
compareExchangeMulti(Map<byte[], byte[]>, Map<byte[], byte[]>) - Method in class DBM
Compares the values of records and exchanges if the condition meets.
compareExchangeMultiString(Map<String, String>, Map<String, String>) - Method in class AsyncDBM
Compares the values of records and exchanges if the condition meets, with string data.
compareExchangeMultiString(Map<String, String>, Map<String, String>) - Method in class DBM
Compares the values of records and exchanges if the condition meets, with string data.
contains(byte[]) - Method in class DBM
Checks if a record exists or not.
contains(byte[], byte[]) - Method in class Index
Checks if a record exists or not.
contains(String) - Method in class DBM
Checks if a record exists or not, with string data.
contains(String, String) - Method in class Index
Checks if a record exists or not, with string data.
copyFileData(String, boolean) - Method in class AsyncDBM
Copies the content of the database file to another file.
copyFileData(String, boolean) - Method in class DBM
Copies the content of the database file to another file.
count() - Method in class DBM
Gets the number of records.
count() - Method in class Index
Gets the number of records.

D

DBM - Class in tkrzw
Polymorphic database manager.
DBM() - Constructor for class DBM
Constructor.
deserializeFloat(byte[]) - Static method in class Utility
Deserializes a big-endian binary sequence into a floating-point number.
deserializeInt(byte[]) - Static method in class Utility
Deserializes a big-endian binary sequence into an integer.
destruct() - Method in class AsyncDBM
Destructs the object and releases resources.
destruct() - Method in class DBM
Destructs the object and releases resources.
destruct() - Method in class File
Destructs the object and releases resources.
destruct() - Method in class Future
Destructs the object and releases resources.
destruct() - Method in class Index
Destructs the object and releases resources.
destruct() - Method in class IndexIterator
Destructs the object and releases resources.
destruct() - Method in class Iterator
Destructs the object and releases resources.
DUPLICATION_ERROR - Enum constant in enum class Status.Code
Error that a specific resource is duplicated.
DUPLICATION_ERROR - Static variable in class Status
Status code: Error that a specific resource is duplicated.

E

editDistanceLev(String, String) - Static method in class Utility
Gets the Levenshtein edit distance of two strings.
equals(Status) - Method in class Status
Checks equality.
equals(Status.Code) - Method in class Status
Checks equality.
export(DBM) - Method in class AsyncDBM
Exports all records to another database.
export(DBM) - Method in class DBM
Exports all records to another database.
exportKeysAsLines(File) - Method in class DBM
Exports the keys of all records as lines to a text file.
exportToFlatRecords(File) - Method in class AsyncDBM
Exports all records of a database to a flat record file.
exportToFlatRecords(File) - Method in class DBM
Exports all records of a database to a flat record file.

F

File - Class in tkrzw
Generic file implementation.
File() - Constructor for class File
Constructor.
first() - Method in class IndexIterator
Initializes the iterator to indicate the first record.
first() - Method in class Iterator
Initializes the iterator to indicate the first record.
Future<T> - Class in tkrzw
Future containing a status object and extra data.

G

get() - Method in class Future
Awaits the operation to be done and gets the result status.
get() - Method in class IndexIterator
Gets the key and the value of the current record of the iterator.
get() - Method in class Iterator
Gets the key and the value of the current record of the iterator, witout status assingment.
get(byte[]) - Method in class AsyncDBM
Gets the value of a record of a key.
get(byte[]) - Method in class DBM
Gets the value of a record of a key, without status assignment.
get(byte[], Status) - Method in class DBM
Gets the value of a record of a key.
get(String) - Method in class AsyncDBM
Gets the value of a record of a key, with string data.
get(String) - Method in class DBM
Gets the value of a record of a key, with string data, without status assignment.
get(String, Status) - Method in class DBM
Gets the value of a record of a key, with string data.
get(Status) - Method in class Iterator
Gets the key and the value of the current record of the iterator.
getCode() - Method in class Status
Gets the status code.
getFilePath() - Method in class DBM
Gets the path of the database file.
getFilePath() - Method in class Index
Gets the path of the index file.
getFileSize() - Method in class DBM
Gets the current file size of the database.
getKey() - Method in class Iterator
Gets the key of the current record.
getKeyString() - Method in class Iterator
Gets the key of the current record, as string data.
getMemoryCapacity() - Static method in class Utility
Gets the memory capacity of the platform.
getMemoryUsage() - Static method in class Utility
Gets the current memory usage of the process.
getMessage() - Method in class Status
Gets the status message.
getMulti(byte[][]) - Method in class AsyncDBM
Gets the values of multiple records of keys.
getMulti(byte[][]) - Method in class DBM
Gets the values of multiple records of keys.
getMulti(String[]) - Method in class AsyncDBM
Gets the values of multiple records of keys, with string data.
getMulti(String[]) - Method in class DBM
Gets the values of multiple records of keys, with string data.
getPath() - Method in class File
Gets the path of the file.
getSize() - Method in class File
Gets the size of the file.
getStatus() - Method in exception StatusException
Get the status object.
getString() - Method in class IndexIterator
Gets the key and the value of the current record of the iterator.
getString() - Method in class Iterator
Gets the key and the value of the current record, as string data, without status assignemnt.
getString(Status) - Method in class Iterator
Gets the key and the value of the current record, as string data.
getTimestamp() - Method in class DBM
Gets the timestamp in seconds of the last modified time.
getValue() - Method in class Iterator
Gets the key of the current record.
getValues(byte[], int) - Method in class Index
Gets all values of records of a key.
getValues(String, int) - Method in class Index
Gets all values of records of a key, with string data.
getValueString() - Method in class Iterator
Gets the key of the current record, as string data.

I

importFromFlatRecords(File) - Method in class AsyncDBM
Imports records to a database from a flat record file.
importFromFlatRecords(File) - Method in class DBM
Imports records to a database from a flat record file.
increment(byte[], long, long) - Method in class AsyncDBM
Increments the numeric value of a record.
increment(byte[], long, long, Status) - Method in class DBM
Increments the numeric value of a record.
increment(String, long, long) - Method in class AsyncDBM
Increments the numeric value of a record, with string data.
increment(String, long, long, Status) - Method in class DBM
Increments the numeric value of a record, with string data.
Index - Class in tkrzw
Secondary index interface.
Index() - Constructor for class Index
Constructor.
IndexIterator - Class in tkrzw
Iterator for each record of the secondary index.
INFEASIBLE_ERROR - Enum constant in enum class Status.Code
Error that the operation is infeasible.
INFEASIBLE_ERROR - Static variable in class Status
Status code: Error that the operation is infeasible.
inspect() - Method in class DBM
Inspects the database.
INVALID_ARGUMENT_ERROR - Enum constant in enum class Status.Code
Error that a given argument is invalid.
INVALID_ARGUMENT_ERROR - Static variable in class Status
Status code: Error that a given argument is invalid.
isHealthy() - Method in class DBM
Checks whether the database condition is healthy.
isOK() - Method in class Status
Returns true if the status is success.
isOpen() - Method in class DBM
Checks whether the database is open.
isOpen() - Method in class Index
Checks whether the index is open.
isOrdered() - Method in class DBM
Checks whether ordered operations are supported.
isWritable() - Method in class DBM
Checks whether the database is writable.
isWritable() - Method in class Index
Checks whether the index is writable.
Iterator - Class in tkrzw
Iterator for each record.

J

join(Status) - Method in class Status
Assigns the internal state from another status object only if the current state is success.
jump(byte[]) - Method in class Iterator
Initializes the iterator to indicate a specific record.
jump(byte[], byte[]) - Method in class IndexIterator
Initializes the iterator to indicate a specific range.
jump(String) - Method in class Iterator
Initializes the iterator to indicate a specific record, with string data.
jump(String, String) - Method in class IndexIterator
Initializes the iterator to indicate a specific range, with string data.
jumpLower(byte[], boolean) - Method in class Iterator
Initializes the iterator to indicate the last record whose key is lower than a given key.
jumpLower(String, boolean) - Method in class Iterator
Initializes the iterator to indicate the last record whose key is lower, with string data.
jumpUpper(byte[], boolean) - Method in class Iterator
Initializes the iterator to indicate the first record whose key is upper than a given key.
jumpUpper(String, boolean) - Method in class Iterator
Initializes the iterator to indicate the first record whose key is upper, with string data.

K

key - Variable in class RecordProcessor.WithKey
The key of the record to process.

L

last() - Method in class IndexIterator
Initializes the iterator to indicate the last record.
last() - Method in class Iterator
Initializes the iterator to indicate the last record.

M

main(String[]) - Static method in class Test
Main routine of the test command.
makeIterator() - Method in class DBM
Makes an iterator for each record.
makeIterator() - Method in class Index
Makes an iterator for each record.

N

NETWORK_ERROR - Enum constant in enum class Status.Code
Error caused by networking failure.
NETWORK_ERROR - Static variable in class Status
Status code: Error caused by networking failure.
next() - Method in class IndexIterator
Moves the iterator to the next record.
next() - Method in class Iterator
Moves the iterator to the next record.
NOT_FOUND_ERROR - Enum constant in enum class Status.Code
Error that a specific resource is not found.
NOT_FOUND_ERROR - Static variable in class Status
Status code: Error that a specific resource is not found.
NOT_IMPLEMENTED_ERROR - Enum constant in enum class Status.Code
Error that the feature is not implemented.
NOT_IMPLEMENTED_ERROR - Static variable in class Status
Status code: Error that the feature is not implemented.

O

open(String, boolean) - Method in class DBM
Opens a database file, without optional parameters.
open(String, boolean) - Method in class File
Opens a file, without optional parameters.
open(String, boolean) - Method in class Index
Opens an index file, without optional parameters.
open(String, boolean, String) - Method in class DBM
Opens a database file, with a string expression for optional parameters.
open(String, boolean, String) - Method in class File
Opens a file, with a string expression for optional parameters.
open(String, boolean, String) - Method in class Index
Opens an index file, with a string expression for optional parameters.
open(String, boolean, Map<String, String>) - Method in class DBM
Opens a database file.
open(String, boolean, Map<String, String>) - Method in class File
Opens a file.
open(String, boolean, Map<String, String>) - Method in class Index
Opens an index file.
orDie() - Method in class Status
Throws an exception if the status is not success.

P

parseParams(String) - Static method in class Utility
Parses a string of parameters in "key=value,key=value" format.
PERMISSION_ERROR - Enum constant in enum class Status.Code
Error that the operation is not permitted.
PERMISSION_ERROR - Static variable in class Status
Status code: Error that the operation is not permitted.
popFirst() - Method in class AsyncDBM
Gets the first record and removes it.
popFirst() - Method in class DBM
Gets the first record and removes it, without status assingment.
popFirst(Status) - Method in class DBM
Gets the first record and removes it.
popFirstString() - Method in class AsyncDBM
Gets the first record as strings and removes it.
popFirstString() - Method in class DBM
Gets the first record as strings and removes it, without status assingment.
popFirstString(Status) - Method in class DBM
Gets the first record as strings and removes it.
PRECONDITION_ERROR - Enum constant in enum class Status.Code
Error that a precondition is not met.
PRECONDITION_ERROR - Static variable in class Status
Status code: Error that a precondition is not met.
previous() - Method in class IndexIterator
Moves the iterator to the previous record.
previous() - Method in class Iterator
Moves the iterator to the previous record.
primaryHash(byte[], long) - Static method in class Utility
Primary hash function for the hash database.
process(byte[], byte[]) - Method in interface RecordProcessor
Processes a record.
process(byte[], RecordProcessor, boolean) - Method in class DBM
Processes a record with a processor.
process(String, RecordProcessor, boolean) - Method in class DBM
Processes a record with a processor.
processEach(RecordProcessor, boolean) - Method in class DBM
Processes each and every record in the database with a processor.
processMulti(RecordProcessor.WithKey[], boolean) - Method in class DBM
Processes multiple records with processors.
processor - Variable in class RecordProcessor.WithKey
The processor object.
pushLast(byte[], double) - Method in class AsyncDBM
Adds a record with a key of the current timestamp.
pushLast(byte[], double) - Method in class DBM
Adds a record with a key of the current timestamp.
pushLast(String, double) - Method in class AsyncDBM
Adds a record with a key of the current timestamp.
pushLast(String, double) - Method in class DBM
Adds a record with a key of the current timestamp.

R

read(long, byte[], long) - Method in class File
Reads data.
read(long, long) - Method in class File
Reads data and returns a byte array.
read(long, long, Status) - Method in class File
Reads data.
readString(long, long) - Method in class File
Reads data and returns a byte array.
readString(long, long, Status) - Method in class File
Reads data and returns a byte array.
rebuild() - Method in class AsyncDBM
Rebuilds the entire database, without optional parameters.
rebuild() - Method in class DBM
Rebuilds the entire database, without optional parameters.
rebuild() - Method in class Index
Rebuilds the entire index.
rebuild(Map<String, String>) - Method in class AsyncDBM
Rebuilds the entire database.
rebuild(Map<String, String>) - Method in class DBM
Rebuilds the entire database.
RecordProcessor - Interface in tkrzw
Interface of processor for a record.
RecordProcessor.WithKey - Class in tkrzw
Container of a processor and a key.
rekey(byte[], byte[], boolean, boolean) - Method in class AsyncDBM
Changes the key of a record.
rekey(byte[], byte[], boolean, boolean) - Method in class DBM
Changes the key of a record.
rekey(String, String, boolean, boolean) - Method in class AsyncDBM
Changes the key of a record, with string data.
rekey(String, String, boolean, boolean) - Method in class DBM
Changes the key of a record, with string data.
remove() - Method in class Iterator
Removes the current record.
remove(byte[]) - Method in class AsyncDBM
Removes a record of a key.
remove(byte[]) - Method in class DBM
Removes a record of a key.
remove(byte[], byte[]) - Method in class Index
Removes a record.
remove(String) - Method in class AsyncDBM
Removes a record of a key, with string data.
remove(String) - Method in class DBM
Removes a record of a key, with string data.
remove(String, String) - Method in class Index
Removes a record, with string data.
REMOVE - Static variable in interface RecordProcessor
The special string indicating removing operation.
removeAndGet(byte[]) - Method in class DBM
Removes a record and get the value.
removeAndGet(String) - Method in class DBM
Removes a record and get the value.
removeMulti(byte[][]) - Method in class AsyncDBM
Removes records of keys.
removeMulti(byte[][]) - Method in class DBM
Removes records of keys.
removeMulti(String[]) - Method in class AsyncDBM
Removes records of keys, with string data.
removeMulti(String[]) - Method in class DBM
Removes records of keys, with string data.
restoreDatabase(String, String, String, long, byte[]) - Static method in class DBM
Restores a broken database as a new healthy database.

S

search(String, byte[], int) - Method in class AsyncDBM
Searches the database and get keys which match a pattern.
search(String, byte[], int) - Method in class DBM
Searches the database and get keys which match a pattern.
search(String, byte[], int) - Method in class File
Searches the file and get lines which match a pattern.
search(String, String, int) - Method in class AsyncDBM
Searches the database and get keys which match a pattern, with string data.
search(String, String, int) - Method in class DBM
Searches the database and get keys which match a pattern, with string data.
search(String, String, int) - Method in class File
Searches the file and get lines which match a pattern, with string data.
secondaryHash(byte[], long) - Static method in class Utility
Secondaryy hash function for sharding.
serializeFloat(double) - Static method in class Utility
Serializes a floating-point number into a big-endian binary sequence.
serializeInt(long) - Static method in class Utility
Serializes an integer into a big-endian binary sequence.
set(byte[]) - Method in class Iterator
Sets the value of the current record.
set(byte[], byte[]) - Method in class AsyncDBM
Sets a record of a key and a value, with overwriting.
set(byte[], byte[]) - Method in class DBM
Sets a record of a key and a value, with overwriting.
set(byte[], byte[], boolean) - Method in class AsyncDBM
Sets a record of a key and a value.
set(byte[], byte[], boolean) - Method in class DBM
Sets a record of a key and a value.
set(String) - Method in class Iterator
Sets the value of the current record, with string data.
set(String, String) - Method in class AsyncDBM
Sets a record of a key and a value, with string data, with overwriting.
set(String, String) - Method in class DBM
Sets a record of a key and a value, with string data, with overwriting.
set(String, String, boolean) - Method in class AsyncDBM
Sets a record of a key and a value, with string data.
set(String, String, boolean) - Method in class DBM
Sets a record of a key and a value, with string data.
set(Status.Code, String) - Method in class Status
Sets the code and the message.
setAndGet(byte[], byte[], boolean) - Method in class DBM
Sets a record and get the old value.
setAndGet(String, String, boolean) - Method in class DBM
Sets a record and get the old value, with string data.
setMulti(Map<byte[], byte[]>, boolean) - Method in class AsyncDBM
Sets multiple records.
setMulti(Map<byte[], byte[]>, boolean) - Method in class DBM
Sets multiple records.
setMultiString(Map<String, String>, boolean) - Method in class AsyncDBM
Sets multiple records, with string data.
setMultiString(Map<String, String>, boolean) - Method in class DBM
Sets multiple records, with string data.
shouldBeRebuilt() - Method in class DBM
Checks whether the database should be rebuilt.
status - Variable in class Status.And
The status object.
Status - Class in tkrzw
Status of operations.
Status() - Constructor for class Status
Constructor representing the success code.
Status(Status.Code) - Constructor for class Status
Constructor representing a specific status code.
Status(Status.Code, String) - Constructor for class Status
Constructor representing a specific status.
Status.And<T> - Class in tkrzw
Container of a status and another arbitrary object.
Status.Code - Enum Class in tkrzw
Enumeration of status codes.
StatusException - Exception in tkrzw
Exception to convey the status of operations.
StatusException(Status) - Constructor for exception StatusException
Constructor.
step() - Method in class Iterator
Gets the current record and moves the iterator to the next record, witout status assingment.
step(Status) - Method in class Iterator
Gets the current record and moves the iterator to the next record.
stepString() - Method in class Iterator
Gets the current record and moves the iterator to the next record, as string data.
stepString(Status) - Method in class Iterator
Gets the current record and moves the iterator to the next record, as string data.
SUCCESS - Enum constant in enum class Status.Code
Success.
SUCCESS - Static variable in class Status
Status code: Success.
synchronize(boolean) - Method in class AsyncDBM
Synchronizes the content of the database to the file system.
synchronize(boolean) - Method in class DBM
Synchronizes the content of the database to the file system.
synchronize(boolean) - Method in class File
Synchronizes the entire content of the file to the file system.
synchronize(boolean) - Method in class Index
Synchronizes the content of the index to the file system.
synchronize(boolean, long, long) - Method in class File
Synchronizes the content of the file to the file system.
synchronize(boolean, Map<String, String>) - Method in class AsyncDBM
Synchronizes the content of the database to the file system.
synchronize(boolean, Map<String, String>) - Method in class DBM
Synchronizes the content of the database to the file system.
SYSTEM_ERROR - Enum constant in enum class Status.Code
Generic error from underlying systems.
SYSTEM_ERROR - Static variable in class Status
Status code: Generic error from underlying systems.

T

Test - Class in tkrzw
Test cases.
Test() - Constructor for class Test
 
tkrzw - package tkrzw
 
toString() - Method in class AsyncDBM
Gets a string representation of the database.
toString() - Method in class DBM
Gets a string representation of the database.
toString() - Method in class File
Gets a string representation of the iterator.
toString() - Method in class Future
Gets a string representation of the database.
toString() - Method in class Index
Gets a string representation of the index.
toString() - Method in class IndexIterator
Gets a string representation of the iterator.
toString() - Method in class Iterator
Gets a string representation of the iterator.
toString() - Method in class Status
Gets the string expression.
truncate(long) - Method in class File
Truncates the file.

U

UNKNOWN_ERROR - Enum constant in enum class Status.Code
Generic error whose cause is unknown.
UNKNOWN_ERROR - Static variable in class Status
Status code: Generic error whose cause is unknown.
Utility - Class in tkrzw
Library utilities.
Utility() - Constructor for class Utility
 

V

value - Variable in class Status.And
The value object.
valueOf(int) - Static method in enum class Status.Code
Returns the code enum matching an integer.
valueOf(String) - Static method in enum class Status.Code
Returns the enum constant of this class with the specified name.
values() - Static method in enum class Status.Code
Returns an array containing the constants of this enum class, in the order they are declared.

W

WithKey(byte[], RecordProcessor) - Constructor for class RecordProcessor.WithKey
Constructor.
WithKey(String, RecordProcessor) - Constructor for class RecordProcessor.WithKey
Constructor.
write(long, byte[]) - Method in class File
Writes data.
write(long, byte[], long) - Method in class File
Writes data.
write(long, String) - Method in class File
Writes a string.
A B C D E F G I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form