public class TestRowEncoder extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
BLOCK_START |
protected PrefixTreeBlockMeta |
blockMetaReader |
protected PrefixTreeBlockMeta |
blockMetaWriter |
protected ByteBuffer |
buffer |
protected PrefixTreeEncoder |
encoder |
protected boolean |
includeMemstoreTS |
protected byte[] |
inputBytes |
protected List<KeyValue> |
inputKvs |
protected ByteArrayInputStream |
is |
protected ByteArrayOutputStream |
os |
protected byte[] |
outputBytes |
protected TestRowData |
rows |
protected PrefixTreeArraySearcher |
searcher |
protected int |
totalBytes |
Constructor and Description |
---|
TestRowEncoder(TestRowData testRows) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertKeyAndValueEqual(Cell expected,
Cell actual)
helper
|
void |
compile() |
static Collection<Object[]> |
parameters() |
void |
testEncoderOutput() |
void |
testForwardScanner() |
void |
testIndividualBlockMetaAssertions() |
void |
testReverseScanner()
probably not needed since testReverseScannerWithJitter() below is more thorough
|
void |
testReverseScannerWithJitter()
Exercise the nubCellsRemain variable by calling next+previous.
|
protected static int BLOCK_START
protected TestRowData rows
protected boolean includeMemstoreTS
protected ByteArrayOutputStream os
protected PrefixTreeEncoder encoder
protected int totalBytes
protected PrefixTreeBlockMeta blockMetaWriter
protected byte[] outputBytes
protected ByteBuffer buffer
protected ByteArrayInputStream is
protected PrefixTreeBlockMeta blockMetaReader
protected byte[] inputBytes
protected PrefixTreeArraySearcher searcher
public TestRowEncoder(TestRowData testRows)
public static Collection<Object[]> parameters()
public void compile() throws IOException
IOException
public void testEncoderOutput() throws IOException
IOException
public void testForwardScanner()
public void testReverseScanner()
public void testReverseScannerWithJitter()
public void testIndividualBlockMetaAssertions()