Examples of reset()


Examples of com.foundationdb.server.rowdata.RowData.reset()

            throw new CorruptRowDataException("RowData is too short or too long: " + rowDataSize);
        }

        if (rowDataBytes == null || rowDataSize > rowDataBytes.length) {
            rowDataBytes = new byte[rowDataSize + INITIAL_BUFFER_SIZE];
            rowData.reset(rowDataBytes);
        }

        //
        // Assemble the Row in a byte array
        //
View Full Code Here

Examples of com.foundationdb.server.types.common.BigDecimalWrapper.reset()

        BigDecimalWrapper wrapper = (BigDecimalWrapper)context.exectimeObjectAt(index);
        if (wrapper == null) {
            wrapper = new BigDecimalWrapperImpl();
            context.putExectimeObject(index, wrapper);
        }
        wrapper.reset();
        return wrapper;
    }

    public static void adjustAttrsAsNeeded(TExecutionContext context, ValueSource source,
                                           TInstance targetInstance, ValueTarget target)
View Full Code Here

Examples of com.gads.view.parser.CommandsLexer.reset()

    CommandsLexer lexer = new CommandsLexer(input);
    lexer.setLine(line); // notify lexer of input position
    lexer.setCharPositionInLine(0);
    CommonTokenStream tokens = new CommonTokenStream(lexer);
    parser.setInputStream(tokens); // notify parser of new token stream
    lexer.reset();
    return parser.command(); // start the parser
  }

  void start() throws Exception {
    int line = 1; // track input expr line numbers
View Full Code Here

Examples of com.github.neuralnetworks.calculation.OutputError.reset()

    if (n.getLayerCalculator() != null) {
        Set<Layer> calculatedLayers = new UniqueList<>();
        TrainingInputData input = null;
        OutputError outputError = t.getOutputError();
        outputError.reset();
        inputProvider.reset();

        while ((input = inputProvider.getNextInput()) != null) {
      calculatedLayers.clear();
      calculatedLayers.add(n.getInputLayer());
View Full Code Here

Examples of com.google.api.client.http.BackOffPolicy.reset()

    int retriesRemaining = batchRequest.getNumberOfRetries();
    BackOffPolicy backOffPolicy = batchRequest.getBackOffPolicy();

    if (backOffPolicy != null) {
      // Reset the BackOffPolicy at the start of each execute.
      backOffPolicy.reset();
    }

    do {
      retryAllowed = retriesRemaining > 0;
      batchRequest.setContent(new MultipartMixedContent(requestInfos, "__END_OF_PART__"));
View Full Code Here

Examples of com.google.code.yanf4j.buffer.IoBuffer.reset()

        buf.order(ByteOrder.LITTLE_ENDIAN);

        buf.mark();
        assertEquals(0xA4, buf.getUnsigned());
        buf.reset();
        assertEquals(0xD0A4, buf.getUnsignedShort());
        buf.reset();
        assertEquals(0xCDB3D0A4L, buf.getUnsignedInt());
    }
View Full Code Here

Examples of com.google.common.base.Stopwatch.reset()

    @Override
    public void run() {
      Stopwatch sw = new Stopwatch();
      Map<String, GcTimes> gcTimesBeforeSleep = getGcTimes();
      while (shouldRun) {
        sw.reset().start();
        try {
          Thread.sleep(SLEEP_INTERVAL_MS);
        } catch (InterruptedException ie) {
          return;
        }
View Full Code Here

Examples of com.google.common.io.FileBackedOutputStream.reset()

         // we must call FileBackedOutputStream.reset to remove temporary file
         return new FilterInputStream(out.asByteSource().getInput()) {
            @Override
            public void close() throws IOException {
               super.close();
               out.reset();
            }
         };
      } catch (IOException e) {
         throw new RuntimeException("Error tapping line", e);
      } finally {
View Full Code Here

Examples of com.google.enterprise.connector.pusher.XmlFeed.reset()

   * correct results.
   */
  private void checkACISReadByte(InputStream source, InputStream alt,
      String expectedResult) throws Exception {
    XmlFeed feed = newFeed();
    feed.reset(0);
    feed.write(PREFIX.getBytes());
    InputStream is = new AlternateContentFilterInputStream(source, alt, feed);
    assertFalse(is.markSupported());
    for (int ch; (ch = is.read()) != -1; feed.write(ch)) ;
    feed.write(SUFFIX.getBytes());
View Full Code Here

Examples of com.google.enterprise.connector.util.EofFilterInputStream.reset()

    assertEquals(-1, rtn);

    // Attempts to rewind should fail because the shielded resource is
    // actually no longer available.
    try {
      in.reset();
      fail("IOException was not thrown on reset of closed stream.");
    } catch (IOException ioe) {
      assertEquals(errorMsg, ioe.getMessage());
    }
  }
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.