Package com.google.common.base

Examples of com.google.common.base.Joiner.join()


    long seconds = NANOSECONDS.toSeconds(timeNanos);
    double rowsPerSec = rowMeter.count() / (double) seconds;
    double mbPerSec = mbParsed(hiveStats) / (double) seconds;

    writer.println(joiner.join(
        rowMeter.count(),
        args.multiThread.threads,
        rawMBMeter.count(),
        seconds,
        rowsPerSec,
View Full Code Here


    for (String profileId : profileIds) {
      // TODO throws exception!
      // Profile overlay = profile.getOverlay();
      ProfileDTO overlay = getFabricService().getProfile(container.getVersionId(), profileId);
      FabricPlugin.getLogger().debug("Profile: " + overlay);
      FabricPlugin.getLogger().debug("  bundles: " + joiner.join(overlay.getBundles()));
      FabricPlugin.getLogger().debug("  features: " + joiner.join(overlay.getFeatures()));
      FabricPlugin.getLogger().debug("  repos:   " + joiner.join(overlay.getRepositories()));
    }
  }
View Full Code Here

      // TODO throws exception!
      // Profile overlay = profile.getOverlay();
      ProfileDTO overlay = getFabricService().getProfile(container.getVersionId(), profileId);
      FabricPlugin.getLogger().debug("Profile: " + overlay);
      FabricPlugin.getLogger().debug("  bundles: " + joiner.join(overlay.getBundles()));
      FabricPlugin.getLogger().debug("  features: " + joiner.join(overlay.getFeatures()));
      FabricPlugin.getLogger().debug("  repos:   " + joiner.join(overlay.getRepositories()));
    }
  }

  public ContainerNode(RefreshableNode parent, ContainerNode agentNode) {
View Full Code Here

      // Profile overlay = profile.getOverlay();
      ProfileDTO overlay = getFabricService().getProfile(container.getVersionId(), profileId);
      FabricPlugin.getLogger().debug("Profile: " + overlay);
      FabricPlugin.getLogger().debug("  bundles: " + joiner.join(overlay.getBundles()));
      FabricPlugin.getLogger().debug("  features: " + joiner.join(overlay.getFeatures()));
      FabricPlugin.getLogger().debug("  repos:   " + joiner.join(overlay.getRepositories()));
    }
  }

  public ContainerNode(RefreshableNode parent, ContainerNode agentNode) {
    this(parent, agentNode.getContainer(), agentNode.getFabric());
View Full Code Here

        Map<String, Collection<String>> headers = request.getHeaders();
        for (Map.Entry<String, Collection<String>> stringCollectionEntry : headers.entrySet()) {
            String key = stringCollectionEntry.getKey();
            Collection<String> stringCollection = stringCollectionEntry.getValue();
            String value = joiner.join(stringCollection);
            httpRequest = httpRequest.header(key, value);
        }

        for (Map.Entry<String, Collection<String>> stringCollectionEntry : request.getQueryParams().entrySet()) {
            String key = stringCollectionEntry.getKey();
View Full Code Here

        }

        for (Map.Entry<String, Collection<String>> stringCollectionEntry : request.getQueryParams().entrySet()) {
            String key = stringCollectionEntry.getKey();
            Collection<String> stringCollection = stringCollectionEntry.getValue();
            String value = joiner.join(stringCollection);
            httpRequest = httpRequest.param(key, value);
        }
        return httpRequest;
    }
}
View Full Code Here

        // first generate lots of user definitions
        SchemaSampler users = new SchemaSampler(Resources.asCharSource(Resources.getResource("user-schema.txt"), Charsets.UTF_8).read());
        File userFile = File.createTempFile("user", "tsv");
        BufferedWriter out = Files.newBufferedWriter(userFile.toPath(), Charsets.UTF_8);
        for (int i = 0; i < opts.users; i++) {
            out.write(withTab.join(users.sample()));
            out.newLine();
        }
        out.close();

        // now generate a session for each user
View Full Code Here

                out.write(Long.toString(t));
                out.write("\t");
                out.write(line);
                out.write("\t");
                out.write(withTab.join(step));
                out.write("\t");
                out.write(events);
                out.write("\n");
            }
        }
View Full Code Here

            }
        }
        for (; k <= j; k++) {
            family.add(parts[k]);
        }
        return new HumanName(Strings.emptyToNull(joiner.join(prefixes)), joiner.join(given), joiner.join(family),
                Strings.emptyToNull(joiner.join(sufixes)));
    }

    /**
     * Normalizes the capitalization of the name components, does not change the current
View Full Code Here

            }
        }
        for (; k <= j; k++) {
            family.add(parts[k]);
        }
        return new HumanName(Strings.emptyToNull(joiner.join(prefixes)), joiner.join(given), joiner.join(family),
                Strings.emptyToNull(joiner.join(sufixes)));
    }

    /**
     * Normalizes the capitalization of the name components, does not change the current
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.