/** * Performs a deep copy on <i>other</i>. */ public getPreferredServer_result(getPreferredServer_result other) { if (other.isSetSuccess()) { this.success = new HostAddress(other.success); } if (other.isSetError()) { this.error = new SnappyException(other.error); } }
public void send_getAllServersWithPreferredServer(Set<ServerType> serverTypes, Set<String> serverGroups, Set<HostAddress> failedServers) throws org.apache.thrift.TException { getAllServersWithPreferredServer_args args = new getAllServersWithPreferredServer_args(); args.setServerTypes(serverTypes); args.setServerGroups(serverGroups); args.setFailedServers(failedServers); sendBase("getAllServersWithPreferredServer", args); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BlobChunk struct) throws org.apache.thrift.TException { final ByteBuffer buffer = struct.getBufferForWrite(prot); try { writeData(prot, struct, buffer != null ? buffer : ClientSharedData.NULL_BUFFER); } finally { // free the blob once written struct.free(); } }
/** * {@inheritDoc} */ @Override public int getResultSetConcurrency() throws SQLException { return this.attrs.isSetUpdatable() && this.attrs.isUpdatable() ? ResultSet.CONCUR_UPDATABLE : ResultSet.CONCUR_READ_ONLY; }
/** * {@inheritDoc} */ @Override public int getResultSetHoldability() throws SQLException { return this.attrs.isSetHoldCursorsOverCommit() && this.attrs.isHoldCursorsOverCommit() ? ResultSet.HOLD_CURSORS_OVER_COMMIT : ResultSet.CLOSE_CURSORS_AT_COMMIT; }
@Override public void write(org.apache.thrift.protocol.TProtocol oprot, BlobChunk struct) throws org.apache.thrift.TException { struct.validate(); final ByteBuffer chunk = struct.getBufferForWrite(oprot); try { writeData(oprot, struct, chunk); } finally { // free the blob once written struct.free(); } }
public void send_getPreferredServer(Set<ServerType> serverTypes, Set<String> serverGroups, Set<HostAddress> failedServers) throws org.apache.thrift.TException { getPreferredServer_args args = new getPreferredServer_args(); args.setServerTypes(serverTypes); args.setServerGroups(serverGroups); args.setFailedServers(failedServers); sendBase("getPreferredServer", args); }
public static ColumnValue i64_val(long value) { ColumnValue x = new ColumnValue(); x.setI64_val(value); return x; }
/** * {@inheritDoc} */ @Override public void clearWarnings() throws SQLException { final RowSet rs = this.currentRowSet; if (rs != null) { rs.setWarnings(null); } this.warnings = null; }
public getPreferredServer_result getResult(I iface, getPreferredServer_args args) throws org.apache.thrift.TException { getPreferredServer_result result = new getPreferredServer_result(); try { result.success = iface.getPreferredServer(args.serverTypes, args.serverGroups, args.failedServers); } catch (SnappyException error) { result.error = error; } return result; } }
public getAllServersWithPreferredServer_result getResult(I iface, getAllServersWithPreferredServer_args args) throws org.apache.thrift.TException { getAllServersWithPreferredServer_result result = new getAllServersWithPreferredServer_result(); try { result.success = iface.getAllServersWithPreferredServer(args.serverTypes, args.serverGroups, args.failedServers); } catch (SnappyException error) { result.error = error; } return result; } }
public BlobChunk( ByteBuffer chunk, boolean last) { this(); this.chunk = chunk; this.last = last; setLastIsSet(true); }
public BlobChunk setOffset(long offset) { this.offset = offset; setOffsetIsSet(true); return this; }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof BlobChunk) return this.equals((BlobChunk)that); return false; }
public ColumnDescriptor( SnappyType type, short precision) { this(); this.type = type; this.precision = precision; setPrecisionIsSet(true); }
public ColumnDescriptor setAutoIncrement(boolean autoIncrement) { this.autoIncrement = autoIncrement; setAutoIncrementIsSet(true); return this; }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof OpenConnectionArgs) return this.equals((OpenConnectionArgs)that); return false; }
public OutputParameter setScale(int scale) { this.scale = scale; setScaleIsSet(true); return this; }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof OutputParameter) return this.equals((OutputParameter)that); return false; }