Examples of accept()


Examples of org.apache.hadoop.fs.FileSystem.GlobFilter.accept()

      if (!fp.hasPattern()) {
        if (!patternComponents[i].equals(pathComponents[i])) {
          return false;
        }
      } else {
        if (!fp.accept(pathComponents[i])) {
          return false;
        }
      }
    }
    return true;
View Full Code Here

Examples of org.apache.hadoop.fs.PathFilter.accept()

    path0.getFileSystem(configuration).createNewFile(path0);
    path1.getFileSystem(configuration).createNewFile(path1);

    PathFilter clustersFilter = new ClustersFilter();

    assertFalse(clustersFilter.accept(path0));
    assertFalse(clustersFilter.accept(path1));
  }

  @Test
  public void testAccept_finalPath() throws IOException {
View Full Code Here

Examples of org.apache.hadoop.hdfs.client.ShortCircuitCache.accept()

    IOUtils.readFully(fsIn, original, 0, TEST_FILE_LENGTH);
    fsIn.close();
    fsIn = fs.open(TEST_PATH);
    final ShortCircuitCache cache = ClientContext.get(
        CONTEXT, new DFSClient.Conf(conf)). getShortCircuitCache();
    cache.accept(new CountingVisitor(0, 5, 5, 0));
    results[0] = fsIn.read(null, 4096,
        EnumSet.of(ReadOption.SKIP_CHECKSUMS));
    fsIn.seek(0);
    results[1] = fsIn.read(null, 4096,
        EnumSet.of(ReadOption.SKIP_CHECKSUMS));
View Full Code Here

Examples of org.apache.hadoop.hdfs.shortcircuit.ShortCircuitCache.accept()

    IOUtils.readFully(fsIn, original, 0, TEST_FILE_LENGTH);
    fsIn.close();
    fsIn = fs.open(TEST_PATH);
    final ShortCircuitCache cache = ClientContext.get(
        CONTEXT, new DFSClient.Conf(conf)). getShortCircuitCache();
    cache.accept(new CountingVisitor(0, 5, 5, 0));
    results[0] = fsIn.read(null, 4096,
        EnumSet.of(ReadOption.SKIP_CHECKSUMS));
    fsIn.seek(0);
    results[1] = fsIn.read(null, 4096,
        EnumSet.of(ReadOption.SKIP_CHECKSUMS));
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.parser.ExpressionTree.accept()

    if (tree == null) {
      return null;
    }
    // We suspect that LIKE pushdown into JDO is invalid; see HIVE-5134. Check for like here.
    LikeChecker lc = new LikeChecker();
    tree.accept(lc);
    return lc.hasLike() ? null : tree;
  }

  /**
   * Gets the partition names from a table, pruned using an expression.
View Full Code Here

Examples of org.apache.hadoop.hive.serde2.typeinfo.TypeInfo.accept()

        boolean match = (argumentTypeInfos.size() == pTypeInfos.size());

        for (int i = 0; i < pTypeInfos.size() && match; i++) {
          TypeInfo accepted = argumentTypeInfos.get(i);
          if (!accepted.accept(pTypeInfos.get(i))) {
            match = false;
          }
        }

        if (match) {
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.ClientRequestConfigurer.accept()

    public <T extends JsonRepresentation> RestfulResponse<T> follow(final ClientExecutor executor, final JsonRepresentation requestArgs) throws Exception {

        final ClientRequestConfigurer clientRequestConfigurer = ClientRequestConfigurer.create(executor, getHref());

        clientRequestConfigurer.accept(MediaType.APPLICATION_JSON_TYPE);
        clientRequestConfigurer.setHttpMethod(getHttpMethod());

        clientRequestConfigurer.configureArgs(requestArgs);

        final RestfulRequest restfulRequest = new RestfulRequest(clientRequestConfigurer);
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.ClientRequestConfigurer.accept()

    public <T extends JsonRepresentation> RestfulResponse<T> follow(final ClientExecutor executor, final JsonRepresentation requestArgs) throws Exception {

        final ClientRequestConfigurer clientRequestConfigurer = ClientRequestConfigurer.create(executor, getHref());

        clientRequestConfigurer.accept(MediaType.APPLICATION_JSON_TYPE);
        clientRequestConfigurer.setHttpMethod(getHttpMethod());

        clientRequestConfigurer.configureArgs(requestArgs);

        final RestfulRequest restfulRequest = new RestfulRequest(clientRequestConfigurer);
View Full Code Here

Examples of org.apache.ivy.plugins.version.VersionMatcher.accept()

            while (iter.hasNext()) {
                IvyNode other = (IvyNode) iter.next();
                if (versionMatcher.isDynamic(other.getResolvedId())) {
                    // two dynamic versions in conflict, not enough information yet
                    return null;
                } else if (!versionMatcher.accept(mrid, other.getResolvedId())) {
                    // incompatibility found
                    if (!handleIncompatibleConflict(parent, conflicts, node, other)) {
                        return null;
                    }
                }
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.operation.Operation.accept()

                batch = service.createBatch(sessionInfo, target.getId());
                Iterator it = changeLog.getOperations().iterator();
                while (it.hasNext()) {
                    Operation op = (Operation) it.next();
                    log.debug("executing " + op.getName());
                    op.accept(this);
                }
            } catch (RepositoryException e) {
                ex = e;
            } finally {
                if (batch != 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.