use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.
the class ValueCompressionUtilTest method testToUnCompressNonDecimalForInt.
@Test
public void testToUnCompressNonDecimalForInt() {
ValueCompressionHolder result = ValueCompressionUtil.getCompressionNonDecimal(DataType.INT);
assertEquals(result.getClass(), CompressionNonDecimalInt.class);
}
use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.
the class ValueCompressionUtilTest method testToUnCompressNoneForShort.
@Test
public void testToUnCompressNoneForShort() {
ValueCompressionHolder result = ValueCompressionUtil.getCompressionNone(DataType.SHORT, DataType.FLOAT);
assertEquals(result.getClass(), CompressionNoneShort.class);
}
use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.
the class ValueCompressionUtilTest method testToUnCompressMaxMinForLong.
@Test
public void testToUnCompressMaxMinForLong() {
ValueCompressionHolder result = ValueCompressionUtil.getCompressionDecimalMaxMin(DataType.LONG, null);
assertEquals(result.getClass(), CompressionMaxMinLong.class);
}
use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.
the class ValueCompressionUtilTest method testToUnCompressNonDecimalMaxMinForLong.
@Test
public void testToUnCompressNonDecimalMaxMinForLong() {
ValueCompressionHolder result = ValueCompressionUtil.getCompressionNonDecimalMaxMin(DataType.LONG);
assertEquals(result.getClass(), CompressionNonDecimalMaxMinLong.class);
}
use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.
the class ValueCompressionUtilTest method testToUnCompressMaxMinForDouble.
@Test
public void testToUnCompressMaxMinForDouble() {
ValueCompressionHolder result = ValueCompressionUtil.getCompressionDecimalMaxMin(DataType.DOUBLE, null);
assertEquals(result.getClass(), CompressionMaxMinDefault.class);
}
Aggregations