Data Structures | |
class | Bitmap16 |
A vertical representation of the data. More... | |
class | Bitmap32 |
A vertical representation of the data. More... | |
class | Bitmap4 |
A vertical representation of the data. More... | |
class | Bitmap64 |
A vertical representation of the data. More... | |
class | Bitmap8 |
A vertical representation of the data. More... | |
class | SeqBitmap |
A representation of a sequence (or an item). More... | |
Defines | |
#define | DEBUG_SEQBITMAPCOUNT |
Functions | |
void | SeqBitmap::Init () |
Initialize the lookup tables to be used by this SeqBitmap. | |
void | SeqBitmap::MemAlloc (int size4, int size8, int size16, int size32, int size64) |
Initialize all SeqBitmap memory for duration of program. | |
void | SeqBitmap::MemDealloc () |
Delete all of SeqBitmap's memory. | |
void | SeqBitmap::Destroy () |
void | SeqBitmap::Or (const SeqBitmap &b1, const SeqBitmap &b2) |
Bitwise OR 2 SeqBitmaps and store the result. | |
void | SeqBitmap::And (const SeqBitmap &b1, const SeqBitmap &b2) |
Bitwise AND 2 SeqBitmaps and store the result. | |
int | SeqBitmap::Count () |
find the support of this bitmap | |
void | SeqBitmap::CreateSBitmap (const SeqBitmap &iBitmap) |
create a s-bitmap from an i-bitmap | |
void | SeqBitmap::CreateCBitmap (const SeqBitmap &iBitmap) |
create a cbitmap from an i-bitmap | |
void | SeqBitmap::PrintBitmap (ofstream &testFile) |
Print bitmap to an output stream. | |
void | SeqBitmap::CountSmaller (int &size4, int &size8, int &size16, int &size32, int &size64, ostream &out) |
Returns the sizes to allocate for the new compressed f1 bitmap. | |
void | SeqBitmap::Compress4 (SeqBitmap *refBitmap, SeqBitmap *compBitmap, int &pos4) |
Compress the Bitmap4 component of a SeqBitmap to a compressed SeqBitmap. | |
void | SeqBitmap::Compress8 (SeqBitmap *refBitmap, SeqBitmap *compBitmap, int &pos4, int &pos8) |
Compress the Bitmap8 component of a SeqBitmap to a compressed SeqBitmap. | |
void | SeqBitmap::Compress16 (SeqBitmap *refBitmap, SeqBitmap *compBitmap, int &pos4, int &pos8, int &pos16) |
Compress the Bitmap16 component of a SeqBitmap to a compressed SeqBitmap. | |
void | SeqBitmap::Compress32 (SeqBitmap *refBitmap, SeqBitmap *compBitmap, int &pos4, int &pos8, int &pos16, int &pos32) |
Compress the Bitmap32 component of a SeqBitmap to a compressed SeqBitmap. | |
void | SeqBitmap::Compress64 (SeqBitmap *refBitmap, SeqBitmap *compBitmap, int &pos4, int &pos8, int &pos16, int &pos32, int &pos64) |
Compress the Bitmap64 component of a SeqBitmap to a compressed SeqBitmap. | |
void | SeqBitmap::printSizes (ostream &out) |
Variables | |
const int | NUM_BITMAP = 5 |
number of different bitmaps in SeqBitmap | |
const int | BITMAP_LENGTH [5] |
the size of each customer data in each bitmap | |
const int | SIZE_BYTE = 8 |
const int | SIZE_INT = sizeof(int) |
const int | SIZE_UINT = sizeof(unsigned int) |
const int | SIZE_USHORT = sizeof(unsigned short) |
const int | SHORT_PER_INT = SIZE_UINT / SIZE_USHORT |
const int | BITS_PER_INT = SIZE_UINT * SIZE_BYTE |
const int | BITS_PER_SHORT = SIZE_USHORT * SIZE_BYTE |
const unsigned int | Bit32Table [32] |
Bit32Table[i] contains a 1 at only position i. | |
const int | Bit16Table [16] |
Bit16Table[i] contains a 1 at only position i. | |
const char | CountTable [256] |
CountTable[i] contains the number of 1's in the byte value of i. | |
int const | SeqBitmap::_lookupTableSize = 0x100 |
int * | SeqBitmap::_numOnesLookupTable = 0 |
int * | SeqBitmap::_compress4LookupTable = 0 |
unsigned char ** | SeqBitmap::_compress8Table = 0 |
int | SeqBitmap::_countOr = 0 |
int | SeqBitmap::_countAnd = 0 |
int | SeqBitmap::_countCount = 0 |
int | SeqBitmap::_countCountZeros = 0 |
int | SeqBitmap::_countCountSmaller = 0 |
int | SeqBitmap::_countCreateSBitmap = 0 |
int | SeqBitmap::_countCreateCBitmap = 0 |
unsigned int * | SeqBitmap::_memory4 = 0 |
unsigned int * | SeqBitmap::_memory8 = 0 |
unsigned short * | SeqBitmap::_memory16 = 0 |
unsigned int * | SeqBitmap::_memory32 = 0 |
unsigned int * | SeqBitmap::_memory64 = 0 |
int | SeqBitmap::_size4 = 0 |
int | SeqBitmap::_size8 = 0 |
int | SeqBitmap::_size16 = 0 |
int | SeqBitmap::_size32 = 0 |
int | SeqBitmap::_size64 = 0 |
|
Definition at line 86 of file SeqBitmap.cpp. |
|
Bitwise AND 2 SeqBitmaps and store the result.
Definition at line 280 of file SeqBitmap.cpp. Referenced by FindSequentialPatterns(). |
|
Compress the Bitmap16 component of a SeqBitmap to a compressed SeqBitmap.
Definition at line 823 of file SeqBitmap.cpp. Referenced by Compress(). |
|
Compress the Bitmap32 component of a SeqBitmap to a compressed SeqBitmap.
Definition at line 948 of file SeqBitmap.cpp. Referenced by Compress(). |
|
Compress the Bitmap4 component of a SeqBitmap to a compressed SeqBitmap.
Definition at line 638 of file SeqBitmap.cpp. Referenced by Compress(). |
|
Compress the Bitmap64 component of a SeqBitmap to a compressed SeqBitmap.
Definition at line 1119 of file SeqBitmap.cpp. Referenced by Compress(). |
|
Compress the Bitmap8 component of a SeqBitmap to a compressed SeqBitmap.
Definition at line 728 of file SeqBitmap.cpp. Referenced by Compress(). |
|
find the support of this bitmap
Definition at line 307 of file SeqBitmap.cpp. Referenced by FindSequentialPatterns(), and StartMining(). |
|
Returns the sizes to allocate for the new compressed f1 bitmap. This will only be called by an OR bitmap during compression Definition at line 474 of file SeqBitmap.cpp. Referenced by Compress(). |
|
create a cbitmap from an i-bitmap
Definition at line 368 of file SeqBitmap.cpp. Referenced by FindSequentialPatterns(). |
|
create a s-bitmap from an i-bitmap
Definition at line 340 of file SeqBitmap.cpp. Referenced by FindSequentialPatterns(). |
|
Definition at line 220 of file SeqBitmap.cpp. Referenced by main(). |
|
Initialize the lookup tables to be used by this SeqBitmap.
Definition at line 91 of file SeqBitmap.cpp. Referenced by main(). |
|
Initialize all SeqBitmap memory for duration of program.
Definition at line 185 of file SeqBitmap.cpp. |
|
Delete all of SeqBitmap's memory.
Definition at line 209 of file SeqBitmap.cpp. Referenced by main(). |
|
Bitwise OR 2 SeqBitmaps and store the result.
Definition at line 249 of file SeqBitmap.cpp. Referenced by CreateOrBitmap(). |
|
Print bitmap to an output stream.
Definition at line 397 of file SeqBitmap.cpp. |
|
Definition at line 1372 of file SeqBitmap.cpp. |
|
Definition at line 61 of file SeqBitmap.cpp. Referenced by SeqBitmap::Compress4(), SeqBitmap::Destroy(), and SeqBitmap::Init(). |
|
Definition at line 62 of file SeqBitmap.cpp. Referenced by SeqBitmap::Compress16(), SeqBitmap::Compress32(), SeqBitmap::Compress64(), SeqBitmap::Compress8(), SeqBitmap::Destroy(), and SeqBitmap::Init(). |
|
Definition at line 66 of file SeqBitmap.cpp. Referenced by SeqBitmap::And(), and main(). |
|
Definition at line 67 of file SeqBitmap.cpp. Referenced by SeqBitmap::Count(), and main(). |
|
Definition at line 69 of file SeqBitmap.cpp. Referenced by SeqBitmap::CountSmaller(), and main(). |
|
Definition at line 68 of file SeqBitmap.cpp. Referenced by main(). |
|
Definition at line 71 of file SeqBitmap.cpp. Referenced by SeqBitmap::CreateCBitmap(), and main(). |
|
Definition at line 70 of file SeqBitmap.cpp. Referenced by SeqBitmap::CreateSBitmap(), and main(). |
|
Definition at line 65 of file SeqBitmap.cpp. Referenced by main(), and SeqBitmap::Or(). |
|
Definition at line 59 of file SeqBitmap.cpp. Referenced by SeqBitmap::Destroy(), and SeqBitmap::Init(). |
|
Definition at line 75 of file SeqBitmap.cpp. Referenced by SeqBitmap::Deallocate(), SeqBitmap::MemAlloc(), SeqBitmap::MemDealloc(), and SeqBitmap::SeqBitmap(). |
|
Definition at line 76 of file SeqBitmap.cpp. Referenced by SeqBitmap::Deallocate(), SeqBitmap::MemAlloc(), SeqBitmap::MemDealloc(), and SeqBitmap::SeqBitmap(). |
|
Definition at line 73 of file SeqBitmap.cpp. Referenced by SeqBitmap::Deallocate(), SeqBitmap::MemAlloc(), SeqBitmap::MemDealloc(), and SeqBitmap::SeqBitmap(). |
|
Definition at line 77 of file SeqBitmap.cpp. Referenced by SeqBitmap::Deallocate(), SeqBitmap::MemAlloc(), SeqBitmap::MemDealloc(), and SeqBitmap::SeqBitmap(). |
|
Definition at line 74 of file SeqBitmap.cpp. Referenced by SeqBitmap::Deallocate(), SeqBitmap::MemAlloc(), SeqBitmap::MemDealloc(), and SeqBitmap::SeqBitmap(). |
|
Definition at line 60 of file SeqBitmap.cpp. Referenced by SeqBitmap::Compress16(), SeqBitmap::Compress32(), SeqBitmap::Compress64(), SeqBitmap::Compress8(), SeqBitmap::CountSmaller(), SeqBitmap::Destroy(), and SeqBitmap::Init(). |
|
Definition at line 82 of file SeqBitmap.cpp. Referenced by SeqBitmap::MemAlloc(). |
|
Definition at line 83 of file SeqBitmap.cpp. Referenced by SeqBitmap::MemAlloc(). |
|
Definition at line 80 of file SeqBitmap.cpp. Referenced by SeqBitmap::MemAlloc(). |
|
Definition at line 84 of file SeqBitmap.cpp. Referenced by SeqBitmap::MemAlloc(). |
|
Definition at line 81 of file SeqBitmap.cpp. Referenced by SeqBitmap::MemAlloc(). |
|
Initial value: { 32768, 16384, 8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1 }
Definition at line 70 of file Tables.h. Referenced by Bitmap16::FillEmptyPosition(). |
|
Initial value: { 2147483648UL, 1073741824UL, 536870912UL, 268435456UL, 134217728, 67108864, 33554432, 16777216, 8388608, 4194304, 2097152, 1048576, 524288, 262144, 131072, 65536, 32768, 16384, 8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1 }
Definition at line 57 of file Tables.h. Referenced by Bitmap8::FillEmptyPosition(), Bitmap64::FillEmptyPosition(), Bitmap4::FillEmptyPosition(), and Bitmap32::FillEmptyPosition(). |
|
Initial value: { 4, 8, 16, 32, 64 }
Definition at line 54 of file SeqBitmap.cpp. |
|
Definition at line 52 of file Tables.h. Referenced by Bitmap4::Bitmap4(), Bitmap8::Bitmap8(), Bitmap8::CalcSize(), Bitmap4::CalcSize(), Bitmap8::FillEmptyPosition(), Bitmap64::FillEmptyPosition(), Bitmap4::FillEmptyPosition(), and Bitmap32::FillEmptyPosition(). |
|
Definition at line 53 of file Tables.h. Referenced by Bitmap16::FillEmptyPosition(). |
|
Initial value: { 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 4, 5, 5, 6, 5, 6, 6, 7, 5, 6, 6, 7, 6, 7, 7, 8 }
|
|
number of different bitmaps in SeqBitmap
Definition at line 51 of file SeqBitmap.cpp. |
|
Definition at line 51 of file Tables.h. Referenced by Bitmap16::Bitmap16(), Bitmap32::Bitmap32(), Bitmap4::Bitmap4(), Bitmap64::Bitmap64(), and Bitmap8::Bitmap8(). |
|
|
|
Definition at line 47 of file Tables.h. Referenced by Bitmap8::Init(), Bitmap64::Init(), Bitmap4::Init(), and Bitmap32::Init(). |
|
Definition at line 48 of file Tables.h. Referenced by Bitmap32::Bitmap32(), Bitmap4::Bitmap4(), Bitmap64::Bitmap64(), Bitmap8::Bitmap8(), Bitmap8::CalcSize(), Bitmap64::CalcSize(), Bitmap4::CalcSize(), Bitmap32::CalcSize(), Bitmap8::Deallocate(), Bitmap64::Deallocate(), Bitmap4::Deallocate(), Bitmap32::Deallocate(), Bitmap64::Init(), Bitmap32::Init(), and Bitmap16::Init(). |
|
Definition at line 49 of file Tables.h. Referenced by Bitmap16::Bitmap16(), Bitmap16::CalcSize(), and Bitmap16::Deallocate(). |