A C D F G H I L O P R S T V W 

A

afterFlush() - Method in class com.spotify.sparkey.SnappyWriter
 
append(File) - Static method in class com.spotify.sparkey.Sparkey
Opens an existing file for append.
appendOrCreate(File, CompressionType, int) - Static method in class com.spotify.sparkey.Sparkey
Opens an existing file for append, or create a new one if it doesn't exist.

C

close() - Method in class com.spotify.sparkey.extra.ReloadableSparkeyReader
 
close() - Method in class com.spotify.sparkey.extra.ThreadLocalSparkeyReader
 
close() - Method in class com.spotify.sparkey.SnappyWriter
 
close() - Method in interface com.spotify.sparkey.SparkeyReader
 
close() - Method in interface com.spotify.sparkey.SparkeyWriter
Flush and close the writer.
com.spotify.sparkey - package com.spotify.sparkey
 
com.spotify.sparkey.extra - package com.spotify.sparkey.extra
 
CompressionType - Enum in com.spotify.sparkey
 
createNew(File) - Static method in class com.spotify.sparkey.Sparkey
Creates a new sparkey writer without any compression.
createNew(File, CompressionType, int) - Static method in class com.spotify.sparkey.Sparkey
Creates a new sparkey writer with the specified compression This is not a thread-safe class, only use it from one thread.

D

delete(byte[], int) - Method in class com.spotify.sparkey.SnappyWriter
 
delete(String) - Method in interface com.spotify.sparkey.SparkeyWriter
Deletes the key from the writer, as UTF-8
delete(byte[]) - Method in interface com.spotify.sparkey.SparkeyWriter
Deletes the key from the writer.
DUMMY - Static variable in class com.spotify.sparkey.SnappyWriter
 
duplicate() - Method in class com.spotify.sparkey.extra.ReloadableSparkeyReader
 
duplicate() - Method in class com.spotify.sparkey.extra.ThreadLocalSparkeyReader
 
duplicate() - Method in interface com.spotify.sparkey.SparkeyReader
Create a duplicate of the reader.

F

flush() - Method in class com.spotify.sparkey.SnappyWriter
 
flush() - Method in interface com.spotify.sparkey.SparkeyWriter
Flush all pending writes to file.
fromLogFile(File, ListeningExecutorService) - Static method in class com.spotify.sparkey.extra.ReloadableSparkeyReader
Creates a new reloadable sparkey reader from a log file.

G

getAddressData() - Method in class com.spotify.sparkey.IndexHeader
 
getAddressSize() - Method in class com.spotify.sparkey.IndexHeader
 
getAsByteArray(byte[]) - Method in class com.spotify.sparkey.extra.ReloadableSparkeyReader
 
getAsByteArray(byte[]) - Method in class com.spotify.sparkey.extra.ThreadLocalSparkeyReader
 
getAsByteArray(byte[]) - Method in interface com.spotify.sparkey.SparkeyReader
 
getAsEntry(byte[]) - Method in class com.spotify.sparkey.extra.ReloadableSparkeyReader
 
getAsEntry(byte[]) - Method in class com.spotify.sparkey.extra.ThreadLocalSparkeyReader
 
getAsEntry(byte[]) - Method in interface com.spotify.sparkey.SparkeyReader
This is mostly useful for retrieving large values that don't fit in a byte array.
getAsString(String) - Method in class com.spotify.sparkey.extra.ReloadableSparkeyReader
 
getAsString(String) - Method in class com.spotify.sparkey.extra.ThreadLocalSparkeyReader
 
getAsString(String) - Method in interface com.spotify.sparkey.SparkeyReader
 
getCompressionBlockSize() - Method in class com.spotify.sparkey.LogHeader
 
getCompressionType() - Method in class com.spotify.sparkey.LogHeader
 
getDataEnd() - Method in class com.spotify.sparkey.IndexHeader
 
getDataEnd() - Method in class com.spotify.sparkey.LogHeader
 
getDeleteSize() - Method in class com.spotify.sparkey.LogHeader
 
getEntryBlockBits() - Method in class com.spotify.sparkey.IndexHeader
 
getFileIdentifier() - Method in class com.spotify.sparkey.IndexHeader
 
