[Groonga-commit] groonga/grnxx at 1694ab9 [master] Add chunk_id() and offset() to grnxx::StorageNode.

アーカイブの一覧に戻る

susumu.yata null+****@clear*****
Wed May 22 16:18:28 JST 2013


susumu.yata	2013-05-22 16:18:28 +0900 (Wed, 22 May 2013)

  New Revision: 1694ab972058a5e0928cd8f025a4929b7cfe2a1c
  https://github.com/groonga/grnxx/commit/1694ab972058a5e0928cd8f025a4929b7cfe2a1c

  Message:
    Add chunk_id() and offset() to grnxx::StorageNode.

  Modified files:
    lib/grnxx/storage.cpp
    lib/grnxx/storage.hpp

  Modified: lib/grnxx/storage.cpp (+8 -0)
===================================================================
--- lib/grnxx/storage.cpp    2013-05-22 12:37:15 +0900 (0e644b6)
+++ lib/grnxx/storage.cpp    2013-05-22 16:18:28 +0900 (6e99095)
@@ -114,6 +114,14 @@ StorageNodeStatus StorageNode::status() const {
   return header_->status;
 }
 
+uint16_t StorageNode::chunk_id() const {
+  return header_->chunk_id;
+}
+
+uint64_t StorageNode::offset() const {
+  return header_->offset;
+}
+
 uint64_t StorageNode::size() const {
   return header_->size;
 }

  Modified: lib/grnxx/storage.hpp (+4 -0)
===================================================================
--- lib/grnxx/storage.hpp    2013-05-22 12:37:15 +0900 (36a65c5)
+++ lib/grnxx/storage.hpp    2013-05-22 16:18:28 +0900 (228b44a)
@@ -113,6 +113,10 @@ class StorageNode {
   uint32_t id() const;
   // Return the status.
   StorageNodeStatus status() const;
+  // Return the ID of the chunk to which the node belongs.
+  uint16_t chunk_id() const;
+  // Return the offset in chunk.
+  uint64_t offset() const;
   // Return the body size.
   uint64_t size() const;
   // Return the last modified time.
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る