Package org.apache.giraph.utils

Examples of org.apache.giraph.utils.UnsafeReusableByteArrayInput


    public ThreadLocalWorkerGlobalCommUsage() {
      threadReducerMap = Maps.newHashMapWithExpectedSize(
          WorkerAggregatorHandler.this.reducerMap.size());

      UnsafeByteArrayOutputStream out = new UnsafeByteArrayOutputStream();
      UnsafeReusableByteArrayInput in = new UnsafeReusableByteArrayInput();

      for (Entry<String, Reducer<Object, Writable>> entry :
          reducerMap.entrySet()) {
        ReduceOperation<Object, Writable> globalReduceOp =
            entry.getValue().getReduceOp();
View Full Code Here


    LongArrayList pointers, ExtendedByteArrayOutputBuffer msgBuffer) {
    this.messageValueFactory = messageValueFactory;
    this.pointers = pointers;
    this.msgBuffer = msgBuffer;
    // TODO - if needed implement same for Safe as well
    messageReader = new UnsafeReusableByteArrayInput();
  }
View Full Code Here

  }

  @Override
  public void doRequest(ServerData serverData) {
    UnsafeByteArrayOutputStream reusedOut = new UnsafeByteArrayOutputStream();
    UnsafeReusableByteArrayInput reusedIn = new UnsafeReusableByteArrayInput();

    DataInput input = getDataInput();
    AllAggregatorServerData aggregatorData = serverData.getAllAggregatorData();
    try {
      int num = input.readInt();
View Full Code Here

TOP

Related Classes of org.apache.giraph.utils.UnsafeReusableByteArrayInput

Copyright © 2018 www.massapicom. 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.