org.apache.hadoop.hive.ql.io
Class TestRCFile

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.hadoop.hive.ql.io.TestRCFile
All Implemented Interfaces:
junit.framework.Test

public class TestRCFile
extends junit.framework.TestCase

TestRCFile.


Constructor Summary
TestRCFile()
           
 
Method Summary
 void fullyReadTest(org.apache.hadoop.fs.FileSystem fs, int count, org.apache.hadoop.fs.Path file)
           
static void main(String[] args)
          For debugging and testing.
 void testCloseForErroneousRCFile()
           
 void testExplicitRCFileHeader()
           
 void testNonExplicitRCFileHeader()
           
 void testRCFileHeader(char[] expected, org.apache.hadoop.conf.Configuration conf)
           
 void testReadCorruptFile()
           
 void testReadOldFileHeader()
           
 void testSimpleReadAndWrite()
           
 void testSynAndSplit()
           
 void testWriteAndFullyRead()
           
 void testWriteAndPartialRead()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestRCFile

public TestRCFile()
Method Detail

testSimpleReadAndWrite

public void testSimpleReadAndWrite()
                            throws IOException,
                                   SerDeException
Throws:
IOException
SerDeException

testReadCorruptFile

public void testReadCorruptFile()
                         throws IOException,
                                SerDeException
Throws:
IOException
SerDeException

testReadOldFileHeader

public void testReadOldFileHeader()
                           throws IOException
Throws:
IOException

testWriteAndFullyRead

public void testWriteAndFullyRead()
                           throws IOException,
                                  SerDeException
Throws:
IOException
SerDeException

testWriteAndPartialRead

public void testWriteAndPartialRead()
                             throws IOException,
                                    SerDeException
Throws:
IOException
SerDeException

main

public static void main(String[] args)
                 throws Exception
For debugging and testing.

Throws:
Exception

fullyReadTest

public void fullyReadTest(org.apache.hadoop.fs.FileSystem fs,
                          int count,
                          org.apache.hadoop.fs.Path file)
                   throws IOException,
                          SerDeException
Throws:
IOException
SerDeException

testSynAndSplit

public void testSynAndSplit()
                     throws IOException
Throws:
IOException

testCloseForErroneousRCFile

public void testCloseForErroneousRCFile()
                                 throws IOException
Throws:
IOException

testRCFileHeader

public void testRCFileHeader(char[] expected,
                             org.apache.hadoop.conf.Configuration conf)
                      throws IOException,
                             SerDeException
Throws:
IOException
SerDeException

testNonExplicitRCFileHeader

public void testNonExplicitRCFileHeader()
                                 throws IOException,
                                        SerDeException
Throws:
IOException
SerDeException

testExplicitRCFileHeader

public void testExplicitRCFileHeader()
                              throws IOException,
                                     SerDeException
Throws:
IOException
SerDeException


Copyright © 2013 The Apache Software Foundation