Examples of shallowCopy()


Examples of org.apache.hadoop.hbase.KeyValue.shallowCopy()

          // disk.
          KeyValue kv = KeyValueUtil.ensureKeyValue(c);
          if (kv.getMvccVersion() <= smallestReadPoint) {
            // let us not change the original KV. It could be in the memstore
            // changing its memstoreTS could affect other threads/scanners.
            kv = kv.shallowCopy();
            kv.setMvccVersion(0);
          }
          sink.append(kv);
          flushed += MemStore.heapSizeChange(kv, true);
        }
View Full Code Here

Examples of org.apache.hadoop.hbase.KeyValue.shallowCopy()

          // disk.
          KeyValue kv = KeyValueUtil.ensureKeyValue(c);
          if (kv.getMvccVersion() <= smallestReadPoint) {
            // let us not change the original KV. It could be in the memstore
            // changing its memstoreTS could affect other threads/scanners.
            kv = kv.shallowCopy();
            kv.setMvccVersion(0);
          }
          sink.append(kv);
          flushed += MemStore.heapSizeChange(kv, true);
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.UpdateOp.shallowCopy()

                            }
                    }
                } else {
                    for (String id : chunkedIds) {
                        UpdateOp up = update.copy();
                        up = up.shallowCopy(id);
                        internalCreateOrUpdate(collection, up, false, true);
                    }
                }
            }
        } else {
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.UpdateOp.shallowCopy()

                }
            }
        } else {
            for (String id : ids) {
                UpdateOp up = update.copy();
                up = up.shallowCopy(id);
                internalCreateOrUpdate(collection, up, false, true);
            }
        }
    }
View Full Code Here

Examples of org.apache.slider.core.registry.docstore.PublishedConfigSet.shallowCopy()

    init(res, uriInfo);

    logRequest(uriInfo);
    PublishedConfigSet publishedConfigSet = getConfigSet(setname);
    log.debug("Number of configurations: {}", publishedConfigSet.size());
    return publishedConfigSet.shallowCopy();
  }

  private void logRequest(UriInfo uriInfo) {
    log.debug(uriInfo.getRequestUri().toString());
  }
View Full Code Here

Examples of org.apache.slider.core.registry.docstore.PublishedConfigSet.shallowCopy()

    init(res, uriInfo);

    logRequest(uriInfo);
    PublishedConfigSet publishedConfigSet = getConfigSet(setname);
    log.debug("Number of configurations: {}", publishedConfigSet.size());
    return publishedConfigSet.shallowCopy();
  }

  private void logRequest(UriInfo uriInfo) {
    log.debug(uriInfo.getRequestUri().toString());
  }
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQMessage.shallowCopy()

            this.accessThread = null;
            if (message != null) {
                boolean expired = message.isExpired();
                messageDelivered(message, true,expired);
                if (!expired){
                message = message.shallowCopy();
                }else {
                    message = (ActiveMQMessage) receiveNoWait(); //this will remove any other expired messages held in the queue
                }
            }
            return message;
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQMessage.shallowCopy()

            this.accessThread = null;
            if (message != null) {
                boolean expired = message.isExpired();
                messageDelivered(message, true,expired);
                if (!expired){
                message = message.shallowCopy();
                }else {
                    message = (ActiveMQMessage) receiveNoWait(); //this will remove any other expired messages held in the queue
                }
            }
            return message;
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQMessage.shallowCopy()

            //iterate through an scrub delivered but expired messages
            while ((message = (ActiveMQMessage)messageQueue.dequeueNoWait())!= null){
                boolean expired = message.isExpired();
                messageDelivered(message,true,expired);
                if (!expired){
                    return message.shallowCopy();
                }
            }
        }
        catch (InterruptedException ioe) {
            throw new JMSException("Queue is interrupted: " + ioe.getMessage());
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQMessage.shallowCopy()

            this.accessThread = Thread.currentThread();
            ActiveMQMessage message = (ActiveMQMessage) messageQueue.dequeue();
            this.accessThread = null;
            if (message != null) {
                messageDelivered(message, true);
                message = message.shallowCopy();
            }
            return message;
        }
        catch (InterruptedException ioe) {
            return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.