public final ClobChunk getClobChunk(int index, boolean clearFinalizer) { final int lobIndex = (-this.positionMap[index]) - 1; final ClobChunk chunk = (ClobChunk)this.nonPrimitives[lobIndex]; if (clearFinalizer && chunk != null && chunk.isSetLobId()) { final FinalizeObject finalizer = (FinalizeObject)this.nonPrimitives[lobIndex + 1]; if (finalizer != null) { finalizer.clearAll(); this.nonPrimitives[lobIndex + 1] = null; } } return chunk; }
sb.append(this.last); first = false; if (isSetLobId()) { if (!first) sb.append(", "); sb.append("lobId:");
public void write(org.apache.thrift.protocol.TProtocol oprot, ClobChunk struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.chunk != null) { oprot.writeFieldBegin(CHUNK_FIELD_DESC); oprot.writeString(struct.chunk); oprot.writeFieldEnd(); } oprot.writeFieldBegin(LAST_FIELD_DESC); oprot.writeBool(struct.last); oprot.writeFieldEnd(); if (struct.isSetLobId()) { oprot.writeFieldBegin(LOB_ID_FIELD_DESC); oprot.writeI32(struct.lobId); oprot.writeFieldEnd(); } if (struct.isSetOffset()) { oprot.writeFieldBegin(OFFSET_FIELD_DESC); oprot.writeI64(struct.offset); oprot.writeFieldEnd(); } if (struct.isSetTotalLength()) { oprot.writeFieldBegin(TOTAL_LENGTH_FIELD_DESC); oprot.writeI64(struct.totalLength); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
Long.toString(Integer.MAX_VALUE)); if (!clob.isSetLobId()) { throw ThriftExceptionUtil.newSQLException( SQLState.LOB_LOCATOR_INVALID, new RuntimeException("missing LOB id"));
/** 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 CHUNK: return isSetChunk(); case LAST: return isSetLast(); case LOB_ID: return isSetLobId(); case OFFSET: return isSetOffset(); case TOTAL_LENGTH: return isSetTotalLength(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetLobId()).compareTo(other.isSetLobId()); if (lastComparison != 0) { return lastComparison; if (isSetLobId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lobId, other.lobId); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ClobChunk struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.chunk); oprot.writeBool(struct.last); BitSet optionals = new BitSet(); if (struct.isSetLobId()) { optionals.set(0); } if (struct.isSetOffset()) { optionals.set(1); } if (struct.isSetTotalLength()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetLobId()) { oprot.writeI32(struct.lobId); } if (struct.isSetOffset()) { oprot.writeI64(struct.offset); } if (struct.isSetTotalLength()) { oprot.writeI64(struct.totalLength); } }
boolean this_present_lobId = true && this.isSetLobId(); boolean that_present_lobId = true && that.isSetLobId(); if (this_present_lobId || that_present_lobId) { if (!(this_present_lobId && that_present_lobId))
if (chunk.isSetLobId()) { Object lob = conn.getLOBMapping(chunk.lobId); if (lob instanceof Clob) {
if (chunk.isSetLobId()) { Object lob = conn.getLOBMapping(chunk.lobId); if (lob instanceof Clob) {
lobIndex = (-positionMap[index]) - 1; ClobChunk chunk = (ClobChunk)nonPrimitives[lobIndex]; if (chunk != null && chunk.isSetLobId()) { if (lobIndices == null) { lobIndices = new TIntArrayList(4);
int lobId; Clob clob; if (chunk.isSetLobId()) { lobId = chunk.lobId; Object lob = conn.getLOBMapping(lobId);
int lobId; Clob clob; if (chunk.isSetLobId()) { lobId = chunk.lobId; Object lob = conn.getLOBMapping(lobId);
this.positionMap[this.size] = -this.nonPrimSize; if (chunk.isSetLobId()) { ensureNonPrimCapacity(); this.nonPrimSize++;