@org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { case COLUMN_NAME: return getColumnName(); case CELL: return getCell(); } throw new java.lang.IllegalStateException(); }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TColumn) return this.equals((TColumn)that); return false; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetColumnName()) ? 131071 : 524287); if (isSetColumnName()) hashCode = hashCode * 8191 + columnName.hashCode(); hashCode = hashCode * 8191 + ((isSetCell()) ? 131071 : 524287); if (isSetCell()) hashCode = hashCode * 8191 + cell.hashCode(); return hashCode; }
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case COLUMN_NAME: if (value == null) { unsetColumnName(); } else { if (value instanceof byte[]) { setColumnName((byte[])value); } else { setColumnName((java.nio.ByteBuffer)value); } } break; case CELL: if (value == null) { unsetCell(); } else { setCell((TCell)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.columnName = iprot.readBinary(); struct.setColumnNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.cell = new TCell(); struct.cell.read(iprot); struct.setCellIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.columnName = iprot.readBinary(); struct.setColumnNameIsSet(true); } if (incoming.get(1)) { struct.cell = new TCell(); struct.cell.read(iprot); struct.setCellIsSet(true); } } }
public TColumn deepCopy() { return new TColumn(this); }
TRowResult rowResult6 = handler.scannerGet(scanner6).get(0); assertEquals(1, rowResult6.sortedColumns.size()); assertEquals(rowResult6.sortedColumns.get(0).getCell().value, valueCname);
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { 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); } }
public byte[] getColumnName() { setColumnName(org.apache.thrift.TBaseHelper.rightSize(columnName)); return columnName == null ? null : columnName.array(); }
/** 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 java.lang.IllegalArgumentException(); } switch (field) { case COLUMN_NAME: return isSetColumnName(); case CELL: return isSetCell(); } throw new java.lang.IllegalStateException(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case COLUMN_NAME: if (value == null) { unsetColumnName(); } else { setColumnName((ByteBuffer)value); } break; case CELL: if (value == null) { unsetCell(); } else { setCell((TCell)value); } break; } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.columnName = iprot.readBinary(); struct.setColumnNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.cell = new TCell(); struct.cell.read(iprot); struct.setCellIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.columnName = iprot.readBinary(); struct.setColumnNameIsSet(true); } if (incoming.get(1)) { struct.cell = new TCell(); struct.cell.read(iprot); struct.setCellIsSet(true); } } }
/** * Performs a deep copy on <i>other</i>. */ public TRowResult(TRowResult other) { if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumns()) { java.util.Map<java.nio.ByteBuffer,TCell> __this__columns = new java.util.HashMap<java.nio.ByteBuffer,TCell>(other.columns.size()); for (java.util.Map.Entry<java.nio.ByteBuffer, TCell> other_element : other.columns.entrySet()) { java.nio.ByteBuffer other_element_key = other_element.getKey(); TCell other_element_value = other_element.getValue(); java.nio.ByteBuffer __this__columns_copy_key = org.apache.thrift.TBaseHelper.copyBinary(other_element_key); TCell __this__columns_copy_value = new TCell(other_element_value); __this__columns.put(__this__columns_copy_key, __this__columns_copy_value); } this.columns = __this__columns; } if (other.isSetSortedColumns()) { java.util.List<TColumn> __this__sortedColumns = new java.util.ArrayList<TColumn>(other.sortedColumns.size()); for (TColumn other_element : other.sortedColumns) { __this__sortedColumns.add(new TColumn(other_element)); } this.sortedColumns = __this__sortedColumns; } }
TRowResult rowResult6 = handler.scannerGet(scanner6).get(0); assertEquals(1, rowResult6.sortedColumns.size()); assertEquals(rowResult6.sortedColumns.get(0).getCell().value, valueCname);
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { 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); } }
public byte[] getColumnName() { setColumnName(org.apache.thrift.TBaseHelper.rightSize(columnName)); return columnName == null ? null : columnName.array(); }
public boolean equals(TColumn that) { if (that == null) return false; if (this == that) return true; boolean this_present_columnName = true && this.isSetColumnName(); boolean that_present_columnName = true && that.isSetColumnName(); if (this_present_columnName || that_present_columnName) { if (!(this_present_columnName && that_present_columnName)) return false; if (!this.columnName.equals(that.columnName)) return false; } boolean this_present_cell = true && this.isSetCell(); boolean that_present_cell = true && that.isSetCell(); if (this_present_cell || that_present_cell) { if (!(this_present_cell && that_present_cell)) return false; if (!this.cell.equals(that.cell)) return false; } return true; }