getFileIdentifier() - Method in class com.spotify.sparkey.LogHeader
 
getGarbageSize() - Method in class com.spotify.sparkey.IndexHeader
 
getHashCapacity() - Method in class com.spotify.sparkey.IndexHeader
 
getHashCollisions() - Method in class com.spotify.sparkey.IndexHeader
 
getHashLength() - Method in class com.spotify.sparkey.IndexHeader
 
getHashSeed() - Method in class com.spotify.sparkey.IndexHeader
 
getHashSize() - Method in class com.spotify.sparkey.IndexHeader
 
getHashType() - Method in class com.spotify.sparkey.IndexHeader
 
getIndexFile(File) - Static method in class com.spotify.sparkey.Sparkey
Sets the file ending of the file to .spi (the index filename convention)
getIndexHeader() - Method in class com.spotify.sparkey.extra.ReloadableSparkeyReader
 
getIndexHeader() - Method in class com.spotify.sparkey.extra.ThreadLocalSparkeyReader
 
getIndexHeader(File) - Static method in class com.spotify.sparkey.Sparkey
Extract the header information from the index file.
getIndexHeader() - Method in interface com.spotify.sparkey.SparkeyReader
 
getKey() - Method in interface com.spotify.sparkey.SparkeyReader.Entry
 
getKeyAsString() - Method in interface com.spotify.sparkey.SparkeyReader.Entry
 
getKeyLength() - Method in interface com.spotify.sparkey.SparkeyReader.Entry
 
getLogFile(File) - Static method in class com.spotify.sparkey.Sparkey
Sets the file ending of the file to .spl (the log filename convention)
getLogHeader() - Method in class com.spotify.sparkey.extra.ReloadableSparkeyReader
 
getLogHeader() - Method in class com.spotify.sparkey.extra.ThreadLocalSparkeyReader
 
getLogHeader(File) - Static method in class com.spotify.sparkey.Sparkey
Extract the header information from the log file.
getLogHeader() - Method in interface com.spotify.sparkey.SparkeyReader
 
getMajorVersion() - Method in class com.spotify.sparkey.IndexHeader
 
getMajorVersion() - Method in class com.spotify.sparkey.LogHeader
 
getMaxDisplacement() - Method in class com.spotify.sparkey.IndexHeader
 
getMaxEntriesPerBlock() - Method in class com.spotify.sparkey.LogHeader
 
getMaxEntriesPerBlock() - Method in class com.spotify.sparkey.SnappyWriter
 
getMaxKeyLen() - Method in class com.spotify.sparkey.IndexHeader
 
getMaxKeyLen() - Method in class com.spotify.sparkey.LogHeader
 
getMaxValueLen() - Method in class com.spotify.sparkey.IndexHeader
 
getMaxValueLen() - Method in class com.spotify.sparkey.LogHeader
 
getMinorVersion() - Method in class com.spotify.sparkey.IndexHeader
 
getMinorVersion() - Method in class com.spotify.sparkey.LogHeader
 
getNumDeletes() - Method in class com.spotify.sparkey.LogHeader
 
getNumEntries() - Method in class com.spotify.sparkey.IndexHeader
 
getNumPuts() - Method in class com.spotify.sparkey.IndexHeader
 
getNumPuts() - Method in class com.spotify.sparkey.LogHeader
 
getSlotSize() - Method in class com.spotify.sparkey.IndexHeader
 
getTotalDisplacement() - Method in class com.spotify.sparkey.IndexHeader
 
getType() - Method in interface com.spotify.sparkey.SparkeyReader.Entry
 
getValue() - Method in interface com.spotify.sparkey.SparkeyReader.Entry
 
getValueAsStream() - Method in interface com.spotify.sparkey.SparkeyReader.Entry
 
getValueAsString() - Method in interface com.spotify.sparkey.SparkeyReader.Entry
 
getValueLength() - Method in interface com.spotify.sparkey.SparkeyReader.Entry
 

H

HashType - Enum in com.spotify.sparkey
 

I

IndexHeader - Class in com.spotify.sparkey
 
iterator() - Method in class com.spotify.sparkey.extra.ReloadableSparkeyReader
 
iterator() - Method in class com.spotify.sparkey.extra.ThreadLocalSparkeyReader
 
