Placement Constructor (UInt32, UInt16, UInt16, UInt16, UInt16, Boolean, Boolean, UInt32, Boolean, Boolean) |
Creates a Placement used for choosing a place to persist objects
Namespace:
VelocityDb
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public Placement(
uint db,
ushort page = 1,
ushort slot = 1,
ushort objectsPerPage = 10000,
ushort pagesPerDatabase = 10000,
bool persistRefs = false,
bool tryOtherDatabaseIfLockConflict = true,
uint maxNumberOfDatabases = 4294967295,
bool allowOtherTypesOnSamePage = true,
bool flushFullPages = true
)
Public Sub New (
db As UInteger,
Optional page As UShort = 1,
Optional slot As UShort = 1,
Optional objectsPerPage As UShort = 10000,
Optional pagesPerDatabase As UShort = 10000,
Optional persistRefs As Boolean = false,
Optional tryOtherDatabaseIfLockConflict As Boolean = true,
Optional maxNumberOfDatabases As UInteger = 4294967295,
Optional allowOtherTypesOnSamePage As Boolean = true,
Optional flushFullPages As Boolean = true
)
public:
Placement(
unsigned int db,
unsigned short page = 1,
unsigned short slot = 1,
unsigned short objectsPerPage = 10000,
unsigned short pagesPerDatabase = 10000,
bool persistRefs = false,
bool tryOtherDatabaseIfLockConflict = true,
unsigned int maxNumberOfDatabases = 4294967295,
bool allowOtherTypesOnSamePage = true,
bool flushFullPages = true
)
new :
db : uint32 *
?page : uint16 *
?slot : uint16 *
?objectsPerPage : uint16 *
?pagesPerDatabase : uint16 *
?persistRefs : bool *
?tryOtherDatabaseIfLockConflict : bool *
?maxNumberOfDatabases : uint32 *
?allowOtherTypesOnSamePage : bool *
?flushFullPages : bool
(* Defaults:
let _page = defaultArg page 1
let _slot = defaultArg slot 1
let _objectsPerPage = defaultArg objectsPerPage 10000
let _pagesPerDatabase = defaultArg pagesPerDatabase 10000
let _persistRefs = defaultArg persistRefs false
let _tryOtherDatabaseIfLockConflict = defaultArg tryOtherDatabaseIfLockConflict true
let _maxNumberOfDatabases = defaultArg maxNumberOfDatabases 4294967295
let _allowOtherTypesOnSamePage = defaultArg allowOtherTypesOnSamePage true
let _flushFullPages = defaultArg flushFullPages true
*)
-> Placement
Parameters
- db
- Type: SystemUInt32
Database number requested for placement - page (Optional)
- Type: SystemUInt16
Page number requested for placement - slot (Optional)
- Type: SystemUInt16
Slot number requested for placement - objectsPerPage (Optional)
- Type: SystemUInt16
Limit the number of objects per page - pagesPerDatabase (Optional)
- Type: SystemUInt16
Limit the number of pages per database - persistRefs (Optional)
- Type: SystemBoolean
When persisting an object, shall references be persisted at the same time or later when flushing pages to disk - tryOtherDatabaseIfLockConflict (Optional)
- Type: SystemBoolean
Is another Database acceptable - maxNumberOfDatabases (Optional)
- Type: SystemUInt32
Maximum numner of databases to try for placement - allowOtherTypesOnSamePage (Optional)
- Type: SystemBoolean
Is it OK to place object on a page which contains other types - flushFullPages (Optional)
- Type: SystemBoolean
Is it OK toflush encounteted full pages?
See Also