parent
7364348d04
commit
fe18341585
@ -1,5 +1,14 @@
|
||||
cc_library(header SRCS header.cc)
|
||||
cc_test(header_test SRCS header_test.cc DEPS header)
|
||||
# internal library.
|
||||
cc_library(io SRCS io.cc DEPS stringpiece)
|
||||
cc_test(io_test SRCS io_test.cc DEPS io)
|
||||
cc_library(header SRCS header.cc DEPS io)
|
||||
cc_test(header_test SRCS header_test.cc DEPS header)
|
||||
cc_library(chunk SRCS chunk.cc DEPS snappy)
|
||||
cc_test(chunk_test SRCS chunk_test.cc DEPS chunk)
|
||||
cc_library(range_scanner SRCS range_scanner.cc DEPS io chunk)
|
||||
cc_test(range_scanner_test SRCS range_scanner_test.cc DEPS range_scanner)
|
||||
cc_library(scanner SRCS scanner.cc DEPS range_scanner)
|
||||
cc_test(scanner_test SRCS scanner_test.cc DEPS scanner)
|
||||
# exported library.
|
||||
cc_library(recordio SRCS recordio.cc DEPS scanner chunk header)
|
||||
cc_test(recordio_test SRCS recordio_test.cc DEPS scanner)
|
||||
|
@ -0,0 +1,23 @@
|
||||
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "paddle/fluid/recordio/range_scanner.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
using namespace paddle::recordio;
|
||||
|
||||
TEST(RangeScanner, Recordio) {
|
||||
Stream* fo = Stream::Open("/tmp/record_range", "w");
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#pragma once
|
||||
|
||||
#include "paddle/fluid/recordio/chunk.h"
|
||||
#include "paddle/fluid/recordio/header.h"
|
||||
#include "paddle/fluid/recordio/io.h"
|
||||
#include "paddle/fluid/recordio/scanner.h"
|
||||
#include "paddle/fluid/recordio/writer.h"
|
Loading…
Reference in new issue