wide_columns.cc 649 B

1234567891011121314151617181920212223
  1. // Copyright (c) Meta Platforms, Inc. and affiliates.
  2. // This source code is licensed under both the GPLv2 (found in the
  3. // COPYING file in the root directory) and Apache 2.0 License
  4. // (found in the LICENSE.Apache file in the root directory).
  5. #include "rocksdb/wide_columns.h"
  6. #include "db/wide/wide_column_serialization.h"
  7. namespace ROCKSDB_NAMESPACE {
  8. const Slice kDefaultWideColumnName;
  9. const WideColumns kNoWideColumns;
  10. Status PinnableWideColumns::CreateIndexForWideColumns() {
  11. columns_.clear();
  12. Slice value_copy = value_;
  13. return WideColumnSerialization::Deserialize(value_copy, columns_);
  14. }
  15. } // namespace ROCKSDB_NAMESPACE