comparison audioDB.h @ 192:5f3d260ba71d no-big-mmap

Create and status of huge databases works. dump also works, but is as yet untested beyond the 4GB limit.
author mas01cr
date Mon, 19 Nov 2007 18:37:12 +0000
parents c22d53219112
children
comparison
equal deleted inserted replaced
191:b7400fabbb94 192:5f3d260ba71d
101 // unportable between 32 and 64-bit architectures. Making them 101 // unportable between 32 and 64-bit architectures. Making them
102 // uint32_t isn't the real answer, as it means we won't be able to 102 // uint32_t isn't the real answer, as it means we won't be able to
103 // scale to really large collections easily but it works around the 103 // scale to really large collections easily but it works around the
104 // problem. Expanding to 64 bits will of course need a change in 104 // problem. Expanding to 64 bits will of course need a change in
105 // file format version. -- CSR, 2007-10-05 105 // file format version. -- CSR, 2007-10-05
106 uint32_t length; 106 off_t length;
107 uint32_t fileTableOffset; 107 off_t fileTableOffset;
108 uint32_t trackTableOffset; 108 off_t trackTableOffset;
109 uint32_t dataOffset; 109 off_t dataOffset;
110 uint32_t l2normTableOffset; 110 off_t l2normTableOffset;
111 uint32_t timesTableOffset; 111 off_t timesTableOffset;
112 uint32_t dbSize; 112 off_t dbSize;
113 } dbTableHeaderT, *dbTableHeaderPtr; 113 } dbTableHeaderT, *dbTableHeaderPtr;
114 114
115 115
116 class audioDB{ 116 class audioDB{
117 117
146 double* sNorm; 146 double* sNorm;
147 double* timesTable; 147 double* timesTable;
148 148
149 size_t fileTableLength; 149 size_t fileTableLength;
150 size_t trackTableLength; 150 size_t trackTableLength;
151 size_t dataBufLength; 151 off_t dataBufLength;
152 size_t timesTableLength; 152 size_t timesTableLength;
153 size_t l2normTableLength; 153 size_t l2normTableLength;
154 154
155 // Flags and parameters 155 // Flags and parameters
156 unsigned verbosity; // how much do we want to know? 156 unsigned verbosity; // how much do we want to know?
157 unsigned size; // given size (for creation) 157 off_t size; // given size (for creation)
158 unsigned queryType; // point queries default 158 unsigned queryType; // point queries default
159 unsigned pointNN; // how many point NNs ? 159 unsigned pointNN; // how many point NNs ?
160 unsigned trackNN; // how many track NNs ? 160 unsigned trackNN; // how many track NNs ?
161 unsigned sequenceLength; 161 unsigned sequenceLength;
162 unsigned sequenceHop; 162 unsigned sequenceHop;