private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); int size = stream.readInt(); setUp(size); while (size-- > 0) { long key = stream.readLong(); Object val = stream.readObject(); put(key, val); } } } // TLongObjectHashMap
/** * Inserts a key/value pair into the map. * * @param key an <code>Object</code> value * @param value an <code>Object</code> value * @return the previous value associated with <tt>key</tt>, * or Integer(0) if none was found. */ @Override // GemStoneAddition public Object put(Object key, Object value) { return wrapValue(_map.put(unwrapKey(key), unwrapValue(value))); }
public long addAndLoadStreamContainer(final long segmentId, final Properties tableProperties, final RowSource rowSource, final ByteBuffer rwBuffer) throws StandardException { if (SanityManager.DEBUG) { SanityManager.ASSERT( segmentId == StreamContainerHandle.TEMPORARY_SEGMENT, "GemFireTransaction: Must be only used for temporary file creations"); } final long conglomId = getNextTempConglomId(); if (this.tempCongloms == null) { this.tempCongloms = new TLongObjectHashMap(); } this.tempCongloms.put(conglomId, new FileStreamInputOutput(conglomId, this, rowSource, rwBuffer)); return conglomId; }
public long addAndLoadStreamContainer(final long segmentId, final Properties tableProperties, final RowSource rowSource, final ByteBuffer rwBuffer) throws StandardException { if (SanityManager.DEBUG) { SanityManager.ASSERT( segmentId == StreamContainerHandle.TEMPORARY_SEGMENT, "GemFireTransaction: Must be only used for temporary file creations"); } final long conglomId = getNextTempConglomId(); if (this.tempCongloms == null) { this.tempCongloms = new TLongObjectHashMap(); } this.tempCongloms.put(conglomId, new FileStreamInputOutput(conglomId, this, rowSource, rwBuffer)); return conglomId; }
stmnt = (EmbedStatement)getConnection().prepareCall(sql, stmtId); this.stmntMap.put(stmtId, new StmntWeakReference(stmnt, stmtId, this.refQueue)); this.sqlMap.put(stmtId, sql); if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, this.stmntMap.put(stmtId, new StmntWeakReference(stmnt, stmtId, this.refQueue)); if (GemFireXDUtils.TraceQuery) {
stmnt = (EmbedStatement)getConnection().prepareCall(sql, stmtId); this.stmntMap.put(stmtId, new StmntWeakReference(stmnt, stmtId, this.refQueue)); this.sqlMap.put(stmtId, sql); if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, this.stmntMap.put(stmtId, new StmntWeakReference(stmnt, stmtId, this.refQueue)); if (GemFireXDUtils.TraceQuery) {
this.tempCongloms = new TLongObjectHashMap(); this.tempCongloms.put(conglomId, conglom);
this.tempCongloms = new TLongObjectHashMap(); this.tempCongloms.put(conglomId, conglom);