Examples of reset()


Examples of com.mongodb.DBCallback.reset()

      return this;
    }
    @Override
    public DBObject decode(byte[] b, DBCollection collection) {
          DBCallback cbk = getDBCallback(collection);
          cbk.reset();
          decode(b, cbk);
          return (DBObject) cbk.get();
    }
   
    @Override
View Full Code Here

Examples of com.netflix.astyanax.recipes.functions.RowCounterFunction.reset()

                .withConcurrencyLevel(2)
                .forEachRow(RowCopierFunction.builder(keyspace, CF_STANDARD1_COPY).build())
                .build()
                .call();

        rowCounter.reset();
        new AllRowsReader.Builder<String, String>(keyspace, CF_STANDARD1_COPY)
            .withPageSize(3)
            .withConcurrencyLevel(2)
            .forEachRow(rowCounter)
            .build()
View Full Code Here

Examples of com.netflix.zeno.fastblob.record.ByteDataBuffer.reset()

                            remapper.remapOrdinals(rec, mappedBuffer);

                            int newOrdinal = destState.addData(mappedBuffer, FastBlobImageUtils.toLong(imageMembershipsFlags));
                            stateOrdinalMapping.setMappedOrdinal(ordinal, newOrdinal);

                            mappedBuffer.reset();
                        }
                    }
                }
            });
        }
View Full Code Here

Examples of com.netflix.zeno.fastblob.record.FastBlobSerializationRecord.reset()

                serializer.serialize(deserializedObject, serializationRecord);
                serializationRecord.writeDataTo(deserializedRecordBuffer);

                int previousOrdinal = map.get(deserializedRecordBuffer);

                serializationRecord.reset();
                deserializedRecordBuffer.reset();

                if(previousOrdinal != -1 && !frameworkSerializer.isSerializationIntegrityFlawed()) {
                    typeDeserializationState.copyPrevious(currentOrdinal, previousOrdinal);
                    numObjectsReused++;
View Full Code Here

Examples of com.neuralnetwork.shared.network.INetwork.reset()

  @Test
    public final void testReset() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.build();
    n.reset();
  }

  /**
   * Test method for {@link com.neuralnetwork
   * .shared.network.Network#train(java.util.Vector)}.
 
View Full Code Here

Examples of com.neuralnetwork.shared.network.Network.reset()

  @Test
    public final void testReset() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.build();
    n.reset();
  }

  /**
   * Test method for {@link com.neuralnetwork
   * .shared.network.Network#train(java.util.Vector)}.
 
View Full Code Here

Examples of com.neuralnetwork.shared.neurons.HiddenNeuron.reset()

   
    ILink[] l = m.getOutputLinks(0, 1);
    DoubleValue v = l[0].getWeight();
    DoubleValue v1 = l[1].getWeight();
   
    m.reset();
   
    ILink[] l1 = m.getOutputLinks(0, 1);
    DoubleValue v2 = l1[0].getWeight();
    DoubleValue v3 = l1[1].getWeight();
    return v.equals(v2) && v1.equals(v3);
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.ManualResetEvent.reset()

//      return img;
//    }
   
    try
    {
      gotImage.reset();             
      LoadCachedImageResult result = client.assets.Cache.loadCompressedImageFromCache(textureID);

      if (result != null)
      {
        ByteArrayInputStream baos = new ByteArrayInputStream(result.data);
View Full Code Here

Examples of com.odiago.flumebase.exec.EventWrapper.reset()

    //    + new String(e.getBody()));
    try {
      e.set(FlowElement.STREAM_NAME_ATTR, mStreamSymbol.getName().getBytes());
      EventWrapper wrapper = new ParsingEventWrapper(mStreamSymbol.getEventParser(),
          mFieldNames);
      wrapper.reset(e);
      mWriteContext.emit(wrapper);
    } catch (InterruptedException ie) {
      // TODO(aaron): When Flume's api lets us throw InterruptedException, do so directly.
      throw new IOException(ie);
    }
View Full Code Here

Examples of com.odiago.flumebase.exec.ParsingEventWrapper.reset()

    //    + new String(e.getBody()));
    try {
      e.set(FlowElement.STREAM_NAME_ATTR, mStreamSymbol.getName().getBytes());
      EventWrapper wrapper = new ParsingEventWrapper(mStreamSymbol.getEventParser(),
          mFieldNames);
      wrapper.reset(e);
      mWriteContext.emit(wrapper);
    } catch (InterruptedException ie) {
      // TODO(aaron): When Flume's api lets us throw InterruptedException, do so directly.
      throw new IOException(ie);
    }
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.