Class CoStoSysJedisTools
- java.lang.Object
-
- de.julielab.costosys.dbconnection.util.CoStoSysJedisTools
-
public class CoStoSysJedisTools extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoStoSysJedisTools.JedisDataFormat
-
Constructor Summary
Constructors Constructor Description CoStoSysJedisTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoStoSysJedisTools.JedisDataFormatdetermineDataFormat(DataBaseConnector dbc, String table, String column)Reads the first row of the given table and returns information about whether the data is in GZIP format and/or the JeDIS binary format.static Map<String,Boolean>getFeaturesToMapBinaryFromDb(DataBaseConnector dbc, String xmiMetaSchema)static Map<String,String>getNamespaceMap(DataBaseConnector dbc, String xmiMetaSchema)static Map<Integer,String>getReverseBinaryMappingFromDb(DataBaseConnector dbc, String xmiMetaSchema)
-
-
-
Method Detail
-
determineDataFormat
public static CoStoSysJedisTools.JedisDataFormat determineDataFormat(DataBaseConnector dbc, String table, String column) throws CoStoSysException
Reads the first row of the given table and returns information about whether the data is in GZIP format and/or the JeDIS binary format.- Parameters:
dbc- ADataBaseConnectorconnected to the database of interest.table- The name of a table to check the data format of.column- The column to check to data format of.- Returns:
- A
CoStoSysJedisTools.JedisDataFormatobject disclosing information about the found data format. - Throws:
CoStoSysException- If the given table does not exist.
-
getReverseBinaryMappingFromDb
public static Map<Integer,String> getReverseBinaryMappingFromDb(DataBaseConnector dbc, String xmiMetaSchema)
-
getFeaturesToMapBinaryFromDb
public static Map<String,Boolean> getFeaturesToMapBinaryFromDb(DataBaseConnector dbc, String xmiMetaSchema)
-
getNamespaceMap
public static Map<String,String> getNamespaceMap(DataBaseConnector dbc, String xmiMetaSchema)
-
-