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, toStringpublic void testSimpleReadAndWrite()
throws java.io.IOException,
SerDeException
java.io.IOExceptionSerDeExceptionpublic void testGetColumn()
throws java.io.IOException
RCFile.Reader.getColumn(int, BytesRefArrayWritable) method.java.io.IOExceptionpublic void testReadCorruptFile()
throws java.io.IOException,
SerDeException
java.io.IOExceptionSerDeExceptionpublic void testReadOldFileHeader()
throws java.io.IOException
java.io.IOExceptionpublic void testWriteAndFullyRead()
throws java.io.IOException,
SerDeException
java.io.IOExceptionSerDeExceptionpublic void testWriteAndPartialRead()
throws java.io.IOException,
SerDeException
java.io.IOExceptionSerDeExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic void fullyReadTest(FileSystem fs,
int count,
Path file)
throws java.io.IOException,
SerDeException
java.io.IOExceptionSerDeExceptionpublic void testSynAndSplit()
throws java.io.IOException
java.io.IOExceptionpublic void testSync()
throws java.io.IOException
java.io.IOExceptionpublic void testCloseForErroneousRCFile()
throws java.io.IOException
java.io.IOExceptionpublic void testRCFileHeader(char[] expected,
Configuration conf)
throws java.io.IOException,
SerDeException
java.io.IOExceptionSerDeExceptionpublic void testNonExplicitRCFileHeader()
throws java.io.IOException,
SerDeException
java.io.IOExceptionSerDeExceptionpublic void testExplicitRCFileHeader()
throws java.io.IOException,
SerDeException
java.io.IOExceptionSerDeExceptionCopyright © 2012 The Apache Software Foundation