Searched refs:indexId (Results 1 - 21 of 21) sorted by relevance

/macosx-10.10/WebCore-7600.1.25/Modules/indexeddb/leveldb/
H A DIDBIndexWriterLevelDB.cpp47 int64_t indexId = m_indexMetadata.id; local
49 bool ok = backingStore.putIndexDataForRecord(transaction, databaseId, objectStoreId, indexId, *(m_indexKeys)[i].get(), recordIdentifier);
55 bool IDBIndexWriterLevelDB::verifyIndexKeys(IDBBackingStoreLevelDB& backingStore, IDBBackingStoreTransactionLevelDB& transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, bool& canAddKeys, const IDBKey* primaryKey, String* errorMessage) const argument
59 bool ok = addingKeyAllowed(backingStore, transaction, databaseId, objectStoreId, indexId, (m_indexKeys)[i].get(), primaryKey, canAddKeys);
72 bool IDBIndexWriterLevelDB::addingKeyAllowed(IDBBackingStoreLevelDB& backingStore, IDBBackingStoreTransactionLevelDB& transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey* indexKey, const IDBKey* primaryKey, bool& allowed) const argument
82 bool ok = backingStore.keyExistsInIndex(transaction, databaseId, objectStoreId, indexId, *indexKey, foundPrimaryKey, found);
H A DIDBIndexWriterLevelDB.h49 bool verifyIndexKeys(IDBBackingStoreLevelDB&, IDBBackingStoreTransactionLevelDB&, int64_t databaseId, int64_t objectStoreId, int64_t indexId, bool& canAddKeys, const IDBKey* primaryKey = 0, String* errorMessage = 0) const WARN_UNUSED_RETURN;
56 bool addingKeyAllowed(IDBBackingStoreLevelDB&, IDBBackingStoreTransactionLevelDB&, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey* indexKey, const IDBKey* primaryKey, bool& allowed) const WARN_UNUSED_RETURN;
H A DIDBLevelDBCoding.h86 KeyPrefix(int64_t databaseId, int64_t objectStoreId, int64_t indexId);
87 static KeyPrefix createWithSpecialIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId);
120 static bool isValidObjectStoreId(int64_t indexId);
121 static bool isValidIndexId(int64_t indexId);
122 static bool validIds(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
124 return isValidDatabaseId(databaseId) && isValidObjectStoreId(objectStoreId) && isValidIndexId(indexId);
140 static Vector<char> encodeInternal(int64_t databaseId, int64_t objectStoreId, int64_t indexId);
142 KeyPrefix(Type, int64_t databaseId, int64_t objectStoreId, int64_t indexId);
240 static Vector<char> encode(int64_t databaseId, int64_t objectStoreId, int64_t indexId, unsigned char metaDataType);
242 static Vector<char> encodeMaxKey(int64_t databaseId, int64_t objectStoreId, int64_t indexId);
[all...]
H A DIDBBackingStoreLevelDB.h96 bool createIndex(IDBBackingStoreTransactionLevelDB&, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const String& name, const IDBKeyPath&, bool isUnique, bool isMultiEntry) WARN_UNUSED_RETURN;
97 bool deleteIndex(IDBBackingStoreTransactionLevelDB&, int64_t databaseId, int64_t objectStoreId, int64_t indexId) WARN_UNUSED_RETURN;
98 bool putIndexDataForRecord(IDBBackingStoreTransactionLevelDB&, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, const IDBRecordIdentifier*) WARN_UNUSED_RETURN;
99 bool getPrimaryKeyViaIndex(IDBBackingStoreTransactionLevelDB&, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, RefPtr<IDBKey>& primaryKey) WARN_UNUSED_RETURN;
100 bool keyExistsInIndex(IDBBackingStoreTransactionLevelDB&, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& indexKey, RefPtr<IDBKey>& foundPrimaryKey, bool& exists) WARN_UNUSED_RETURN;
104 virtual PassRefPtr<IDBBackingStoreCursorLevelDB> openIndexKeyCursor(int64_t cursorID, IDBBackingStoreTransactionLevelDB&, int64_t databaseID, int64_t objectStoreId, int64_t indexId, const IDBKeyRange*, IndexedDB::CursorDirection);
105 virtual PassRefPtr<IDBBackingStoreCursorLevelDB> openIndexCursor(int64_t cursorID, IDBBackingStoreTransactionLevelDB&, int64_t databaseID, int64_t objectStoreId, int64_t indexId, const IDBKeyRange*, IndexedDB::CursorDirection);
127 bool findKeyInIndex(IDBBackingStoreTransactionLevelDB&, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, Vector<char>& foundEncodedPrimaryKey, bool& found);
H A DIDBBackingStoreLevelDB.cpp1067 static bool checkIndexAndMetaDataKey(const LevelDBIterator* it, const Vector<char>& stopKey, int64_t indexId, unsigned char metaDataType) argument
1075 if (metaDataKey.indexId() != indexId)
1111 int64_t indexId = metaDataKey.indexId(); local
1115 if (!checkIndexAndMetaDataKey(it.get(), stopKey, indexId, IndexMetaDataKey::Unique)) {
1122 if (!checkIndexAndMetaDataKey(it.get(), stopKey, indexId, IndexMetaDataKey::KeyPath)) {
1130 if (checkIndexAndMetaDataKey(it.get(), stopKey, indexId, IndexMetaDataKey::MultiEntry)) {
1135 indexes->set(indexId, IDBIndexMetadata(indexName, indexId, keyPat
1140 setMaxIndexId(LevelDBTransaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1162 createIndex(IDBBackingStoreTransactionLevelDB& transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const String& name, const IDBKeyPath& keyPath, bool isUnique, bool isMultiEntry) argument
1183 deleteIndex(IDBBackingStoreTransactionLevelDB& transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1200 putIndexDataForRecord(IDBBackingStoreTransactionLevelDB& transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& key, const IDBRecordIdentifier* recordIdentifier) argument
1264 findKeyInIndex(IDBBackingStoreTransactionLevelDB& transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& key, Vector<char>& foundEncodedPrimaryKey, bool& found) argument
1306 getPrimaryKeyViaIndex(IDBBackingStoreTransactionLevelDB& transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& key, RefPtr<IDBKey>& primaryKey) argument
1327 keyExistsInIndex(IDBBackingStoreTransactionLevelDB& transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& indexKey, RefPtr<IDBKey>& foundPrimaryKey, bool& exists) argument
1775 indexCursorOptions(LevelDBTransaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKeyRange* range, IndexedDB::CursorDirection direction, IDBBackingStoreCursorLevelDB::CursorOptions& cursorOptions) argument
1853 openIndexKeyCursor(int64_t cursorID, IDBBackingStoreTransactionLevelDB& transaction, int64_t databaseID, int64_t objectStoreId, int64_t indexId, const IDBKeyRange* range, IndexedDB::CursorDirection direction) argument
1867 openIndexCursor(int64_t cursorID, IDBBackingStoreTransactionLevelDB& transaction, int64_t databaseID, int64_t objectStoreId, int64_t indexId, const IDBKeyRange* range, IndexedDB::CursorDirection direction) argument
[all...]
H A DIDBLevelDBCoding.cpp992 KeyPrefix::KeyPrefix(int64_t databaseId, int64_t objectStoreId, int64_t indexId)
995 , m_indexId(indexId)
999 ASSERT(KeyPrefix::isValidIndexId(indexId));
1002 KeyPrefix::KeyPrefix(Type type, int64_t databaseId, int64_t objectStoreId, int64_t indexId)
1005 , m_indexId(indexId)
1013 KeyPrefix KeyPrefix::createWithSpecialIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId)
1017 ASSERT(indexId);
1018 return KeyPrefix(InvalidType, databaseId, objectStoreId, indexId);
1032 bool KeyPrefix::isValidIndexId(int64_t indexId)
1034 return (indexId >
1076 encodeInternal(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1367 encode(int64_t databaseId, int64_t objectStoreId, int64_t indexId, unsigned char metaDataType) argument
1383 encodeMaxKey(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1400 int64_t IndexMetaDataKey::indexId() const function in class:WebCore::IDBLevelDBCoding::IndexMetaDataKey
1487 encode(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1517 int64_t IndexFreeListKey::indexId() const function in class:WebCore::IDBLevelDBCoding::IndexFreeListKey
1731 encode(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const Vector<char>& encodedUserKey, const Vector<char>& encodedPrimaryKey, int64_t sequenceNumber) argument
1741 encode(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& userKey) argument
1746 encodeMinKey(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1751 encodeMaxKey(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1784 int64_t IndexDataKey::indexId() const function in class:WebCore::IDBLevelDBCoding::IndexDataKey
[all...]
H A DIDBBackingStoreCursorLevelDB.h52 int64_t indexId; member in struct:WebCore::IDBBackingStoreCursorLevelDB::CursorOptions
/macosx-10.10/Security-57031.1.35/Security/include/security_filedb/
H A DDbIndex.h109 uint32 indexId() const { return mIndexId; } function in class:Security::DbIndex
115 DbIndex(const MetaRecord &metaRecord, uint32 indexId, bool isUniqueIndex);
137 DbConstIndex(const Table &table, uint32 indexId, bool isUniqueIndex);
169 DbMutableIndex(const MetaRecord &metaRecord, uint32 indexId, bool isUniqueIndex);
H A DDbIndex.cpp112 DbIndex::DbIndex(const MetaRecord &metaRecord, uint32 indexId, bool isUniqueIndex) argument
114 mIndexId(indexId),
133 DbConstIndex::DbConstIndex(const Table &table, uint32 indexId, bool isUniqueIndex) argument
134 : DbIndex(table.getMetaRecord(), indexId, isUniqueIndex),
324 DbMutableIndex::DbMutableIndex(const MetaRecord &metaRecord, uint32 indexId, bool isUniqueIndex) argument
325 : DbIndex(metaRecord, indexId, isUniqueIndex),
H A DAppleDatabase.cpp113 mIndexMap.insert(ConstIndexMap::value_type(index->indexId(), index.get()));
518 ModifiedTable::findIndex(uint32 indexId, const MetaRecord &metaRecord, bool isUniqueIndex) argument
520 MutableIndexMap::iterator it = mIndexMap.find(indexId);
524 auto_ptr<DbMutableIndex> index(new DbMutableIndex(metaRecord, indexId, isUniqueIndex));
525 it = mIndexMap.insert(MutableIndexMap::value_type(indexId, index.get())).first;
1860 uint32 indexId; local
1862 indexId = 0;
1864 indexId = anIndex + 1;
1873 aRecordBuilder.add(IndexID, indexId);
1882 DbMutableIndex &index = aTable.findIndex(indexId, aMetaRecor
[all...]
H A DAppleDatabase.h160 DbMutableIndex &findIndex(uint32 indexId, const MetaRecord &metaRecord, bool isUniqueIndex);
/macosx-10.10/Security-57031.1.35/Security/libsecurity_filedb/lib/
H A DDbIndex.h109 uint32 indexId() const { return mIndexId; } function in class:Security::DbIndex
115 DbIndex(const MetaRecord &metaRecord, uint32 indexId, bool isUniqueIndex);
137 DbConstIndex(const Table &table, uint32 indexId, bool isUniqueIndex);
169 DbMutableIndex(const MetaRecord &metaRecord, uint32 indexId, bool isUniqueIndex);
H A DDbIndex.cpp112 DbIndex::DbIndex(const MetaRecord &metaRecord, uint32 indexId, bool isUniqueIndex) argument
114 mIndexId(indexId),
133 DbConstIndex::DbConstIndex(const Table &table, uint32 indexId, bool isUniqueIndex) argument
134 : DbIndex(table.getMetaRecord(), indexId, isUniqueIndex),
324 DbMutableIndex::DbMutableIndex(const MetaRecord &metaRecord, uint32 indexId, bool isUniqueIndex) argument
325 : DbIndex(metaRecord, indexId, isUniqueIndex),
H A DAppleDatabase.cpp113 mIndexMap.insert(ConstIndexMap::value_type(index->indexId(), index.get()));
518 ModifiedTable::findIndex(uint32 indexId, const MetaRecord &metaRecord, bool isUniqueIndex) argument
520 MutableIndexMap::iterator it = mIndexMap.find(indexId);
524 auto_ptr<DbMutableIndex> index(new DbMutableIndex(metaRecord, indexId, isUniqueIndex));
525 it = mIndexMap.insert(MutableIndexMap::value_type(indexId, index.get())).first;
1860 uint32 indexId; local
1862 indexId = 0;
1864 indexId = anIndex + 1;
1873 aRecordBuilder.add(IndexID, indexId);
1882 DbMutableIndex &index = aTable.findIndex(indexId, aMetaRecor
[all...]
H A DAppleDatabase.h160 DbMutableIndex &findIndex(uint32 indexId, const MetaRecord &metaRecord, bool isUniqueIndex);
/macosx-10.10/WebCore-7600.1.25/Modules/indexeddb/
H A DIDBTransactionBackendOperations.h191 static PassRefPtr<IDBSynchronousOperation> create(IDBTransactionBackend* transaction, int64_t objectStoreId, int64_t indexId) argument
193 return adoptRef(new CreateIndexAbortOperation(transaction, objectStoreId, indexId));
197 CreateIndexAbortOperation(IDBTransactionBackend* transaction, int64_t objectStoreId, int64_t indexId) argument
200 , m_indexID(indexId)
255 static PassRefPtr<IDBOperation> create(IDBTransactionBackend* transaction, const IDBDatabaseMetadata& metadata, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorType cursorType, PassRefPtr<IDBCallbacks> callbacks) argument
257 return adoptRef(new GetOperation(transaction, metadata, objectStoreId, indexId, keyRange, cursorType, callbacks));
269 GetOperation(IDBTransactionBackend* transaction, const IDBDatabaseMetadata& metadata, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorType cursorType, PassRefPtr<IDBCallbacks> callbacks) argument
272 , m_indexID(indexId)
351 static PassRefPtr<IDBOperation> create(IDBTransactionBackend* transaction, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorDirection direction, IndexedDB::CursorType cursorType, IDBDatabaseBackend::TaskType taskType, PassRefPtr<IDBCallbacks> callbacks) argument
353 return adoptRef(new OpenCursorOperation(transaction, objectStoreId, indexId, keyRang
367 OpenCursorOperation(IDBTransactionBackend* transaction, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorDirection direction, IndexedDB::CursorType cursorType, IDBDatabaseBackend::TaskType taskType, PassRefPtr<IDBCallbacks> callbacks) argument
391 create(IDBTransactionBackend* transaction, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, PassRefPtr<IDBCallbacks> callbacks) argument
402 CountOperation(IDBTransactionBackend* transaction, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, PassRefPtr<IDBCallbacks> callbacks) argument
[all...]
H A DIDBDatabaseBackend.h72 void removeIndex(int64_t objectStoreId, int64_t indexId);
87 void createIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId, const String& name, const IDBKeyPath&, bool unique, bool multiEntry);
88 void deleteIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId);
109 void get(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, bool keyOnly, PassRefPtr<IDBCallbacks>);
113 void openCursor(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, IndexedDB::CursorDirection, bool keyOnly, TaskType, PassRefPtr<IDBCallbacks>);
114 void count(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>);
H A DIDBTransactionBackend.h73 void scheduleGetOperation(const IDBDatabaseMetadata&, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, IndexedDB::CursorType, PassRefPtr<IDBCallbacks>);
76 void scheduleOpenCursorOperation(int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, IndexedDB::CursorDirection, IndexedDB::CursorType, IDBDatabaseBackend::TaskType, PassRefPtr<IDBCallbacks>);
77 void scheduleCountOperation(int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>);
H A DIDBTransactionBackend.cpp336 void IDBTransactionBackend::scheduleGetOperation(const IDBDatabaseMetadata& metadata, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorType cursorType, PassRefPtr<IDBCallbacks> callbacks) argument
338 scheduleTask(GetOperation::create(this, metadata, objectStoreId, indexId, keyRange, cursorType, callbacks));
351 void IDBTransactionBackend::scheduleOpenCursorOperation(int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorDirection direction, IndexedDB::CursorType cursorType, IDBDatabaseBackend::TaskType taskType, PassRefPtr<IDBCallbacks> callbacks) argument
353 scheduleTask(OpenCursorOperation::create(this, objectStoreId, indexId, keyRange, direction, cursorType, taskType, callbacks));
356 void IDBTransactionBackend::scheduleCountOperation(int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, PassRefPtr<IDBCallbacks> callbacks) argument
358 scheduleTask(CountOperation::create(this, objectStoreId, indexId, keyRange, callbacks));
H A DIDBDatabaseBackend.cpp96 void IDBDatabaseBackend::removeIndex(int64_t objectStoreId, int64_t indexId) argument
101 ASSERT(objectStore.indexes.contains(indexId));
102 objectStore.indexes.remove(indexId);
163 void IDBDatabaseBackend::createIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId, const String& name, const IDBKeyPath& keyPath, bool unique, bool multiEntry) argument
174 ASSERT(!objectStore.indexes.contains(indexId));
175 const IDBIndexMetadata indexMetadata(name, indexId, keyPath, unique, multiEntry);
179 addIndex(objectStoreId, indexMetadata, indexId);
182 void IDBDatabaseBackend::deleteIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId) argument
193 ASSERT(objectStore.indexes.contains(indexId));
194 const IDBIndexMetadata& indexMetadata = objectStore.indexes.get(indexId);
222 get(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, bool keyOnly, PassRefPtr<IDBCallbacks> callbacks) argument
276 openCursor(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorDirection direction, bool keyOnly, TaskType taskType, PassRefPtr<IDBCallbacks> callbacks) argument
286 count(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, PassRefPtr<IDBCallbacks> callbacks) argument
[all...]
H A DIDBObjectStore.cpp392 int64_t indexId = m_metadata.maxIndexId + 1; local
393 backendDB()->createIndex(m_transaction->id(), id(), indexId, name, keyPath, unique, multiEntry);
397 IDBIndexMetadata metadata(name, indexId, keyPath, unique, multiEntry);
400 m_metadata.indexes.set(indexId, metadata);
439 int64_t indexId = findIndexId(name);
440 if (indexId == IDBIndexMetadata::InvalidId) {
471 int64_t indexId = findIndexId(name); local
472 if (indexId == IDBIndexMetadata::InvalidId) {
477 backendDB()->deleteIndex(m_transaction->id(), id(), indexId);
479 m_metadata.indexes.remove(indexId);
[all...]

Completed in 217 milliseconds