CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StaticOffsetDetector Class Reference

#include <chunk_detector.h>

Inheritance diagram for StaticOffsetDetector:
Collaboration diagram for StaticOffsetDetector:

Public Member Functions

 StaticOffsetDetector (uint64_t s)
 
bool MightFindChunks (uint64_t size) const
 
- Public Member Functions inherited from ChunkDetector
 ChunkDetector ()
 
virtual ~ChunkDetector ()
 
uint64_t FindNextCutMark (BlockItem *block)
 

Protected Member Functions

virtual uint64_t DoFindNextCutMark (BlockItem *buffer)
 
- Protected Member Functions inherited from ChunkDetector
virtual uint64_t DoCut (uint64_t offset)
 
virtual uint64_t NoCut (uint64_t)
 
uint64_t last_cut () const
 
uint64_t offset () const
 

Private Attributes

const uint64_t chunk_size_
 

Detailed Description

The StaticOffsetDetector cuts files on a hard threshold and generates uniform sized Chunks.

Definition at line 61 of file chunk_detector.h.

Constructor & Destructor Documentation

StaticOffsetDetector::StaticOffsetDetector ( uint64_t  s)
inlineexplicit

Definition at line 63 of file chunk_detector.h.

Member Function Documentation

uint64_t StaticOffsetDetector::DoFindNextCutMark ( BlockItem buffer)
protectedvirtual

Implements ChunkDetector.

Definition at line 26 of file chunk_detector.cc.

Here is the call graph for this function:

bool StaticOffsetDetector::MightFindChunks ( uint64_t  size) const
inlinevirtual

Implements ChunkDetector.

Definition at line 64 of file chunk_detector.h.

Member Data Documentation

const uint64_t StaticOffsetDetector::chunk_size_
private

Definition at line 70 of file chunk_detector.h.

Referenced by DoFindNextCutMark(), and MightFindChunks().


The documentation for this class was generated from the following files: