Examples of peek()


Examples of org.apache.hadoop.hbase.util.CollectionBackedScanner.peek()

        dumpInputKVSet();
        fail("Get error result after seeking " + firstOnRow);
      }
      if (hasMoreOfEncodeScanner) {
        if (KeyValue.COMPARATOR.compare(encodeSeeker.getKeyValue(),
            collectionScanner.peek()) != 0) {
          dumpInputKVSet();
          fail("Expected " + collectionScanner.peek() + " actual "
              + encodeSeeker.getKeyValue() + ", after seeking " + firstOnRow);
        }
      }
View Full Code Here

Examples of org.apache.hivemind.InterceptorStack.peek()

        InterceptorStack stack = new InterceptorStackImpl(log, servicePoint, rootService);

        // create the interceptor
        factory.createInterceptor(stack, invokingModule, parameters);
        ServiceImplementationFactory intercepted = (ServiceImplementationFactory) stack.peek();

        assertNotNull(intercepted);

        SomeService result = (SomeService) intercepted.createCoreServiceImplementation(factoryParameters);
        MockSwitcher switcher = (MockSwitcher) Proxy.getInvocationHandler(result);
View Full Code Here

Examples of org.apache.hivemind.impl.InterceptorStackImpl.peek()

            stack.process(ic);
        }

        // Whatever's on top is the final service.

        return stack.peek();
    }

    /**
     * Constructs the core service implementation (by invoking the
     * {@link ServiceImplementationConstructor}), and checks that the result is non-null and
View Full Code Here

Examples of org.apache.hivemind.schema.SchemaProcessor.peek()

        }

        try
        {
            sp.peek();
            unreachable();
        }
        catch (ArrayIndexOutOfBoundsException ex)
        {
        }
View Full Code Here

Examples of org.apache.mahout.common.FileLineIterator.peek()

       
        averageDiffs.clear();
        allRecommendableItemIDs.clear();
       
        FileLineIterator iterator = new FileLineIterator(dataFile, false);
        String firstLine = iterator.peek();
        while ((firstLine.length() == 0) || (firstLine.charAt(0) == COMMENT_CHAR)) {
          iterator.next();
          firstLine = iterator.peek();
        }
        char delimiter = FileDataModel.determineDelimiter(firstLine, 2);
View Full Code Here

Examples of org.apache.mahout.common.iterator.FileLineIterator.peek()

    this.lastModified = dataFile.lastModified();
    this.lastUpdateFileModified = readLastUpdateFileModified();

    FileLineIterator iterator = new FileLineIterator(dataFile, false);
    String firstLine = iterator.peek();
    while (firstLine.isEmpty() || firstLine.charAt(0) == COMMENT_CHAR) {
      iterator.next();
      firstLine = iterator.peek();
    }
    Closeables.close(iterator, true);
View Full Code Here

Examples of org.apache.marmotta.ldpath.template.model.freemarker.TemplateStackModel.peek()

    public void execute(Environment env, @SuppressWarnings("rawtypes") Map params, TemplateModel[] loopVars, TemplateDirectiveBody body) throws TemplateException, IOException {
        TemplateStackModel contextStack = (TemplateStackModel)env.getVariable("context");
        if(contextStack == null || contextStack.empty()) {
            throw new TemplateModelException("error; no context node available");
        }
        TemplateNodeModel<Node> context = (TemplateNodeModel<Node>)contextStack.peek();

        SimpleScalar pathScalar = (SimpleScalar)params.get("path");
        if(pathScalar == null) {
            throw new TemplateException("the directive has been called without a path parameter",env);
        }
View Full Code Here

Examples of org.apache.pdfbox.preflight.PreflightPath.peek()

        {
            context.addValidationError(new ValidationError(PreflightConstants.ERROR_GRAPHIC_MISSING_OBJECT, "ShadingPattern validation required at least a PDResources"));
        }
        else
        {
            PDShading shaddingResource = (PDShading) vPath.peek();
            PDPage page = vPath.getClosestPathElement(PDPage.class);
            checkColorSpace(context, page, shaddingResource);
            checkGraphicState(context, page, shaddingResource);
        }
    }
View Full Code Here

Examples of org.apache.shale.dialog.Status.peek()

      get(Globals.STATUS);
      if (exec.getCurrentStatus().isFinal()) {
            setDialogExecutor(context, null);
            status.pop();
      } else {
            status.peek().setStateName(getCurrentViewId(exec));
      }
    }

    /**
     * Get next view to render, assuming one view at a time.
View Full Code Here

Examples of org.apache.synapse.message.store.MessageStore.peek()

        }

        boolean errorStop = false;
        while (!errorStop) {

            MessageContext messageContext = messageStore.peek();
            if (messageContext != null) {


                //If The Message not belongs to this server we ignore it.
                String serverName = (String)
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.