use of org.apache.carbondata.core.metadata.encoder.Encoding in project carbondata by apache.
the class SegmentPropertiesTest method getMeasureColumn.
private ColumnSchema getMeasureColumn() {
ColumnSchema dimColumn = new ColumnSchema();
dimColumn.setColumnName("IMEI_COUNT");
dimColumn.setColumnUniqueId(UUID.randomUUID().toString());
dimColumn.setDataType(DataType.STRING);
List<Encoding> encodeList = new ArrayList<Encoding>(CarbonCommonConstants.DEFAULT_COLLECTION_SIZE);
encodeList.add(Encoding.DELTA);
dimColumn.setEncodingList(encodeList);
return dimColumn;
}
use of org.apache.carbondata.core.metadata.encoder.Encoding in project carbondata by apache.
the class SegmentPropertiesTest method getDimensionColumn5.
private ColumnSchema getDimensionColumn5() {
ColumnSchema dimColumn = new ColumnSchema();
dimColumn.setColumnar(true);
dimColumn.setColumnName("IMEI4");
dimColumn.setColumnUniqueId(UUID.randomUUID().toString());
dimColumn.setDataType(DataType.STRING);
dimColumn.setDimensionColumn(true);
List<Encoding> encodeList = new ArrayList<Encoding>(CarbonCommonConstants.DEFAULT_COLLECTION_SIZE);
dimColumn.setEncodingList(encodeList);
dimColumn.setNumberOfChild(0);
return dimColumn;
}
use of org.apache.carbondata.core.metadata.encoder.Encoding in project carbondata by apache.
the class SegmentPropertiesTest method getDimensionColumn10.
private ColumnSchema getDimensionColumn10() {
ColumnSchema dimColumn = new ColumnSchema();
dimColumn.setColumnar(false);
dimColumn.setColumnName("IMEI10");
dimColumn.setColumnUniqueId(UUID.randomUUID().toString());
dimColumn.setDataType(DataType.STRING);
dimColumn.setDimensionColumn(true);
List<Encoding> encodeList = new ArrayList<Encoding>(CarbonCommonConstants.DEFAULT_COLLECTION_SIZE);
encodeList.add(Encoding.DICTIONARY);
dimColumn.setEncodingList(encodeList);
dimColumn.setNumberOfChild(0);
dimColumn.setColumnGroup(1);
return dimColumn;
}
use of org.apache.carbondata.core.metadata.encoder.Encoding in project carbondata by apache.
the class SegmentPropertiesTest method getMeasureColumn1.
private ColumnSchema getMeasureColumn1() {
ColumnSchema dimColumn = new ColumnSchema();
dimColumn.setColumnName("IMEI_COUNT1");
dimColumn.setColumnUniqueId(UUID.randomUUID().toString());
dimColumn.setDataType(DataType.STRING);
List<Encoding> encodeList = new ArrayList<Encoding>(CarbonCommonConstants.DEFAULT_COLLECTION_SIZE);
encodeList.add(Encoding.DELTA);
dimColumn.setEncodingList(encodeList);
return dimColumn;
}
use of org.apache.carbondata.core.metadata.encoder.Encoding in project carbondata by apache.
the class SegmentPropertiesTest method getDimensionColumn2.
private ColumnSchema getDimensionColumn2() {
ColumnSchema dimColumn = new ColumnSchema();
dimColumn.setColumnar(true);
dimColumn.setColumnName("IMEI1");
dimColumn.setColumnUniqueId(UUID.randomUUID().toString());
dimColumn.setDataType(DataType.STRING);
dimColumn.setDimensionColumn(true);
List<Encoding> encodeList = new ArrayList<Encoding>(CarbonCommonConstants.DEFAULT_COLLECTION_SIZE);
dimColumn.setEncodingList(encodeList);
dimColumn.setNumberOfChild(0);
return dimColumn;
}
Aggregations