@Override public int hashCode() { return Objects.hash(column(), complexDeletion(), cells); }
@Override public int hashCode() { return Objects.hash(column(), complexDeletion(), BTree.hashCode(cells)); }
private static int minDeletionTime(ComplexColumnData cd) { int min = minDeletionTime(cd.complexDeletion()); for (Cell cell : cd) { min = Math.min(min, minDeletionTime(cell)); if (min == Integer.MIN_VALUE) break; } return min; }
@Override public int hashCode() { return Objects.hash(column(), complexDeletion(), BTree.hashCode(cells)); }
private static int minDeletionTime(ComplexColumnData cd) { int min = minDeletionTime(cd.complexDeletion()); for (Cell cell : cd) { min = Math.min(min, minDeletionTime(cell)); if (min == Integer.MIN_VALUE) break; } return min; }
@Override public int hashCode() { return Objects.hash(column(), complexDeletion(), BTree.hashCode(cells)); }
private static int minDeletionTime(ComplexColumnData cd) { int min = minDeletionTime(cd.complexDeletion()); for (Cell cell : cd) { min = Math.min(min, minDeletionTime(cell)); if (min == Integer.MIN_VALUE) break; } return min; }
private long sizeOfComplexColumn(ComplexColumnData data, ColumnDefinition column, boolean hasComplexDeletion, LivenessInfo rowLiveness, SerializationHeader header) { long size = 0; if (hasComplexDeletion) size += header.deletionTimeSerializedSize(data.complexDeletion()); size += TypeSizes.sizeofUnsignedVInt(data.cellsCount()); for (Cell cell : data) size += Cell.serializer.serializedSize(cell, column, rowLiveness, header); return size; }
private long sizeOfComplexColumn(ComplexColumnData data, ColumnDefinition column, boolean hasComplexDeletion, LivenessInfo rowLiveness, SerializationHeader header) { long size = 0; if (hasComplexDeletion) size += header.deletionTimeSerializedSize(data.complexDeletion()); size += TypeSizes.sizeofUnsignedVInt(data.cellsCount()); for (Cell cell : data) size += Cell.serializer.serializedSize(cell, column, rowLiveness, header); return size; }
private void writeComplexColumn(ComplexColumnData data, ColumnDefinition column, boolean hasComplexDeletion, LivenessInfo rowLiveness, SerializationHeader header, DataOutputPlus out) throws IOException { if (hasComplexDeletion) header.writeDeletionTime(data.complexDeletion(), out); out.writeUnsignedVInt(data.cellsCount()); for (Cell cell : data) Cell.serializer.serialize(cell, column, out, rowLiveness, header); }
private void writeComplexColumn(ComplexColumnData data, ColumnDefinition column, boolean hasComplexDeletion, LivenessInfo rowLiveness, SerializationHeader header, DataOutputPlus out) throws IOException { if (hasComplexDeletion) header.writeDeletionTime(data.complexDeletion(), out); out.writeUnsignedVInt(data.cellsCount()); for (Cell cell : data) Cell.serializer.serialize(cell, column, out, rowLiveness, header); }
private long sizeOfComplexColumn(ComplexColumnData data, ColumnDefinition column, boolean hasComplexDeletion, LivenessInfo rowLiveness, SerializationHeader header) { long size = 0; if (hasComplexDeletion) size += header.deletionTimeSerializedSize(data.complexDeletion()); size += TypeSizes.sizeofUnsignedVInt(data.cellsCount()); for (Cell cell : data) size += Cell.serializer.serializedSize(cell, column, rowLiveness, header); return size; }
private void writeComplexColumn(ComplexColumnData data, ColumnDefinition column, boolean hasComplexDeletion, LivenessInfo rowLiveness, SerializationHeader header, DataOutputPlus out) throws IOException { if (hasComplexDeletion) header.writeDeletionTime(data.complexDeletion(), out); out.writeUnsignedVInt(data.cellsCount()); for (Cell cell : data) Cell.serializer.serialize(cell, column, out, rowLiveness, header); }
private void writeComplexColumn(ComplexColumnData data, ColumnDefinition column, boolean hasComplexDeletion, LivenessInfo rowLiveness, SerializationHeader header, DataOutputPlus out) throws IOException { if (hasComplexDeletion) header.writeDeletionTime(data.complexDeletion(), out); out.writeUnsignedVInt(data.cellsCount()); for (Cell cell : data) Cell.serializer.serialize(cell, column, out, rowLiveness, header); }
@Override public boolean equals(Object other) { if (this == other) return true; if(!(other instanceof ComplexColumnData)) return false; ComplexColumnData that = (ComplexColumnData)other; return this.column().equals(that.column()) && this.complexDeletion().equals(that.complexDeletion) && BTree.equals(this.cells, that.cells); }
@Override public boolean equals(Object other) { if (this == other) return true; if(!(other instanceof ComplexColumnData)) return false; ComplexColumnData that = (ComplexColumnData)other; return this.column().equals(that.column()) && this.complexDeletion().equals(that.complexDeletion) && BTree.equals(this.cells, that.cells); }
@Override public boolean equals(Object other) { if (this == other) return true; if(!(other instanceof ComplexColumnData)) return false; ComplexColumnData that = (ComplexColumnData)other; return this.column().equals(that.column()) && this.complexDeletion().equals(that.complexDeletion) && BTree.equals(this.cells, that.cells); }
@Override public boolean equals(Object other) { if (this == other) return true; if(!(other instanceof ComplexColumnData)) return false; ComplexColumnData that = (ComplexColumnData)other; return this.column().equals(that.column()) && this.complexDeletion().equals(that.complexDeletion) && BTree.equals(this.cells, that.cells); }
private void addColumnData(ColumnDefinition viewColumn, ColumnData baseTableData) { assert viewColumn.isComplex() == baseTableData.column().isComplex(); if (!viewColumn.isComplex()) { addCell(viewColumn, (Cell)baseTableData); return; } ComplexColumnData complexData = (ComplexColumnData)baseTableData; currentViewEntryBuilder.addComplexDeletion(viewColumn, complexData.complexDeletion()); for (Cell cell : complexData) addCell(viewColumn, cell); }
private void addColumnData(ColumnDefinition viewColumn, ColumnData baseTableData) { assert viewColumn.isComplex() == baseTableData.column().isComplex(); if (!viewColumn.isComplex()) { addCell(viewColumn, (Cell)baseTableData); return; } ComplexColumnData complexData = (ComplexColumnData)baseTableData; currentViewEntryBuilder.addComplexDeletion(viewColumn, complexData.complexDeletion()); for (Cell cell : complexData) addCell(viewColumn, cell); }