Search in sources :

Example 11 with ValueCompressionHolder

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

the class ValueCompressionUtilTest method testToUnCompressNonDecimalForDouble.

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

Example 12 with ValueCompressionHolder

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

the class ValueCompressionUtilTest method testToUnCompressNonDecimalForShort.

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

Example 13 with ValueCompressionHolder

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

the class ValueCompressionUtilTest method testToUnCompressNone.

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

Example 14 with ValueCompressionHolder

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

the class ValueCompressionUtilTest method testToUnCompressNoneForInt.

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

Example 15 with ValueCompressionHolder

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

the class ValueCompressionUtilTest method testToUnCompressNonDecimalMaxMinForByte.

@Test
public void testToUnCompressNonDecimalMaxMinForByte() {
    ValueCompressionHolder result = ValueCompressionUtil.getCompressionNonDecimalMaxMin(DataType.BYTE);
    assertEquals(result.getClass(), CompressionNonDecimalMaxMinByte.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