org.apache.kylin.cube.kv.RowKeyColumnIO Java Examples
The following examples show how to use
org.apache.kylin.cube.kv.RowKeyColumnIO.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CoprocessorRowType.java From kylin-on-parquet-v2 with Apache License 2.0 | 5 votes |
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()); }
Example #2
Source File: RowKeySplitter.java From kylin-on-parquet-v2 with Apache License 2.0 | 5 votes |
public RowKeySplitter(CubeSegment cubeSeg, int splitLen, int bytesLen) { 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 ByteArray[splitLen]; this.splitOffsets = new int[splitLen]; this.bufferSize = 0; }
Example #3
Source File: CoprocessorRowType.java From kylin with Apache License 2.0 | 5 votes |
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()); }
Example #4
Source File: RowKeySplitter.java From kylin with Apache License 2.0 | 5 votes |
public RowKeySplitter(CubeSegment cubeSeg, int splitLen, int bytesLen) { 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 ByteArray[splitLen]; this.splitOffsets = new int[splitLen]; this.bufferSize = 0; }
Example #5
Source File: RowKeySplitter.java From Kylin with Apache License 2.0 | 5 votes |
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; }
Example #6
Source File: CoprocessorRowType.java From Kylin with Apache License 2.0 | 5 votes |
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); }
Example #7
Source File: FilterDecorator.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
public FilterDecorator(IDimensionEncodingMap dimEncMap, FilterConstantsTreatment filterConstantsTreatment) { this.dimEncMap = dimEncMap; this.columnIO = new RowKeyColumnIO(dimEncMap); this.inevaluableColumns = Sets.newHashSet(); this.filterConstantsTreatment = filterConstantsTreatment; }
Example #8
Source File: FilterDecorator.java From kylin with Apache License 2.0 | 4 votes |
public FilterDecorator(IDimensionEncodingMap dimEncMap, FilterConstantsTreatment filterConstantsTreatment) { this.dimEncMap = dimEncMap; this.columnIO = new RowKeyColumnIO(dimEncMap); this.inevaluableColumns = Sets.newHashSet(); this.filterConstantsTreatment = filterConstantsTreatment; }
Example #9
Source File: CoprocessorFilter.java From Kylin with Apache License 2.0 | 4 votes |
public FilterDecorator(ISegment seg) { this.columnIO = new RowKeyColumnIO(seg); this.unstrictlyFilteredColumns = Sets.newHashSet(); }