2020-12-07 22:15:18 +01:00
|
|
|
package it.cavallium.dbengine.database;
|
|
|
|
|
2022-03-02 12:34:30 +01:00
|
|
|
import it.cavallium.dbengine.rpc.current.data.Column;
|
2020-12-07 22:15:18 +01:00
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
|
2022-03-02 12:34:30 +01:00
|
|
|
public class ColumnUtils {
|
|
|
|
|
|
|
|
private ColumnUtils() {
|
|
|
|
|
|
|
|
}
|
2020-12-07 22:15:18 +01:00
|
|
|
|
2021-01-31 15:47:48 +01:00
|
|
|
public static Column dictionary(String name) {
|
2020-12-07 22:15:18 +01:00
|
|
|
return new Column("hash_map_" + name);
|
|
|
|
}
|
|
|
|
|
2021-01-31 15:47:48 +01:00
|
|
|
public static Column deprecatedSet(String name) {
|
2020-12-07 22:15:18 +01:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|