/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.
*
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace BerkeleyDB {
///
/// Statistical information about a QueueDatabase
///
public class HeapStats {
private Internal.HeapStatStruct st;
internal HeapStats(Internal.HeapStatStruct stats) {
st = stats;
}
///
/// Magic number that identifies the file as a Heap file.
///
public uint MagicNumber { get { return st.heap_magic; } }
///
/// Reports internal flags. For internal use only.
///
public uint MetadataFlags { get { return st.heap_metaflags; } }
///
/// Number of blob records.
///
public uint nBlobRecords { get { return st.heap_nblobs; } }
///
/// The number of pages in the database.
///
public uint nPages { get { return st.heap_pagecnt; } }
///
/// Reports the number of records in the Heap database.
///
public uint nRecords { get { return st.heap_nrecs; } }
///
/// The number of regions in the Heap database.
///
public uint nRegions { get { return st.heap_nregions; } }
///
/// The underlying database page (and bucket) size, in bytes.
///
public uint PageSize { get { return st.heap_pagesize; } }
///
/// The region size of the Heap database.
///
public uint RegionSize { get { return st.heap_regionsize; } }
///
/// The version of the Heap database.
///
public uint Version { get { return st.heap_version; } }
}
}