Search in sources :

Example 1 with ColumnDictionaryInfo

use of org.apache.carbondata.core.cache.dictionary.ColumnDictionaryInfo in project carbondata by apache.

the class PrimitiveQueryTypeTest method setUp.

@BeforeClass
public static void setUp() {
    String name = "test";
    String parentName = "testParent";
    int blockIndex = 1;
    int keySize = 1;
    boolean isDirectDictionary = true;
    primitiveQueryType = new PrimitiveQueryType(name, parentName, blockIndex, DataType.STRING, keySize, dictionary, isDirectDictionary);
    primitiveQueryTypeForInt = new PrimitiveQueryType(name, parentName, blockIndex, DataType.INT, keySize, dictionary, isDirectDictionary);
    primitiveQueryTypeForDouble = new PrimitiveQueryType(name, parentName, blockIndex, DataType.DOUBLE, keySize, dictionary, isDirectDictionary);
    primitiveQueryTypeForLong = new PrimitiveQueryType(name, parentName, blockIndex, DataType.LONG, keySize, dictionary, isDirectDictionary);
    primitiveQueryTypeForBoolean = new PrimitiveQueryType(name, parentName, blockIndex, DataType.BOOLEAN, keySize, dictionary, isDirectDictionary);
    primitiveQueryTypeForTimeStamp = new PrimitiveQueryType(name, parentName, blockIndex, DataType.TIMESTAMP, keySize, dictionary, isDirectDictionary);
    ColumnDictionaryInfo columnDictionaryInfo = new ColumnDictionaryInfo(DataType.STRING);
    ForwardDictionary forwardDictionary = new ForwardDictionary(columnDictionaryInfo);
    primitiveQueryTypeForTimeStampForIsDictionaryFalse = new PrimitiveQueryType(name, parentName, blockIndex, DataType.TIMESTAMP, keySize, forwardDictionary, false);
}
Also used : ForwardDictionary(org.apache.carbondata.core.cache.dictionary.ForwardDictionary) ColumnDictionaryInfo(org.apache.carbondata.core.cache.dictionary.ColumnDictionaryInfo) BeforeClass(org.junit.BeforeClass)

Aggregations

ColumnDictionaryInfo (org.apache.carbondata.core.cache.dictionary.ColumnDictionaryInfo)1 ForwardDictionary (org.apache.carbondata.core.cache.dictionary.ForwardDictionary)1 BeforeClass (org.junit.BeforeClass)1