Package com.apple.foundationdb.record.provider.foundationdb

Classes for FoundationDB record storage. Note that at present FoundationDB is the only supported backend.

Databases

An FDB cluster is represented by an FDBDatabase, which is gotten from an FDBDatabaseFactory. All operations are transactional: a transaction is represented by an FDBRecordContext, which is opened from a database.

Record Stores

Records are read and written by an FDBRecordStore, which is opened within a record context using a FDBRecordStore.Builder. Storing a Protobuf Message as a record in a record store produces an FDBStoredRecord, which associates it with a record type and primary key. Retrieving a record by primary key from the record store also returns a stored record. A query returns a RecordCursor of FDBQueriedRecords, which extend FDBStoredRecord.