Index
All Classes and Interfaces|All Packages
A
- AUX_FIELD - Enum constant in enum class net.whitbeck.rdbparser.EntryType
-
Denotes an auxiliary field for storing a key/value pair containing metadata about the RDB file.
- AuxField - Class in net.whitbeck.rdbparser
-
An auxiliary field contains a key value pair that holds metadata about the RDB file.
B
- bytesParsed() - Method in class net.whitbeck.rdbparser.RdbParser
-
Returns the number of bytes parsed from the underlying file or stream by successive calls of the
RdbParser.readNext()
method.
C
E
- Entry - Interface in net.whitbeck.rdbparser
- EntryType - Enum Class in net.whitbeck.rdbparser
-
This enum holds the different types of entries that the
RdbParser
can read from a RDB file. - Eof - Class in net.whitbeck.rdbparser
-
End-of-file entry.
- EOF - Enum constant in enum class net.whitbeck.rdbparser.EntryType
-
Denotes an end-of-file entry with a checksum.
G
- getChecksum() - Method in class net.whitbeck.rdbparser.Eof
-
Returns the 8-byte checksum of the rdb file.
- getDbHashTableSize() - Method in class net.whitbeck.rdbparser.ResizeDb
-
Returns the size of the DB hash table.
- getExpireTime() - Method in class net.whitbeck.rdbparser.KeyValuePair
-
Returns the expire time in milliseconds.
- getExpireTimeHashTableSize() - Method in class net.whitbeck.rdbparser.ResizeDb
-
Returns the size of the expire time hash table.
- getFreq() - Method in class net.whitbeck.rdbparser.KeyValuePair
-
Returns the LFU frequency (logarithmic with a 0-255 range) , or null if not set.
- getId() - Method in class net.whitbeck.rdbparser.SelectDb
-
Returns the identifier of this database.
- getIdle() - Method in class net.whitbeck.rdbparser.KeyValuePair
-
Returns the LRU frequency (in seconds), or null if not set.
- getKey() - Method in class net.whitbeck.rdbparser.AuxField
-
Returns the key.
- getKey() - Method in class net.whitbeck.rdbparser.KeyValuePair
-
Returns the key associated with this key/value pair.
- getMinHashExpireTime() - Method in class net.whitbeck.rdbparser.KeyValuePair
- getRdbVersion() - Method in class net.whitbeck.rdbparser.RdbParser
-
Returns the version of the RDB file being parsed.
- getType() - Method in class net.whitbeck.rdbparser.AuxField
- getType() - Method in interface net.whitbeck.rdbparser.Entry
-
Returns one of EOF, SELECT_DB, KEY_VALUE_PAIR, RESIZE_DB, or AUX_FIELD.
- getType() - Method in class net.whitbeck.rdbparser.Eof
- getType() - Method in class net.whitbeck.rdbparser.KeyValuePair
- getType() - Method in class net.whitbeck.rdbparser.ResizeDb
- getType() - Method in class net.whitbeck.rdbparser.SelectDb
- getValue() - Method in class net.whitbeck.rdbparser.AuxField
-
Returns the value.
- getValues() - Method in class net.whitbeck.rdbparser.KeyValuePair
-
Returns the list of values (as byte-arrays) associated with this key/value pair.
- getValueType() - Method in class net.whitbeck.rdbparser.KeyValuePair
-
Returns the value type encoding.
H
- HASH - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A redis hash as created by
hset foo bar baz
. - HASHMAP_AS_LISTPACK - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A compact encoding for small hashes.
- HASHMAP_AS_LISTPACK_EX - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A compact encoding for small hashes with expiration time on each hash key.
- HASHMAP_AS_LISTPACK_EX_PRE_GA - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
As HASHMAP_AS_LISTPACK_EX, but the pre-GA encoding stored the hash expiration as actual times while the GA version stores the hash expiration as an offset from the key expiration.
- HASHMAP_AS_ZIPLIST - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A compact encoding for small hashes in which key/value pairs are flattened and stored in a ZipList.
- HASHMAP_WITH_METADATA - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A redis hash with expiration time on each hash key.
- HASHMAP_WITH_METADATA_PRE_GA - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
As HASHMAP_WITH_METADATA, but the pre-GA encoding stored the hash expiration as actual times while the GA version stores the hash expiration as an offset from the next key expiration.
I
- INTSET - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A compact encoding for sets comprised entirely of integers.
K
- KEY_VALUE_PAIR - Enum constant in enum class net.whitbeck.rdbparser.EntryType
-
Denotes a key/value pair entry that may optionally have an expire time, an LFU frequency, or an LRU idle time.
- KeyValuePair - Class in net.whitbeck.rdbparser
-
Key/value pair entries contain all the data associated with a given key.
- KeyValuePair() - Constructor for class net.whitbeck.rdbparser.KeyValuePair
L
- LIST - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A redis list as created by
lpush foo bar
. - LISTPACK - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A compact encoding of elements.
N
- net.whitbeck.rdbparser - package net.whitbeck.rdbparser
-
Provides a simple Redis RDB file parser for Java.
P
- parseSortedSet2Score(byte[]) - Static method in class net.whitbeck.rdbparser.RdbParser
-
Parses the raw score of an element in a
SORTED_SET2
. - parseSortedSetScore(byte[]) - Static method in class net.whitbeck.rdbparser.RdbParser
-
Parses the raw score of an element in a
SORTED_SET
orSORTED_SET_AS_ZIPLIST
.
Q
- QUICKLIST - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A linked list of ziplists to achieve good compression on lists of any length.
- QUICKLIST2 - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A linked list of listpacks to achieve good compression on lists of any length.
R
- RdbParser - Class in net.whitbeck.rdbparser
-
Reads entries from a Redis RDB file, one at a time.
- RdbParser(File) - Constructor for class net.whitbeck.rdbparser.RdbParser
- RdbParser(InputStream) - Constructor for class net.whitbeck.rdbparser.RdbParser
- RdbParser(String) - Constructor for class net.whitbeck.rdbparser.RdbParser
- RdbParser(ReadableByteChannel) - Constructor for class net.whitbeck.rdbparser.RdbParser
- RdbParser(Path) - Constructor for class net.whitbeck.rdbparser.RdbParser
- readNext() - Method in class net.whitbeck.rdbparser.RdbParser
-
Returns the next Entry from the underlying file or stream.
- RESIZE_DB - Enum constant in enum class net.whitbeck.rdbparser.EntryType
-
Denotes an entry containing the database hash table size and the expire time hash table size.
- ResizeDb - Class in net.whitbeck.rdbparser
-
Resize DB entries contain information to speed up RDB loading by avoiding additional resizes and rehashing.
S
- SELECT_DB - Enum constant in enum class net.whitbeck.rdbparser.EntryType
-
Denotes a DB selection entry.
- SelectDb - Class in net.whitbeck.rdbparser
-
DB selection entries mark the beginning of a new database in the RDB dump file.
- SET - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A redis set as created by
sadd foo bar
. - SET_AS_LISTPACK - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A compact encoding for small sets.
- SORTED_SET - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A redis sorted set as created by
zadd foo 1.2 bar
. - SORTED_SET_AS_LISTPACK - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A compact encoding for small sorted sets in which value/score pairs are flattened and stored in a ZipList.
- SORTED_SET_AS_ZIPLIST - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A compact encoding for small sorted sets in which value/score pairs are flattened and stored in a ZipList.
- SORTED_SET2 - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
Like SORTED_SET but encodes the scores as doubles using the IEEE 754 floating-point "double format" bit layout on 8 bits instead of a string representation of the score.
T
- toString() - Method in class net.whitbeck.rdbparser.AuxField
- toString() - Method in class net.whitbeck.rdbparser.Eof
- toString() - Method in class net.whitbeck.rdbparser.KeyValuePair
- toString() - Method in class net.whitbeck.rdbparser.ResizeDb
- toString() - Method in class net.whitbeck.rdbparser.SelectDb
V
- VALUE - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A simple redis key/value pair as created by
set foo bar
. - valueOf(String) - Static method in enum class net.whitbeck.rdbparser.EntryType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.whitbeck.rdbparser.ValueType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.whitbeck.rdbparser.EntryType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.whitbeck.rdbparser.ValueType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- ValueType - Enum Class in net.whitbeck.rdbparser
-
This enum holds the different value serialization type encountered in an RDB file.
Z
- ZIPLIST - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A compact encoding for small lists.
- ZIPMAP - Enum constant in enum class net.whitbeck.rdbparser.ValueType
-
A compact encoding for small hashes.
All Classes and Interfaces|All Packages