public class TestRCFile
extends junit.framework.TestCase
Constructor and Description |
---|
TestRCFile() |
Modifier and Type | Method and Description |
---|---|
void |
fullyReadTest(FileSystem fs,
int count,
Path file) |
static void |
main(java.lang.String[] args)
For debugging and testing.
|
void |
testCloseForErroneousRCFile() |
void |
testExplicitRCFileHeader() |
void |
testGetColumn()
Tests
RCFile.Reader.getColumn(int, BytesRefArrayWritable) method. |
void |
testNonExplicitRCFileHeader() |
void |
testRCFileHeader(char[] expected,
Configuration conf) |
void |
testReadCorruptFile() |
void |
testReadOldFileHeader() |
void |
testSimpleReadAndWrite() |
void |
testSynAndSplit() |
void |
testSync() |
void |
testWriteAndFullyRead() |
void |
testWriteAndPartialRead() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
public void testSimpleReadAndWrite() throws java.io.IOException, SerDeException
java.io.IOException
SerDeException
public void testGetColumn() throws java.io.IOException
RCFile.Reader.getColumn(int, BytesRefArrayWritable)
method.java.io.IOException
public void testReadCorruptFile() throws java.io.IOException, SerDeException
java.io.IOException
SerDeException
public void testReadOldFileHeader() throws java.io.IOException
java.io.IOException
public void testWriteAndFullyRead() throws java.io.IOException, SerDeException
java.io.IOException
SerDeException
public void testWriteAndPartialRead() throws java.io.IOException, SerDeException
java.io.IOException
SerDeException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void fullyReadTest(FileSystem fs, int count, Path file) throws java.io.IOException, SerDeException
java.io.IOException
SerDeException
public void testSynAndSplit() throws java.io.IOException
java.io.IOException
public void testSync() throws java.io.IOException
java.io.IOException
public void testCloseForErroneousRCFile() throws java.io.IOException
java.io.IOException
public void testRCFileHeader(char[] expected, Configuration conf) throws java.io.IOException, SerDeException
java.io.IOException
SerDeException
public void testNonExplicitRCFileHeader() throws java.io.IOException, SerDeException
java.io.IOException
SerDeException
public void testExplicitRCFileHeader() throws java.io.IOException, SerDeException
java.io.IOException
SerDeException
Copyright © 2012 The Apache Software Foundation