fork of https://github.com/oxigraph/rocksdb and https://github.com/facebook/rocksdb for nextgraph and oxigraph
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
46 lines
1.3 KiB
8 years ago
|
// Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
||
8 years ago
|
// This source code is licensed under both the GPLv2 (found in the
|
||
|
// COPYING file in the root directory) and Apache 2.0 License
|
||
|
// (found in the LICENSE.Apache file in the root directory).
|
||
8 years ago
|
// This source code is also licensed under the GPLv2 license found in the
|
||
|
// COPYING file in the root directory of this source tree.
|
||
|
|
||
|
#pragma once
|
||
|
#include <memory>
|
||
|
#include "util/testharness.h"
|
||
8 years ago
|
#include "utilities/cassandra/format.h"
|
||
|
#include "utilities/cassandra/serialize.h"
|
||
8 years ago
|
|
||
|
namespace rocksdb {
|
||
|
namespace cassandra {
|
||
|
extern const char kData[];
|
||
|
extern const char kExpiringData[];
|
||
|
extern const int32_t kLocalDeletionTime;
|
||
|
extern const int32_t kTtl;
|
||
|
extern const int8_t kColumn;
|
||
|
extern const int8_t kTombstone;
|
||
|
extern const int8_t kExpiringColumn;
|
||
|
|
||
|
|
||
8 years ago
|
std::shared_ptr<ColumnBase> CreateTestColumn(int8_t mask,
|
||
8 years ago
|
int8_t index,
|
||
|
int64_t timestamp);
|
||
|
|
||
|
RowValue CreateTestRowValue(
|
||
|
std::vector<std::tuple<int8_t, int8_t, int64_t>> column_specs);
|
||
|
|
||
|
RowValue CreateRowTombstone(int64_t timestamp);
|
||
|
|
||
|
void VerifyRowValueColumns(
|
||
8 years ago
|
std::vector<std::shared_ptr<ColumnBase>> &columns,
|
||
8 years ago
|
std::size_t index_of_vector,
|
||
|
int8_t expected_mask,
|
||
|
int8_t expected_index,
|
||
|
int64_t expected_timestamp
|
||
|
);
|
||
|
|
||
8 years ago
|
int64_t ToMicroSeconds(int64_t seconds);
|
||
|
|
||
8 years ago
|
}
|
||
|
}
|