Commit 529c48c7 authored by Lukasz Waskiewicz's avatar Lukasz Waskiewicz
Browse files

refs #1465 zmiana nazwy tabeli density, dodanie float do ColumnType

parent a2a8ebf8
......@@ -117,7 +117,7 @@
</bean>
<bean id="densityPartitionSpec" class="pl.edu.icm.cocos.imports.impala.CocosImpalaTableSpec" scope="job">
<property name="tableName" value="densitygriddata" />
<property name="tableName" value="density" />
<property name="outputPartitions">
<list>
<bean id="densitySnapshotSpec" class="pl.edu.icm.cocos.imports.impala.CocosImpalaParitionColumnSpec">
......
......@@ -4,6 +4,12 @@ import org.apache.commons.lang3.StringUtils;
@SuppressWarnings("unchecked")
public enum ColumnType {
FLOAT("float", Float.class) {
@Override
public Float convert(String value) {
return value != null && !StringUtils.equalsIgnoreCase("null", value) ? Float.valueOf(value) : null;
}
},
DOUBLE("double", Double.class) {
@Override
public Double convert(String value) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment