Search in sources :

Example 1 with ValueCompressionHolder

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);
}
Also used : ValueCompressionHolder(org.apache.carbondata.core.datastore.compression.ValueCompressionHolder) Test(org.junit.Test)

Example 2 with ValueCompressionHolder

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);
}
Also used : ValueCompressionHolder(org.apache.carbondata.core.datastore.compression.ValueCompressionHolder) Test(org.junit.Test)

Example 3 with ValueCompressionHolder

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);
}
Also used : ValueCompressionHolder(org.apache.carbondata.core.datastore.compression.ValueCompressionHolder) Test(org.junit.Test)

Example 4 with ValueCompressionHolder

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);
}
Also used : ValueCompressionHolder(org.apache.carbondata.core.datastore.compression.ValueCompressionHolder) Test(org.junit.Test)

Example 5 with ValueCompressionHolder

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);
}
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