Class Fragmenter_Namespace::FragmentInfo

class FragmentInfo

Used by Fragmenter classes to store info about each fragment - the fragment id and number of tuples(rows) currently stored by that fragment.

Public Functions

FragmentInfo()
void setChunkMetadataMap(const ChunkMetadataMap &chunk_metadata_map)
void setChunkMetadata(const int col, std::shared_ptr<ChunkMetadata> chunkMetadata)
const ChunkMetadataMap &getChunkMetadataMap() const
const ChunkMetadataMap &getChunkMetadataMapPhysical() const
ChunkMetadataMap getChunkMetadataMapPhysicalCopy() const
size_t getNumTuples() const
size_t getPhysicalNumTuples() const
bool isEmptyPhysicalFragment() const
void setPhysicalNumTuples(const size_t physNumTuples)
void invalidateChunkMetadataMap() const
void invalidateNumTuples() const

Public Members

int fragmentId
size_t shadowNumTuples
std::vector<int> deviceIds
int physicalTableId
int shard
ChunkMetadataMap shadowChunkMetadataMap
ResultSet *resultSet
std::shared_ptr<std::mutex> resultSetMutex

Public Static Functions

static void setUnconditionalVacuum(const double unconditionalVacuum)

Private Members

size_t numTuples
ChunkMetadataMap chunkMetadataMap
bool synthesizedNumTuplesIsValid
bool synthesizedMetadataIsValid

Private Static Attributes

bool unconditionalVacuum_ = {false}

Friends

friend Fragmenter_Namespace::FragmentInfo::InsertOrderFragmenter