static class SecureWALCellCodec.EncryptedKvEncoder extends KeyValueCodecWithTags.KeyValueEncoder
Modifier and Type | Field and Description |
---|---|
private Encryptor |
encryptor |
private ThreadLocal<byte[]> |
iv |
flushed, out
Constructor and Description |
---|
SecureWALCellCodec.EncryptedKvEncoder(OutputStream os) |
SecureWALCellCodec.EncryptedKvEncoder(OutputStream os,
Encryptor encryptor) |
Modifier and Type | Method and Description |
---|---|
protected void |
incrementIv(int v) |
protected byte[] |
nextIv() |
void |
write(Cell cell)
Implementation must copy the entire state of the Cell.
|
checkFlushed, flush, getOuputStream
private Encryptor encryptor
private final ThreadLocal<byte[]> iv
public SecureWALCellCodec.EncryptedKvEncoder(OutputStream os)
public SecureWALCellCodec.EncryptedKvEncoder(OutputStream os, Encryptor encryptor)
protected byte[] nextIv()
protected void incrementIv(int v)
public void write(Cell cell) throws IOException
CellOutputStream
write
in interface CellOutputStream
write
in class KeyValueCodecWithTags.KeyValueEncoder
cell
- Cell to write outIOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.