Search in sources :

Example 21 with ValueCompressionHolder

use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.

the class ValueCompressionUtilTest method testToUnCompressNoneForDouble.

@Test
public void testToUnCompressNoneForDouble() {
    ValueCompressionHolder result = ValueCompressionUtil.getCompressionNone(DataType.DOUBLE, DataType.FLOAT);
    assertEquals(result.getClass(), CompressionNoneDefault.class);
}
Also used : ValueCompressionHolder(org.apache.carbondata.core.datastore.compression.ValueCompressionHolder) Test(org.junit.Test)

Example 22 with ValueCompressionHolder

use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.

the class ValueCompressionUtilTest method testToUnCompressNonDecimalForByte.

@Test
public void testToUnCompressNonDecimalForByte() {
    ValueCompressionHolder result = ValueCompressionUtil.getCompressionNonDecimal(DataType.BYTE);
    assertEquals(result.getClass(), CompressionNonDecimalByte.class);
}
Also used : ValueCompressionHolder(org.apache.carbondata.core.datastore.compression.ValueCompressionHolder) Test(org.junit.Test)

Example 23 with ValueCompressionHolder

use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.

the class ValueCompressionUtilTest method testToUnCompressNonDecimalMaxMinForInt.

@Test
public void testToUnCompressNonDecimalMaxMinForInt() {
    ValueCompressionHolder result = ValueCompressionUtil.getCompressionNonDecimalMaxMin(DataType.INT);
    assertEquals(result.getClass(), CompressionNonDecimalMaxMinInt.class);
}
Also used : ValueCompressionHolder(org.apache.carbondata.core.datastore.compression.ValueCompressionHolder) Test(org.junit.Test)

Example 24 with ValueCompressionHolder

use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.

the class ValueCompressionUtilTest method testToUnCompressMaxMinForShort.

@Test
public void testToUnCompressMaxMinForShort() {
    ValueCompressionHolder result = ValueCompressionUtil.getCompressionDecimalMaxMin(DataType.SHORT, null);
    assertEquals(result.getClass(), CompressionMaxMinShort.class);
}
Also used : ValueCompressionHolder(org.apache.carbondata.core.datastore.compression.ValueCompressionHolder) Test(org.junit.Test)

Example 25 with ValueCompressionHolder

use of org.apache.carbondata.core.datastore.compression.ValueCompressionHolder in project carbondata by apache.

the class ValueCompressionUtilTest method testToUnCompressMaxMinForByte.

@Test
public void testToUnCompressMaxMinForByte() {
    ValueCompressionHolder result = ValueCompressionUtil.getCompressionDecimalMaxMin(DataType.BYTE, null);
    assertEquals(result.getClass(), CompressionMaxMinByte.class);
}
Also used : ValueCompressionHolder(org.apache.carbondata.core.datastore.compression.ValueCompressionHolder) Test(org.junit.Test)

Aggregations

ValueCompressionHolder (org.apache.carbondata.core.datastore.compression.ValueCompressionHolder)25 Test (org.junit.Test)21 ByteBuffer (java.nio.ByteBuffer)3 MeasureColumnDataChunk (org.apache.carbondata.core.datastore.chunk.MeasureColumnDataChunk)3 WriterCompressModel (org.apache.carbondata.core.datastore.compression.WriterCompressModel)3 CarbonReadDataHolder (org.apache.carbondata.core.datastore.dataholder.CarbonReadDataHolder)3 ValueEncoderMeta (org.apache.carbondata.core.metadata.ValueEncoderMeta)3 ArrayList (java.util.ArrayList)2 DataChunk2 (org.apache.carbondata.format.DataChunk2)2 ReaderCompressModel (org.apache.carbondata.core.datastore.compression.ReaderCompressModel)1 DataChunk (org.apache.carbondata.core.metadata.blocklet.datachunk.DataChunk)1 DataType (org.apache.carbondata.core.metadata.datatype.DataType)1 DataChunk3 (org.apache.carbondata.format.DataChunk3)1