com.swirlds.merkledb.files.merkledb_metadata.proto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swirlds-merkledb Show documentation
Show all versions of swirlds-merkledb Show documentation
Swirlds is a software platform designed to build fully-distributed applications that harness the power of the cloud without servers. Now you can develop applications with fairness in decision making, speed, trust and reliability, at a fraction of the cost of traditional server-based platforms.
syntax = "proto3";
package merkledb;
option java_package = "com.swirlds.merkledb";
option java_multiple_files = true;
message DatabaseMetadata {
// Tables
repeated TableMetadata tableMetadata = 11;
}
message TableMetadata {
// Table ID
optional uint32 tableId = 1;
// Table name
bytes tableName = 2;
// Table config
TableConfig tableConfig = 3;
}
message TableConfig {
// Hash version
optional uint32 hashVersion = 1;
// Digest type ID: 0x58ff811b for SHA_384 (default), 0x8fc9497e for SHA_512
optional uint32 digestTypeId = 2;
optional uint32 keyVersion = 3;
uint64 keySerializerClassId = 4;
optional uint32 valueVersion = 5;
uint64 valueSerializerClassId = 6;
// Bool
optional uint32 preferDiskIndicies = 7;
optional uint64 maxNumberOfKeys = 8;
optional uint64 hashesRamToDiskThreshold = 9;
}