本文整理汇总了Java中org.apache.kylin.cube.kv.RowKeyColumnIO类的典型用法代码示例。如果您正苦于以下问题:Java RowKeyColumnIO类的具体用法?Java RowKeyColumnIO怎么用?Java RowKeyColumnIO使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RowKeyColumnIO类属于org.apache.kylin.cube.kv包,在下文中一共展示了RowKeyColumnIO类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RowKeySplitter
import org.apache.kylin.cube.kv.RowKeyColumnIO; //导入依赖的package包/类
public RowKeySplitter(CubeSegment cubeSeg, int splitLen, int bytesLen) {
this.cubeSegment = cubeSeg;
this.enableSharding = cubeSeg.isEnableSharding();
this.cubeDesc = cubeSeg.getCubeDesc();
IDimensionEncodingMap dimEncoding = new CubeDimEncMap(cubeSeg);
for (RowKeyColDesc rowKeyColDesc : cubeDesc.getRowkey().getRowKeyColumns()) {
dimEncoding.get(rowKeyColDesc.getColRef());
}
this.colIO = new RowKeyColumnIO(dimEncoding);
this.splitBuffers = new SplittedBytes[splitLen];
this.splitOffsets = new int[splitLen];
for (int i = 0; i < splitLen; i++) {
this.splitBuffers[i] = new SplittedBytes(bytesLen);
}
this.bufferSize = 0;
}
示例2: fromCuboid
import org.apache.kylin.cube.kv.RowKeyColumnIO; //导入依赖的package包/类
public static CoprocessorRowType fromCuboid(CubeSegment seg, Cuboid cuboid) {
List<TblColRef> colList = cuboid.getColumns();
TblColRef[] cols = colList.toArray(new TblColRef[colList.size()]);
RowKeyColumnIO colIO = new RowKeyColumnIO(seg.getDimensionEncodingMap());
int[] colSizes = new int[cols.length];
for (int i = 0; i < cols.length; i++) {
colSizes[i] = colIO.getColumnLength(cols[i]);
}
return new CoprocessorRowType(cols, colSizes, seg.getRowKeyPreambleSize());
}
示例3: RowKeySplitter
import org.apache.kylin.cube.kv.RowKeyColumnIO; //导入依赖的package包/类
public RowKeySplitter(CubeSegment cubeSeg, int splitLen, int bytesLen) {
this.cubeDesc = cubeSeg.getCubeDesc();
this.colIO = new RowKeyColumnIO(cubeSeg);
this.splitBuffers = new SplittedBytes[splitLen];
for (int i = 0; i < splitLen; i++) {
this.splitBuffers[i] = new SplittedBytes(bytesLen);
}
this.bufferSize = 0;
}
示例4: fromCuboid
import org.apache.kylin.cube.kv.RowKeyColumnIO; //导入依赖的package包/类
public static CoprocessorRowType fromCuboid(CubeSegment seg, Cuboid cuboid) {
List<TblColRef> colList = cuboid.getColumns();
TblColRef[] cols = colList.toArray(new TblColRef[colList.size()]);
RowKeyColumnIO colIO = new RowKeyColumnIO(seg);
int[] colSizes = new int[cols.length];
for (int i = 0; i < cols.length; i++) {
colSizes[i] = colIO.getColumnLength(cols[i]);
}
return new CoprocessorRowType(cols, colSizes);
}
示例5: FilterDecorator
import org.apache.kylin.cube.kv.RowKeyColumnIO; //导入依赖的package包/类
public FilterDecorator(IDimensionEncodingMap dimEncMap, FilterConstantsTreatment filterConstantsTreatment) {
this.dimEncMap = dimEncMap;
this.columnIO = new RowKeyColumnIO(dimEncMap);
this.inevaluableColumns = Sets.newHashSet();
this.filterConstantsTreatment = filterConstantsTreatment;
}
示例6: FilterDecorator
import org.apache.kylin.cube.kv.RowKeyColumnIO; //导入依赖的package包/类
public FilterDecorator(ISegment seg) {
this.columnIO = new RowKeyColumnIO(seg);
this.unstrictlyFilteredColumns = Sets.newHashSet();
}