public Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); case SCAN: return getScan(); case NUM_ROWS: return Integer.valueOf(getNumRows()); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; if (isSetTable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetScan()).compareTo(other.isSetScan()); if (lastComparison != 0) { return lastComparison; if (isSetScan()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scan, other.scan); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); if (lastComparison != 0) { return lastComparison; if (isSetNumRows()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, other.numRows); if (lastComparison != 0) {
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); } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.table = iprot.readBinary(); struct.setTableIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.tscan = new TScan(); struct.tscan.read(iprot); struct.setTscanIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.numRows = iprot.readI32(); struct.setNumRowsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.table = iprot.readBinary(); struct.setTableIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.tscan = new TScan(); struct.tscan.read(iprot); struct.setTscanIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.numRows = iprot.readI32(); struct.setNumRowsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; if (isSetTable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); if (lastComparison != 0) { return lastComparison; if (isSetTscan()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tscan, other.tscan); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); if (lastComparison != 0) { return lastComparison; if (isSetNumRows()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, other.numRows); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; if (isSetTable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetTscan()).compareTo(other.isSetTscan()); if (lastComparison != 0) { return lastComparison; if (isSetTscan()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tscan, other.tscan); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); if (lastComparison != 0) { return lastComparison; if (isSetNumRows()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, other.numRows); if (lastComparison != 0) {
public boolean equals(getScannerResults_args that) { if (that == null) return false; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); if (this_present_table || that_present_table) { if (!(this_present_table && that_present_table)) return false; if (!this.table.equals(that.table)) return false; } boolean this_present_tscan = true && this.isSetTscan(); boolean that_present_tscan = true && that.isSetTscan(); if (this_present_tscan || that_present_tscan) { if (!(this_present_tscan && that_present_tscan)) return false; if (!this.tscan.equals(that.tscan)) return false; } boolean this_present_numRows = true; boolean that_present_numRows = true; if (this_present_numRows || that_present_numRows) { if (!(this_present_numRows && that_present_numRows)) return false; if (this.numRows != that.numRows) return false; } return true; }
public boolean equals(getScannerResults_args that) { if (that == null) return false; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); if (this_present_table || that_present_table) { if (!(this_present_table && that_present_table)) return false; if (!this.table.equals(that.table)) return false; } boolean this_present_tscan = true && this.isSetTscan(); boolean that_present_tscan = true && that.isSetTscan(); if (this_present_tscan || that_present_tscan) { if (!(this_present_tscan && that_present_tscan)) return false; if (!this.tscan.equals(that.tscan)) return false; } boolean this_present_numRows = true; boolean that_present_numRows = true; if (this_present_numRows || that_present_numRows) { if (!(this_present_numRows && that_present_numRows)) return false; if (this.numRows != that.numRows) return false; } return true; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TSCAN: if (value == null) { unsetTscan(); } else { setTscan((TScan)value); } break; case NUM_ROWS: if (value == null) { unsetNumRows(); } else { setNumRows((Integer)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TSCAN: if (value == null) { unsetTscan(); } else { setTscan((TScan)value); } break; case NUM_ROWS: if (value == null) { unsetNumRows(); } else { setNumRows((Integer)value); } break; } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_table = true && (isSetTable()); list.add(present_table); if (present_table) list.add(table); boolean present_tscan = true && (isSetTscan()); list.add(present_tscan); if (present_tscan) list.add(tscan); boolean present_numRows = true; list.add(present_numRows); if (present_numRows) list.add(numRows); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_table = true && (isSetTable()); list.add(present_table); if (present_table) list.add(table); boolean present_tscan = true && (isSetTscan()); list.add(present_tscan); if (present_tscan) list.add(tscan); boolean present_numRows = true; list.add(present_numRows); if (present_numRows) list.add(numRows); return list.hashCode(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tscan = new TScan(); struct.tscan.read(iprot); struct.setTscanIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.numRows = iprot.readI32(); struct.setNumRowsIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); struct.tscan = new TScan(); struct.tscan.read(iprot); struct.setTscanIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.numRows = iprot.readI32(); struct.setNumRowsIsSet(true); } } }
/** 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 TABLE: return isSetTable(); case TSCAN: return isSetTscan(); case NUM_ROWS: return isSetNumRows(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, getScannerResults_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.table); struct.tscan.write(oprot); BitSet optionals = new BitSet(); if (struct.isSetNumRows()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetNumRows()) { oprot.writeI32(struct.numRows); } }
public getScannerResults_args deepCopy() { return new getScannerResults_args(this); }
public getScannerResults_args getEmptyArgsInstance() { return new getScannerResults_args(); }
public getScannerResults_args getEmptyArgsInstance() { return new getScannerResults_args(); }