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

/macosx-10.9.5/WebCore-7537.78.1/Modules/indexeddb/
H A DIDBDatabaseBackendInterface.h66 virtual void createIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId, const String& name, const IDBKeyPath&, bool unique, bool multiEntry) = 0;
67 virtual void deleteIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId) = 0;
84 virtual void get(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, bool keyOnly, PassRefPtr<IDBCallbacks>) = 0;
89 virtual void openCursor(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, IndexedDB::CursorDirection, bool keyOnly, TaskType, PassRefPtr<IDBCallbacks>) = 0;
90 virtual void count(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>) = 0;
H A DIDBLevelDBCoding.h87 KeyPrefix(int64_t databaseId, int64_t objectStoreId, int64_t indexId);
88 static KeyPrefix createWithSpecialIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId);
121 static bool isValidObjectStoreId(int64_t indexId);
122 static bool isValidIndexId(int64_t indexId);
123 static bool validIds(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
125 return isValidDatabaseId(databaseId) && isValidObjectStoreId(objectStoreId) && isValidIndexId(indexId);
141 static Vector<char> encodeInternal(int64_t databaseId, int64_t objectStoreId, int64_t indexId);
143 KeyPrefix(Type, int64_t databaseId, int64_t objectStoreId, int64_t indexId);
241 static Vector<char> encode(int64_t databaseId, int64_t objectStoreId, int64_t indexId, unsigned char metaDataType);
243 static Vector<char> encodeMaxKey(int64_t databaseId, int64_t objectStoreId, int64_t indexId);
[all...]
H A DIDBObjectStoreBackendImpl.cpp46 bool IDBObjectStoreBackendImpl::IndexWriter::verifyIndexKeys(IDBBackingStore& backingStore, IDBBackingStore::Transaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, bool& canAddKeys, const IDBKey* primaryKey, String* errorMessage) const argument
50 bool ok = addingKeyAllowed(backingStore, transaction, databaseId, objectStoreId, indexId, (m_indexKeys)[i].get(), primaryKey, canAddKeys);
65 int64_t indexId = m_indexMetadata.id; local
67 bool ok = backingStore.putIndexDataForRecord(transaction, databaseId, objectStoreId, indexId, *(m_indexKeys)[i].get(), recordIdentifier);
73 bool IDBObjectStoreBackendImpl::IndexWriter::addingKeyAllowed(IDBBackingStore& backingStore, IDBBackingStore::Transaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey* indexKey, const IDBKey* primaryKey, bool& allowed) const argument
83 bool ok = backingStore.keyExistsInIndex(transaction, databaseId, objectStoreId, indexId, *indexKey, foundPrimaryKey, found);
H A DIDBBackingStore.h100 virtual bool createIndex(IDBBackingStore::Transaction*, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const String& name, const IDBKeyPath&, bool isUnique, bool isMultiEntry) WARN_UNUSED_RETURN;
101 virtual bool deleteIndex(IDBBackingStore::Transaction*, int64_t databaseId, int64_t objectStoreId, int64_t indexId) WARN_UNUSED_RETURN;
102 virtual bool putIndexDataForRecord(IDBBackingStore::Transaction*, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, const RecordIdentifier&) WARN_UNUSED_RETURN;
103 virtual bool getPrimaryKeyViaIndex(IDBBackingStore::Transaction*, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, RefPtr<IDBKey>& primaryKey) WARN_UNUSED_RETURN;
104 virtual bool keyExistsInIndex(IDBBackingStore::Transaction*, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& indexKey, RefPtr<IDBKey>& foundPrimaryKey, bool& exists) WARN_UNUSED_RETURN;
116 int64_t indexId; member in struct:WebCore::IDBBackingStore::Cursor::CursorOptions
159 virtual PassRefPtr<Cursor> openIndexKeyCursor(IDBBackingStore::Transaction*, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKeyRange*, IndexedDB::CursorDirection);
160 virtual PassRefPtr<Cursor> openIndexCursor(IDBBackingStore::Transaction*, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKeyRange*, IndexedDB::CursorDirection);
189 bool findKeyInIndex(IDBBackingStore::Transaction*, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, Vector<char>& foundEncodedPrimaryKey, bool& found);
H A DIDBObjectStoreBackendImpl.h58 bool verifyIndexKeys(IDBBackingStore&, IDBBackingStore::Transaction*, int64_t databaseId, int64_t objectStoreId, int64_t indexId, bool& canAddKeys, const IDBKey* primaryKey = 0, String* errorMessage = 0) const WARN_UNUSED_RETURN;
63 bool addingKeyAllowed(IDBBackingStore&, IDBBackingStore::Transaction*, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey* indexKey, const IDBKey* primaryKey, bool& allowed) const WARN_UNUSED_RETURN;
H A DIDBDatabaseBackendImpl.h58 void removeIndex(int64_t objectStoreId, int64_t indexId);
74 virtual void createIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId, const String& name, const IDBKeyPath&, bool unique, bool multiEntry);
75 virtual void deleteIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId);
83 virtual void get(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, bool keyOnly, PassRefPtr<IDBCallbacks>) OVERRIDE;
87 virtual void openCursor(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, IndexedDB::CursorDirection, bool keyOnly, TaskType, PassRefPtr<IDBCallbacks>) OVERRIDE;
88 virtual void count(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange>, PassRefPtr<IDBCallbacks>) OVERRIDE;
H A DIDBBackingStore.cpp1049 static bool checkIndexAndMetaDataKey(const LevelDBIterator* it, const Vector<char>& stopKey, int64_t indexId, unsigned char metaDataType) argument
1057 if (metaDataKey.indexId() != indexId)
1093 int64_t indexId = metaDataKey.indexId(); local
1097 if (!checkIndexAndMetaDataKey(it.get(), stopKey, indexId, IndexMetaDataKey::Unique)) {
1104 if (!checkIndexAndMetaDataKey(it.get(), stopKey, indexId, IndexMetaDataKey::KeyPath)) {
1112 if (checkIndexAndMetaDataKey(it.get(), stopKey, indexId, IndexMetaDataKey::MultiEntry)) {
1117 indexes->set(indexId, IDBIndexMetadata(indexName, indexId, keyPat
1122 setMaxIndexId(LevelDBTransaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1144 createIndex(IDBBackingStore::Transaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const String& name, const IDBKeyPath& keyPath, bool isUnique, bool isMultiEntry) argument
1165 deleteIndex(IDBBackingStore::Transaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1182 putIndexDataForRecord(IDBBackingStore::Transaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& key, const RecordIdentifier& recordIdentifier) argument
1245 findKeyInIndex(IDBBackingStore::Transaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& key, Vector<char>& foundEncodedPrimaryKey, bool& found) argument
1287 getPrimaryKeyViaIndex(IDBBackingStore::Transaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& key, RefPtr<IDBKey>& primaryKey) argument
1308 keyExistsInIndex(IDBBackingStore::Transaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& indexKey, RefPtr<IDBKey>& foundPrimaryKey, bool& exists) argument
1857 indexCursorOptions(LevelDBTransaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKeyRange* range, IndexedDB::CursorDirection direction, IDBBackingStore::Cursor::CursorOptions& cursorOptions) argument
1935 openIndexKeyCursor(IDBBackingStore::Transaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKeyRange* range, IndexedDB::CursorDirection direction) argument
1949 openIndexCursor(IDBBackingStore::Transaction* transaction, int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKeyRange* range, IndexedDB::CursorDirection direction) argument
[all...]
H A DIDBDatabaseBackendImpl.cpp203 static PassOwnPtr<IDBTransactionBackendImpl::Operation> create(PassRefPtr<IDBDatabaseBackendImpl> database, int64_t objectStoreId, int64_t indexId) argument
205 return adoptPtr(new CreateIndexAbortOperation(database, objectStoreId, indexId));
209 CreateIndexAbortOperation(PassRefPtr<IDBDatabaseBackendImpl> database, int64_t objectStoreId, int64_t indexId) argument
212 , m_indexId(indexId)
243 static PassOwnPtr<IDBTransactionBackendImpl::Operation> create(PassRefPtr<IDBBackingStore> backingStore, const IDBDatabaseMetadata& metadata, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorType cursorType, PassRefPtr<IDBCallbacks> callbacks) argument
245 return adoptPtr(new GetOperation(backingStore, metadata, objectStoreId, indexId, keyRange, cursorType, callbacks));
249 GetOperation(PassRefPtr<IDBBackingStore> backingStore, const IDBDatabaseMetadata& metadata, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorType cursorType, PassRefPtr<IDBCallbacks> callbacks) argument
253 , m_indexId(indexId)
325 static PassOwnPtr<IDBTransactionBackendImpl::Operation> create(PassRefPtr<IDBBackingStore> backingStore, int64_t databaseId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorDirection direction, IndexedDB::CursorType cursorType, IDBDatabaseBackendInterface::TaskType taskType, PassRefPtr<IDBCallbacks> callbacks) argument
327 return adoptPtr(new OpenCursorOperation(backingStore, databaseId, objectStoreId, indexId, keyRang
331 OpenCursorOperation(PassRefPtr<IDBBackingStore> backingStore, int64_t databaseId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorDirection direction, IndexedDB::CursorType cursorType, IDBDatabaseBackendInterface::TaskType taskType, PassRefPtr<IDBCallbacks> callbacks) argument
357 create(PassRefPtr<IDBBackingStore> backingStore, int64_t databaseId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, PassRefPtr<IDBCallbacks> callbacks) argument
363 CountOperation(PassRefPtr<IDBBackingStore> backingStore, int64_t databaseId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, PassRefPtr<IDBCallbacks> callbacks) argument
521 removeIndex(int64_t objectStoreId, int64_t indexId) argument
594 createIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId, const String& name, const IDBKeyPath& keyPath, bool unique, bool multiEntry) argument
629 deleteIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId) argument
686 get(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, bool keyOnly, PassRefPtr<IDBCallbacks> callbacks) argument
937 openCursor(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, IndexedDB::CursorDirection direction, bool keyOnly, TaskType taskType, PassRefPtr<IDBCallbacks> callbacks) argument
980 count(int64_t transactionId, int64_t objectStoreId, int64_t indexId, PassRefPtr<IDBKeyRange> keyRange, PassRefPtr<IDBCallbacks> callbacks) argument
[all...]
H A DIDBLevelDBCoding.cpp993 KeyPrefix::KeyPrefix(int64_t databaseId, int64_t objectStoreId, int64_t indexId)
996 , m_indexId(indexId)
1000 ASSERT(KeyPrefix::isValidIndexId(indexId));
1003 KeyPrefix::KeyPrefix(Type type, int64_t databaseId, int64_t objectStoreId, int64_t indexId)
1006 , m_indexId(indexId)
1014 KeyPrefix KeyPrefix::createWithSpecialIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId)
1018 ASSERT(indexId);
1019 return KeyPrefix(InvalidType, databaseId, objectStoreId, indexId);
1033 bool KeyPrefix::isValidIndexId(int64_t indexId)
1035 return (indexId >
1077 encodeInternal(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1368 encode(int64_t databaseId, int64_t objectStoreId, int64_t indexId, unsigned char metaDataType) argument
1384 encodeMaxKey(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1401 int64_t IndexMetaDataKey::indexId() const function in class:WebCore::IDBLevelDBCoding::IndexMetaDataKey
1488 encode(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1518 int64_t IndexFreeListKey::indexId() const function in class:WebCore::IDBLevelDBCoding::IndexFreeListKey
1732 encode(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const Vector<char>& encodedUserKey, const Vector<char>& encodedPrimaryKey, int64_t sequenceNumber) argument
1742 encode(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey& userKey) argument
1747 encodeMinKey(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1752 encodeMaxKey(int64_t databaseId, int64_t objectStoreId, int64_t indexId) argument
1785 int64_t IndexDataKey::indexId() const function in class:WebCore::IDBLevelDBCoding::IndexDataKey
[all...]
H A DIDBObjectStore.cpp406 int64_t indexId = m_metadata.maxIndexId + 1; local
407 backendDB()->createIndex(m_transaction->id(), id(), indexId, name, keyPath, unique, multiEntry);
411 IDBIndexMetadata metadata(name, indexId, keyPath, unique, multiEntry);
414 m_metadata.indexes.set(indexId, metadata);
449 int64_t indexId = findIndexId(name);
450 if (indexId == IDBIndexMetadata::InvalidId) {
481 int64_t indexId = findIndexId(name); local
482 if (indexId == IDBIndexMetadata::InvalidId) {
487 backendDB()->deleteIndex(m_transaction->id(), id(), indexId);
489 m_metadata.indexes.remove(indexId);
[all...]
/macosx-10.9.5/Security-55471.14.18/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;
1857 uint32 indexId; local
1859 indexId = 0;
1861 indexId = anIndex + 1;
1870 aRecordBuilder.add(IndexID, indexId);
1879 DbMutableIndex &index = aTable.findIndex(indexId, aMetaRecor
[all...]
H A DAppleDatabase.h160 DbMutableIndex &findIndex(uint32 indexId, const MetaRecord &metaRecord, bool isUniqueIndex);
/macosx-10.9.5/Security-55471.14.18/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;
1857 uint32 indexId; local
1859 indexId = 0;
1861 indexId = anIndex + 1;
1870 aRecordBuilder.add(IndexID, indexId);
1879 DbMutableIndex &index = aTable.findIndex(indexId, aMetaRecor
[all...]
H A DAppleDatabase.h160 DbMutableIndex &findIndex(uint32 indexId, const MetaRecord &metaRecord, bool isUniqueIndex);

Completed in 416 milliseconds