public Object getFieldValue(_Fields field) { switch (field) { case NUM_ROWS: return getNum_rows(); case COLUMN_DATA_CHUNKS_OFFSETS: return getColumn_data_chunks_offsets(); case COLUMN_DATA_CHUNKS_LENGTH: return getColumn_data_chunks_length(); } throw new IllegalStateException(); }
public BlockletInfo2 deepCopy() { return new BlockletInfo2(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof BlockletInfo2) return this.equals((BlockletInfo2)that); return false; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NUM_ROWS: return isSetNum_rows(); case COLUMN_DATA_CHUNKS_OFFSETS: return isSetColumn_data_chunks_offsets(); case COLUMN_DATA_CHUNKS_LENGTH: return isSetColumn_data_chunks_length(); } throw new IllegalStateException(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case NUM_ROWS: if (value == null) { unsetNum_rows(); } else { setNum_rows((Integer)value); } break; case COLUMN_DATA_CHUNKS_OFFSETS: if (value == null) { unsetColumn_data_chunks_offsets(); } else { setColumn_data_chunks_offsets((List<Long>)value); } break; case COLUMN_DATA_CHUNKS_LENGTH: if (value == null) { unsetColumn_data_chunks_length(); } else { setColumn_data_chunks_length((List<Short>)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.num_rows = iprot.readI32(); struct.setNum_rowsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.setColumn_data_chunks_offsetsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.setColumn_data_chunks_lengthIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (!struct.isSetNum_rows()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'num_rows' was not found in serialized data! Struct: " + toString()); struct.validate();
/** * Performs a deep copy on <i>other</i>. */ public BlockletInfo2(BlockletInfo2 other) { __isset_bitfield = other.__isset_bitfield; this.num_rows = other.num_rows; if (other.isSetColumn_data_chunks_offsets()) { List<Long> __this__column_data_chunks_offsets = new ArrayList<Long>(other.column_data_chunks_offsets); this.column_data_chunks_offsets = __this__column_data_chunks_offsets; } if (other.isSetColumn_data_chunks_length()) { List<Short> __this__column_data_chunks_length = new ArrayList<Short>(other.column_data_chunks_length); this.column_data_chunks_length = __this__column_data_chunks_length; } }
for (int _i147 = 0; _i147 < _list145.size; ++_i147) _elem146 = new BlockletInfo2(); _elem146.read(iprot); struct.blocklet_info_list2.add(_elem146);
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
lastComparison = Boolean.valueOf(isSetNum_rows()).compareTo(other.isSetNum_rows()); if (lastComparison != 0) { return lastComparison; if (isSetNum_rows()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.num_rows, other.num_rows); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetColumn_data_chunks_offsets()).compareTo(other.isSetColumn_data_chunks_offsets()); if (lastComparison != 0) { return lastComparison; if (isSetColumn_data_chunks_offsets()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_data_chunks_offsets, other.column_data_chunks_offsets); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetColumn_data_chunks_length()).compareTo(other.isSetColumn_data_chunks_length()); if (lastComparison != 0) { return lastComparison; if (isSetColumn_data_chunks_length()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_data_chunks_length, other.column_data_chunks_length); if (lastComparison != 0) {
public boolean equals(BlockletInfo2 that) { if (that == null) return false; boolean this_present_num_rows = true; boolean that_present_num_rows = true; if (this_present_num_rows || that_present_num_rows) { if (!(this_present_num_rows && that_present_num_rows)) return false; if (this.num_rows != that.num_rows) return false; } boolean this_present_column_data_chunks_offsets = true && this.isSetColumn_data_chunks_offsets(); boolean that_present_column_data_chunks_offsets = true && that.isSetColumn_data_chunks_offsets(); if (this_present_column_data_chunks_offsets || that_present_column_data_chunks_offsets) { if (!(this_present_column_data_chunks_offsets && that_present_column_data_chunks_offsets)) return false; if (!this.column_data_chunks_offsets.equals(that.column_data_chunks_offsets)) return false; } boolean this_present_column_data_chunks_length = true && this.isSetColumn_data_chunks_length(); boolean that_present_column_data_chunks_length = true && that.isSetColumn_data_chunks_length(); if (this_present_column_data_chunks_length || that_present_column_data_chunks_length) { if (!(this_present_column_data_chunks_length && that_present_column_data_chunks_length)) return false; if (!this.column_data_chunks_length.equals(that.column_data_chunks_length)) return false; } return true; }
for (int _i167 = 0; _i167 < _list165.size; ++_i167) _elem166 = new BlockletInfo2(); _elem166.read(iprot); struct.blocklet_info_list2.add(_elem166);
BlockletInfo blockletInfo = new BlockletInfo(); List<Long> dimensionColumnChunkOffsets = blockletInfoThrift.getColumn_data_chunks_offsets().subList(0, numberOfDimensionColumns); List<Long> measureColumnChunksOffsets = blockletInfoThrift.getColumn_data_chunks_offsets() .subList(numberOfDimensionColumns, blockletInfoThrift.getColumn_data_chunks_offsets().size()); List<Short> dimensionColumnChunkLength = blockletInfoThrift.getColumn_data_chunks_length().subList(0, numberOfDimensionColumns); List<Short> measureColumnChunksLength = blockletInfoThrift.getColumn_data_chunks_length() .subList(numberOfDimensionColumns, blockletInfoThrift.getColumn_data_chunks_offsets().size()); blockletInfo.setDimensionChunkOffsets(dimensionColumnChunkOffsets); blockletInfo.setMeasureChunkOffsets(measureColumnChunksOffsets); blockletInfo.setNumberOfRows(blockletInfoThrift.getNum_rows()); return blockletInfo;
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_num_rows = true; list.add(present_num_rows); if (present_num_rows) list.add(num_rows); boolean present_column_data_chunks_offsets = true && (isSetColumn_data_chunks_offsets()); list.add(present_column_data_chunks_offsets); if (present_column_data_chunks_offsets) list.add(column_data_chunks_offsets); boolean present_column_data_chunks_length = true && (isSetColumn_data_chunks_length()); list.add(present_column_data_chunks_length); if (present_column_data_chunks_length) list.add(column_data_chunks_length); return list.hashCode(); }
List<BlockletInfo2> __this__blocklet_info_list2 = new ArrayList<BlockletInfo2>(other.blocklet_info_list2.size()); for (BlockletInfo2 other_element : other.blocklet_info_list2) { __this__blocklet_info_list2.add(new BlockletInfo2(other_element));