24 #include "../Catalog/ColumnDescriptor.h"
25 #include "../DataMgr/Chunk/Chunk.h"
26 #include "../DataMgr/ChunkMetadata.h"
27 #include "../Shared/heavyai_shared_mutex.h"
28 #include "../Shared/types.h"
30 namespace Data_Namespace {
36 namespace Fragmenter_Namespace {
37 class InsertOrderFragmenter;
52 std::map<int, std::shared_ptr<Chunk_NS::Chunk> >
chunks;
73 std::vector<DataBlockPtr>
data;
179 #endif // FRAGMENTER_H
static void setUnconditionalVacuum(const double unconditionalVacuum)
size_t getNumTuples() const
ChunkMetadataMap getChunkMetadataMapPhysicalCopy() const
std::vector< int > deviceIds
void invalidateNumTuples() const
void setChunkMetadata(const int col, std::shared_ptr< ChunkMetadata > chunkMetadata)
const ChunkMetadataMap & getChunkMetadataMapPhysical() const
std::vector< bool > is_default
size_t getPhysicalNumTuples() const
std::shared_ptr< std::mutex > resultSetMutex
std::vector< FragmentInfo > fragments
bool isEmptyPhysicalFragment() const
The InsertOrderFragmenter is a child class of AbstractFragmenter, and fragments data in insert order...
std::vector< int > chunkKeyPrefix
int tableId
identifies the database into which the data is being inserted
ChunkMetadataMap chunkMetadataMap
size_t getPhysicalNumTuples() const
size_t numRows
a vector of column ids for the row(s) being inserted
bool synthesizedNumTuplesIsValid
size_t getNumTuples() const
Used by Fragmenter classes to store info about each fragment - the fragment id and number of tuples(r...
size_t getFragmentNumTuplesUpperBound() const
An AbstractBuffer is a unit of data management for a data manager.
const ChunkMetadataMap & getChunkMetadataMap() const
void invalidateChunkMetadataMap() const
std::vector< DataBlockPtr > data
the number of rows being inserted
std::map< int, std::shared_ptr< Chunk_NS::Chunk > > chunks
std::vector< size_t > valid_row_indices
static bool unconditionalVacuum_
size_t getNumTuplesUpperBound() const
bool g_enable_watchdog false
void setPhysicalNumTuples(const size_t physNumTuples)
void setPhysicalNumTuples(const size_t physNumTuples)
The data to be inserted using the fragment manager.
bool synthesizedMetadataIsValid
std::vector< int > columnIds
identifies the table into which the data is being inserted
ChunkMetadataMap shadowChunkMetadataMap
ResultSet(const std::vector< TargetInfo > &targets, const ExecutorDeviceType device_type, const QueryMemoryDescriptor &query_mem_desc, const std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner, const unsigned block_size, const unsigned grid_size)
void setChunkMetadataMap(const ChunkMetadataMap &chunk_metadata_map)