public abstract class BasicState extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_SIZE |
Constructor and Description |
---|
BasicState() |
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize() |
protected OutputStream |
getNullOutputStream() |
protected Random |
getRandom() |
protected Decoder |
newDecoder(byte[] buf) |
protected Encoder |
newEncoder(boolean direct,
OutputStream out) |
protected Encoder |
newEncoder(int blockSize,
OutputStream out) |
public static final int BATCH_SIZE
protected Random getRandom()
protected Decoder newDecoder(byte[] buf)
protected Encoder newEncoder(boolean direct, OutputStream out) throws IOException
IOException
protected Encoder newEncoder(int blockSize, OutputStream out) throws IOException
IOException
public int getBatchSize()
protected OutputStream getNullOutputStream()
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.