public class SnappyWriter extends Object
Modifier and Type | Field and Description |
---|---|
static SnappyWriter |
DUMMY |
Constructor and Description |
---|
SnappyWriter(com.spotify.sparkey.SnappyOutputStream snappyOutputStream,
int maxEntriesPerBlock) |
Modifier and Type | Method and Description |
---|---|
void |
afterFlush() |
void |
close() |
void |
delete(byte[] key,
int keyLen) |
void |
flush() |
int |
getMaxEntriesPerBlock() |
void |
put(byte[] key,
int keyLen,
byte[] value,
int valueLen) |
void |
put(byte[] key,
int keyLen,
InputStream value,
long valueLen) |
public static final SnappyWriter DUMMY
public SnappyWriter(com.spotify.sparkey.SnappyOutputStream snappyOutputStream, int maxEntriesPerBlock)
public void afterFlush()
public void flush() throws IOException
IOException
public void put(byte[] key, int keyLen, byte[] value, int valueLen) throws IOException
IOException
public void put(byte[] key, int keyLen, InputStream value, long valueLen) throws IOException
IOException
public void delete(byte[] key, int keyLen) throws IOException
IOException
public void close() throws IOException
IOException
public int getMaxEntriesPerBlock()
Copyright © 2013. All rights reserved.