private void checkSourceOffsets(SourcePartition src) { if (src.getSegRange() == null) return; long startOffset = (Long) src.getSegRange().start.v; long endOffset = (Long) src.getSegRange().end.v; final Map<Integer, Long> sourcePartitionOffsetStart = src.getSourcePartitionOffsetStart(); final Map<Integer, Long> sourcePartitionOffsetEnd = src.getSourcePartitionOffsetEnd();
public CubeSegment appendSegment(CubeInstance cube, SourcePartition src) throws IOException { return appendSegment(cube, src.getTSRange(), src.getSegRange(), src.getSourcePartitionOffsetStart(), src.getSourcePartitionOffsetEnd()); }
public static SourcePartition getCopyOf(SourcePartition origin) { SourcePartition copy = new SourcePartition(); copy.setTSRange(origin.getTSRange()); copy.setSegRange(origin.getSegRange()); if (origin.getSourcePartitionOffsetStart() != null) { copy.setSourcePartitionOffsetStart(new HashMap<>(origin.getSourcePartitionOffsetStart())); } if (origin.getSourcePartitionOffsetEnd() != null) { copy.setSourcePartitionOffsetEnd(new HashMap<>(origin.getSourcePartitionOffsetEnd())); } return copy; } }
checkSourceOffsets(srcPartition); final SourcePartition result = SourcePartition.getCopyOf(srcPartition); final SegmentRange range = result.getSegRange(); final CubeInstance cube = (CubeInstance) buildable; if (range == null || range.start.v.equals(0L)) {
private void checkSourceOffsets(SourcePartition src) { if (src.getSegRange() == null) return; long startOffset = (Long) src.getSegRange().start.v; long endOffset = (Long) src.getSegRange().end.v; final Map<Integer, Long> sourcePartitionOffsetStart = src.getSourcePartitionOffsetStart(); final Map<Integer, Long> sourcePartitionOffsetEnd = src.getSourcePartitionOffsetEnd();
public CubeSegment appendSegment(CubeInstance cube, SourcePartition src) throws IOException { return appendSegment(cube, src.getTSRange(), src.getSegRange(), src.getSourcePartitionOffsetStart(), src.getSourcePartitionOffsetEnd()); }
public static SourcePartition getCopyOf(SourcePartition origin) { SourcePartition copy = new SourcePartition(); copy.setTSRange(origin.getTSRange()); copy.setSegRange(origin.getSegRange()); if (origin.getSourcePartitionOffsetStart() != null) { copy.setSourcePartitionOffsetStart(new HashMap<>(origin.getSourcePartitionOffsetStart())); } if (origin.getSourcePartitionOffsetEnd() != null) { copy.setSourcePartitionOffsetEnd(new HashMap<>(origin.getSourcePartitionOffsetEnd())); } return copy; } }
checkSourceOffsets(srcPartition); final SourcePartition result = SourcePartition.getCopyOf(srcPartition); final SegmentRange range = result.getSegRange(); final CubeInstance cube = (CubeInstance) buildable; if (range == null || range.start.v.equals(0L)) {