Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ enable_testing()
set (EXAMPLE_DIRECTORY ${CMAKE_SOURCE_DIR}/examples)

add_subdirectory(c++)
add_subdirectory(tools-c++)
add_subdirectory(tools)

# Add another target called test-out that prints the results on failure
if (CMAKE_CONFIGURATION_TYPES)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
34 changes: 17 additions & 17 deletions c++/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ CHECK_CXX_SOURCE_RUNS("
)

configure_file (
"orc/Adaptor.hh.in"
"${CMAKE_CURRENT_BINARY_DIR}/orc/Adaptor.hh"
"Adaptor.hh.in"
"${CMAKE_CURRENT_BINARY_DIR}/Adaptor.hh"
)

include_directories (
Expand All @@ -104,23 +104,23 @@ add_custom_command(OUTPUT orc_proto.pb.h orc_proto.pb.cc
)

add_library (orc STATIC
"${CMAKE_CURRENT_BINARY_DIR}/orc/Adaptor.hh"
"${CMAKE_CURRENT_BINARY_DIR}/Adaptor.hh"
orc_proto.pb.h
wrap/orc-proto-wrapper.cc
orc/ByteRLE.cc
orc/ColumnPrinter.cc
orc/ColumnReader.cc
orc/Compression.cc
orc/Exceptions.cc
orc/Int128.cc
orc/MemoryPool.cc
orc/OrcFile.cc
orc/Reader.cc
orc/RLEv1.cc
orc/RLEv2.cc
orc/RLE.cc
orc/TypeImpl.cc
orc/Vector.cc
ByteRLE.cc
ColumnPrinter.cc
ColumnReader.cc
Compression.cc
Exceptions.cc
Int128.cc
MemoryPool.cc
OrcFile.cc
Reader.cc
RLEv1.cc
RLEv2.cc
RLE.cc
TypeImpl.cc
Vector.cc
)

install(TARGETS orc DESTINATION lib)
Expand Down
3 changes: 2 additions & 1 deletion c++/src/orc/ColumnPrinter.cc → c++/src/ColumnPrinter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "orc/ColumnPrinter.hh"
#include "orc/orc-config.hh"

#include "Adaptor.hh"

#include <limits>
#include <sstream>
#include <stdexcept>
Expand Down
5 changes: 3 additions & 2 deletions c++/src/orc/ColumnReader.cc → c++/src/ColumnReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "orc/Int128.hh"

#include "Adaptor.hh"
#include "ByteRLE.hh"
#include "ColumnReader.hh"
#include "Exceptions.hh"
#include "orc/Int128.hh"
#include "RLE.hh"

#include <math.h>
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion c++/src/orc/Compression.cc → c++/src/Compression.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "Compression.hh"
#include "Exceptions.hh"

Expand Down
3 changes: 2 additions & 1 deletion c++/src/orc/Compression.hh → c++/src/Compression.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
#ifndef ORC_COMPRESSION_HH
#define ORC_COMPRESSION_HH

#include "orc/Adaptor.hh"
#include "orc/OrcFile.hh"

#include "Adaptor.hh"
#include "wrap/zero-copy-stream-wrapper.h"

#include <list>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion c++/src/orc/Exceptions.hh → c++/src/Exceptions.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef ORC_EXCEPTIONS_HH
#define ORC_EXCEPTIONS_HH

#include "orc/Adaptor.hh"
#include "Adaptor.hh"

#include <stdexcept>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion c++/src/orc/Int128.cc → c++/src/Int128.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

#include "orc/Int128.hh"
#include "orc/Adaptor.hh"
#include "Adaptor.hh"

#include <iomanip>
#include <iostream>
Expand Down
3 changes: 2 additions & 1 deletion c++/src/orc/MemoryPool.cc → c++/src/MemoryPool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "orc/Int128.hh"
#include "orc/MemoryPool.hh"

#include "Adaptor.hh"

#include <cstdlib>
#include <iostream>
#include <string.h>
Expand Down
3 changes: 2 additions & 1 deletion c++/src/orc/OrcFile.cc → c++/src/OrcFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "orc/OrcFile.hh"

#include "Adaptor.hh"
#include "Exceptions.hh"

#include <errno.h>
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions c++/src/orc/RLEv1.cc → c++/src/RLEv1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "RLEv1.hh"
#include "Adaptor.hh"
#include "Compression.hh"
#include "Exceptions.hh"
#include "RLEv1.hh"

#include <algorithm>

Expand Down
2 changes: 1 addition & 1 deletion c++/src/orc/RLEv1.hh → c++/src/RLEv1.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef ORC_RLEV1_HH
#define ORC_RLEV1_HH

#include "orc/Adaptor.hh"
#include "Adaptor.hh"
#include "RLE.hh"

#include <memory>
Expand Down
4 changes: 2 additions & 2 deletions c++/src/orc/RLEv2.cc → c++/src/RLEv2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "RLEv2.hh"
#include "Adaptor.hh"
#include "Compression.hh"
#include "RLEv2.hh"

#define MIN_REPEAT 3

Expand Down
4 changes: 2 additions & 2 deletions c++/src/orc/RLEv2.hh → c++/src/RLEv2.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#ifndef ORC_RLEV2_HH
#define ORC_RLEV2_HH

#include "orc/Adaptor.hh"
#include "RLE.hh"
#include "Adaptor.hh"
#include "Exceptions.hh"
#include "RLE.hh"

#include <vector>

Expand Down
7 changes: 4 additions & 3 deletions c++/src/orc/Reader.cc → c++/src/Reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "orc/Reader.hh"
#include "orc/Int128.hh"
#include "orc/OrcFile.hh"
#include "orc/Reader.hh"

#include "Adaptor.hh"
#include "ColumnReader.hh"
#include "Exceptions.hh"
#include "RLE.hh"
#include "TypeImpl.hh"
#include "orc/Int128.hh"

#include "wrap/coded-stream-wrapper.h"

Expand Down
2 changes: 1 addition & 1 deletion c++/src/orc/TypeImpl.cc → c++/src/TypeImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "Adaptor.hh"
#include "Exceptions.hh"
#include "TypeImpl.hh"

Expand Down
2 changes: 1 addition & 1 deletion c++/src/orc/TypeImpl.hh → c++/src/TypeImpl.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#ifndef TYPE_IMPL_HH
#define TYPE_IMPL_HH

#include "orc/Adaptor.hh"
#include "orc/Vector.hh"

#include "Adaptor.hh"
#include "wrap/orc-proto-wrapper.hh"

#include <vector>
Expand Down
5 changes: 3 additions & 2 deletions c++/src/orc/Vector.cc → c++/src/Vector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
* limitations under the License.
*/

#include "Exceptions.hh"
#include "orc/Vector.hh"
#include "orc/Adaptor.hh"

#include "Adaptor.hh"
#include "Exceptions.hh"

#include <iostream>
#include <sstream>
Expand Down
2 changes: 1 addition & 1 deletion c++/src/wrap/coded-stream-wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef CODED_STREAM_WRAPPER_HH
#define CODED_STREAM_WRAPPER_HH

#include "orc/Adaptor.hh"
#include "Adaptor.hh"

DIAGNOSTIC_PUSH

Expand Down
2 changes: 1 addition & 1 deletion c++/src/wrap/gmock.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// we need to disable a whole set of warnings as we include gtest.h
// restore most of the warnings after the file is loaded.

#include "orc/Adaptor.hh"
#include "Adaptor.hh"

DIAGNOSTIC_PUSH
DIAGNOSTIC_IGNORE("-Wdeprecated")
Expand Down
2 changes: 1 addition & 1 deletion c++/src/wrap/gtest-wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef GTEST_WRAPPER_H
#define GTEST_WRAPPER_H

#include "orc/Adaptor.hh"
#include "Adaptor.hh"

// we need to disable a whole set of warnings as we include gtest.h
// restore most of the warnings after the file is loaded.
Expand Down
2 changes: 1 addition & 1 deletion c++/src/wrap/orc-proto-wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "Adaptor.hh"

DIAGNOSTIC_IGNORE("-Wconversion")
DIAGNOSTIC_IGNORE("-Wdeprecated")
Expand Down
2 changes: 1 addition & 1 deletion c++/src/wrap/orc-proto-wrapper.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef ORC_PROTO_WRAPPER_HH
#define ORC_PROTO_WRAPPER_HH

#include "orc/Adaptor.hh"
#include "Adaptor.hh"

DIAGNOSTIC_PUSH
DIAGNOSTIC_IGNORE("-Wconversion")
Expand Down
2 changes: 1 addition & 1 deletion c++/src/wrap/snappy-wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef SNAPPY_WRAPPER_HH
#define SNAPPY_WRAPPER_HH

#include "orc/Adaptor.hh"
#include "Adaptor.hh"

DIAGNOSTIC_PUSH

Expand Down
2 changes: 1 addition & 1 deletion c++/src/wrap/zero-copy-stream-wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef ZERO_COPY_STREAM_WRAPPER_HH
#define ZERO_COPY_STREAM_WRAPPER_HH

#include "orc/Adaptor.hh"
#include "Adaptor.hh"

DIAGNOSTIC_PUSH

Expand Down
14 changes: 7 additions & 7 deletions c++/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ include_directories(
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX11_FLAGS} ${WARN_FLAGS}")

add_executable (test-orc
orc/TestByteRle.cc
orc/TestColumnPrinter.cc
orc/TestColumnReader.cc
orc/TestCompression.cc
orc/TestDriver.cc
orc/TestInt128.cc
orc/TestRle.cc
TestByteRle.cc
TestColumnPrinter.cc
TestColumnReader.cc
TestCompression.cc
TestDriver.cc
TestInt128.cc
TestRle.cc
)

target_link_libraries (test-orc
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions c++/test/orc/TestByteRle.cc → c++/test/TestByteRle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "orc/ByteRLE.hh"
#include "wrap/gtest-wrapper.h"
#include "Adaptor.hh"
#include "ByteRLE.hh"
#include "OrcTest.hh"
#include "wrap/gtest-wrapper.h"

#include <iostream>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*/

#include "orc/ColumnPrinter.hh"
#include "orc/Exceptions.hh"

#include "Exceptions.hh"
#include "wrap/gtest-wrapper.h"

namespace orc {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "orc/ColumnReader.hh"
#include "orc/Exceptions.hh"

#include "Adaptor.hh"
#include "ColumnReader.hh"
#include "Exceptions.hh"
#include "OrcTest.hh"

#include "wrap/orc-proto-wrapper.hh"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* limitations under the License.
*/

#include "orc/Compression.hh"
#include "orc/Exceptions.hh"
#include "wrap/gtest-wrapper.h"
#include "Compression.hh"
#include "Exceptions.hh"
#include "OrcTest.hh"
#include "wrap/gtest-wrapper.h"

#include <cstdio>
#include <fstream>
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions c++/test/orc/TestRle.cc → c++/test/TestRle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
* limitations under the License.
*/

#include "orc/Adaptor.hh"
#include "orc/Compression.hh"
#include "orc/RLE.hh"
#include "wrap/gtest-wrapper.h"
#include "Adaptor.hh"
#include "Compression.hh"
#include "OrcTest.hh"
#include "RLE.hh"
#include "wrap/gtest-wrapper.h"

#include <iostream>
#include <vector>
Expand Down
Loading