org.eclipse.rdf4j.sail.lmdb.Statistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdf4j-sail-lmdb Show documentation
Show all versions of rdf4j-sail-lmdb Show documentation
Sail implementation that stores data to disk using LMDB.
/*******************************************************************************
* Copyright (c) 2022 Eclipse RDF4J contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*******************************************************************************/
package org.eclipse.rdf4j.sail.lmdb;
/**
* Helper class for computing cardinalities within triple store.
*/
class Statistics {
/**
* Number of buckets used to sample average distances of keys.
*/
static final int MAX_BUCKETS = 3;
/**
* Number of samples for each bucket.
*/
static final int MAX_SAMPLES_PER_BUCKET = 100;
final long[][] startValues = new long[MAX_BUCKETS + 1][4];
final long[][] lastValues = new long[MAX_BUCKETS][4];
final long[] values = new long[4];
final long[] minValues = new long[4];
final long[] maxValues = new long[4];
final double[] avgRowsPerValue = new double[4];
final long[] avgRowsPerValueCounts = new long[4];
final long[] counts = new long[4];
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy