org.apache.hadoop.hive.ql.io.orc
Class TestOrcFile

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.orc.TestOrcFile

public class TestOrcFile
extends Object

Tests for the top level reader/streamFactory of ORC files.


Nested Class Summary
static class TestOrcFile.AllTypesRow
           
static class TestOrcFile.BigRow
           
static class TestOrcFile.InnerStruct
           
static class TestOrcFile.MiddleStruct
           
 
Field Summary
 org.junit.rules.TestName testCaseName
           
 
Constructor Summary
TestOrcFile()
           
 
Method Summary
 void columnProjection()
           
 void emptyFile()
           
 void metaData()
           
 void openFileSystem()
           
 void test1()
           
 void testMemoryManagement()
           
 void testPredicatePushdown()
           
 void testReadFormat_0_11()
           
 void testSeek()
           
 void testSnappy()
          Read and write a randomly generated snappy file.
 void testUnionAndTimestamp()
          We test union, timestamp, and decimal separately since we need to make the object inspector manually.
 void testWithoutIndex()
          Read and write a randomly generated snappy file.
 void testWriteFormat_0_11()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testCaseName

public org.junit.rules.TestName testCaseName
Constructor Detail

TestOrcFile

public TestOrcFile()
Method Detail

openFileSystem

public void openFileSystem()
                    throws Exception
Throws:
Exception

testWriteFormat_0_11

public void testWriteFormat_0_11()
                          throws Exception
Throws:
Exception

testReadFormat_0_11

public void testReadFormat_0_11()
                         throws Exception
Throws:
Exception

test1

public void test1()
           throws Exception
Throws:
Exception

columnProjection

public void columnProjection()
                      throws Exception
Throws:
Exception

emptyFile

public void emptyFile()
               throws Exception
Throws:
Exception

metaData

public void metaData()
              throws Exception
Throws:
Exception

testUnionAndTimestamp

public void testUnionAndTimestamp()
                           throws Exception
We test union, timestamp, and decimal separately since we need to make the object inspector manually. (The Hive reflection-based doesn't handle them properly.)

Throws:
Exception

testSnappy

public void testSnappy()
                throws Exception
Read and write a randomly generated snappy file.

Throws:
Exception

testWithoutIndex

public void testWithoutIndex()
                      throws Exception
Read and write a randomly generated snappy file.

Throws:
Exception

testSeek

public void testSeek()
              throws Exception
Throws:
Exception

testMemoryManagement

public void testMemoryManagement()
                          throws Exception
Throws:
Exception

testPredicatePushdown

public void testPredicatePushdown()
                           throws Exception
Throws:
Exception


Copyright © 2012 The Apache Software Foundation