iterator() - Method in class com.spotify.sparkey.SparkeyLogIterator
Get an iterator over all the entries in the log file.
iterator() - Method in interface com.spotify.sparkey.SparkeyReader
Get an iterator over all the live entries.

L

load(File) - Method in class com.spotify.sparkey.extra.ReloadableSparkeyReader
 
LogHeader - Class in com.spotify.sparkey
 

O

open(File) - Static method in class com.spotify.sparkey.Sparkey
Open a new sparkey reader This is not a thread-safe class, only use it from one thread.

P

put(byte[], int, byte[], int) - Method in class com.spotify.sparkey.SnappyWriter
 
put(byte[], int, InputStream, long) - Method in class com.spotify.sparkey.SnappyWriter
 
put(String, String) - Method in interface com.spotify.sparkey.SparkeyWriter
Append the key/value pair to the writer, as UTF-8.
put(byte[], byte[]) - Method in interface com.spotify.sparkey.SparkeyWriter
Append the key/value pair to the writer.
put(byte[], InputStream, long) - Method in interface com.spotify.sparkey.SparkeyWriter
Append the key/value pair to the writer.

R

ReloadableSparkeyReader - Class in com.spotify.sparkey.extra
A sparkey reader that can switch between log files at runtime.
ReloadableSparkeyReader.ReloadableSparkeyReaderException - Exception in com.spotify.sparkey.extra
 
ReloadableSparkeyReader.ReloadableSparkeyReaderException(String, Throwable) - Constructor for exception com.spotify.sparkey.extra.ReloadableSparkeyReader.ReloadableSparkeyReaderException
 

S

size() - Method in enum com.spotify.sparkey.HashType
 
size() - Method in class com.spotify.sparkey.IndexHeader
 
size() - Method in class com.spotify.sparkey.LogHeader
 
SnappyWriter - Class in com.spotify.sparkey
 
SnappyWriter(SnappyOutputStream, int) - Constructor for class com.spotify.sparkey.SnappyWriter
 
Sparkey - Class in com.spotify.sparkey
 
SparkeyLogIterator - Class in com.spotify.sparkey
An iterable view of all the entries in the log file.
SparkeyLogIterator(File) - Constructor for class com.spotify.sparkey.SparkeyLogIterator
 
SparkeyReader - Interface in com.spotify.sparkey
 
SparkeyReader.Entry - Interface in com.spotify.sparkey
 
SparkeyReader.Type - Enum in com.spotify.sparkey
 
SparkeyWriter - Interface in com.spotify.sparkey
 

T

ThreadLocalSparkeyReader - Class in com.spotify.sparkey.extra
A thread-safe Sparkey Reader.
ThreadLocalSparkeyReader(File) - Constructor for class com.spotify.sparkey.extra.ThreadLocalSparkeyReader
 
ThreadLocalSparkeyReader(SparkeyReader) - Constructor for class com.spotify.sparkey.extra.ThreadLocalSparkeyReader
 
toString() - Method in class com.spotify.sparkey.IndexHeader
 
toString() - Method in class com.spotify.sparkey.LogHeader
 
toString() - Method in class com.spotify.sparkey.SparkeyLogIterator
 

V

valueOf(String) - Static method in enum com.spotify.sparkey.CompressionType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.spotify.sparkey.HashType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.spotify.sparkey.SparkeyReader.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.spotify.sparkey.CompressionType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.spotify.sparkey.HashType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.spotify.sparkey.SparkeyReader.Type
Returns an array containing the constants of this enum type, in the order they are declared.

W

writeHash(File) - Static method in class com.spotify.sparkey.Sparkey
Write (or rewrite) the index file for a given sparkey file.
writeHash(File, HashType) - Static method in class com.spotify.sparkey.Sparkey
Write (or rewrite) the index file for a given sparkey file.
writeHash() - Method in interface com.spotify.sparkey.SparkeyWriter
Create or rewrite the index, which is required for random lookups to be visible.
writeHash(HashType) - Method in interface com.spotify.sparkey.SparkeyWriter
Create or rewrite the index, which is required for random lookups to be visible.
A C D F G H I L O P R S T V W 

Copyright © 2013. All rights reserved.