use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.
the class ValueCompressionUtilTest method testToUnCompressNoneForLong.
@Test
public void testToUnCompressNoneForLong() {
ValueCompressionHolder result = ValueCompressionUtil.getCompressionNone(DataType.LONG, DataType.FLOAT);
assertEquals(result.getClass(), CompressionNoneLong.class);
}
use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.
the class ValueCompressionUtilTest method testToUnCompressNonDecimalMaxMinForDouble.
@Test
public void testToUnCompressNonDecimalMaxMinForDouble() {
ValueCompressionHolder result = ValueCompressionUtil.getCompressionNonDecimalMaxMin(DataType.DOUBLE);
assertEquals(result.getClass(), CompressionNonDecimalMaxMinDefault.class);
}
use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.
the class ValueCompressionUtilTest method testToUnCompressNoneForByte.
@Test
public void testToUnCompressNoneForByte() {
ValueCompressionHolder result = ValueCompressionUtil.getCompressionNone(DataType.BYTE, DataType.FLOAT);
assertEquals(result.getClass(), CompressionNoneByte.class);
}
use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.
the class ValueCompressionUtilTest method testToUnCompressMaxMinForInt.
@Test
public void testToUnCompressMaxMinForInt() {
ValueCompressionHolder result = ValueCompressionUtil.getCompressionDecimalMaxMin(DataType.INT, null);
assertEquals(result.getClass(), CompressionMaxMinInt.class);
}
use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.
the class ValueCompressionUtilTest method testToUnCompressNonDecimalMaxMinForShort.
@Test
public void testToUnCompressNonDecimalMaxMinForShort() {
ValueCompressionHolder result = ValueCompressionUtil.getCompressionNonDecimalMaxMin(DataType.SHORT);
assertEquals(result.getClass(), CompressionNonDecimalMaxMinShort.class);
}
Aggregations