CavalliumDBEngine/src/main/java/it/cavallium/dbengine/database/Column.java
2021-06-27 16:19:56 +02:00

25 lines
548 B
Java

package it.cavallium.dbengine.database;
import java.nio.charset.StandardCharsets;
import java.util.Objects;
import java.util.StringJoiner;
public record Column(String name) {
public static Column dictionary(String name) {
return new Column("hash_map_" + name);
}
public static Column deprecatedSet(String name) {
return new Column("hash_set_" + name);
}
public static Column special(String name) {
return new Column(name);
}
public static String toString(byte[] name) {
return new String(name, StandardCharsets.US_ASCII);
}
}