17 #ifndef INDEX_WRITE_TABLE_V201_V301_CLASS_HEADER
18 #define INDEX_WRITE_TABLE_V201_V301_CLASS_HEADER
37 IndexTable():index_table_offset(0), index_count(0), last_index(0), index_offset(0) {}
38 uint32_t index_table_offset;
41 timestamp_t last_index;
43 uint64_t index_offset;
46 struct MasterIndexTable:
public std::deque<ChunkRef>,
public IndexTable
50 MasterIndexTable _master_index;
52 struct StreamIndexTable:
public std::deque<StreamRef>,
public IndexTable
56 StreamIndexTable _stream_index_tables[max_indexed_streams + 1];
58 timestamp_t _index_delay;
66 void create(timestamp_t index_delay = 1000000);
113 uint64_t stream_index,
114 uint64_t chunk_index,
117 timestamp_t time_stamp,
119 bool& index_entry_appended);
126 void remove(uint64_t chunk_index, uint16_t stream_id);
Definition: indexwritetable_v201_v301.h:33
void remove(uint64_t chunk_index, uint16_t stream_id)
void create(timestamp_t index_delay=1000000)
uint64_t getIndexTableOffset(uint16_t stream_id) const
void append(uint16_t stream_id, uint64_t stream_index, uint64_t chunk_index, uint64_t file_pos, uint32_t size, timestamp_t time_stamp, uint32_t flags, bool &index_entry_appended)
uint16_t getMaxStreamId() const
uint64_t getIndexOffset(uint16_t stream_id) const
size_t getItemCount(uint16_t stream_id) const
uint64_t getBufferSize(uint16_t stream_id) const
void copyToBuffer(uint16_t stream_id, void *buffer) const
namespace for IFHD File library
Definition: indexedfile_types.h:30