当前位置: 首页>>代码示例>>Java>>正文


Java RowKeyColumnIO类代码示例

本文整理汇总了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;
}
 
开发者ID:apache,项目名称:kylin,代码行数:20,代码来源:RowKeySplitter.java

示例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());
}
 
开发者ID:apache,项目名称:kylin,代码行数:11,代码来源:CoprocessorRowType.java

示例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;
}
 
开发者ID:KylinOLAP,项目名称:Kylin,代码行数:11,代码来源:RowKeySplitter.java

示例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);
}
 
开发者ID:KylinOLAP,项目名称:Kylin,代码行数:11,代码来源:CoprocessorRowType.java

示例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;
}
 
开发者ID:apache,项目名称:kylin,代码行数:7,代码来源:FilterDecorator.java

示例6: FilterDecorator

import org.apache.kylin.cube.kv.RowKeyColumnIO; //导入依赖的package包/类
public FilterDecorator(ISegment seg) {
    this.columnIO = new RowKeyColumnIO(seg);
    this.unstrictlyFilteredColumns = Sets.newHashSet();
}
 
开发者ID:KylinOLAP,项目名称:Kylin,代码行数:5,代码来源:CoprocessorFilter.java


注:本文中的org.apache.kylin.cube.kv.RowKeyColumnIO类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。