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