congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SpaceSeparatedMapParser
Code IndexAdd Tabnine to your IDE (free)

How to use
SpaceSeparatedMapParser
in
com.moz.fiji.schema.tools

Best Java code snippets using com.moz.fiji.schema.tools.SpaceSeparatedMapParser (Showing top 3 results out of 315)

origin: com.moz.fiji.schema/fiji-schema

/** @return a new parser for space-separated parameter maps. */
public static SpaceSeparatedMapParser create() {
 return new SpaceSeparatedMapParser();
}
origin: com.moz.fiji.mapreduce/fiji-mapreduce

/**
 * Creates a job output from a command-line flag space-separated parameters map.
 *
 * @param ssm Space-separated parameters map from the command-line.
 * @return a job output configured from the command-line parameters.
 * @throws IOException on I/O error.
 */
public MapReduceJobOutput fromSpaceSeparatedMap(String ssm) throws IOException {
 final Map<String, String> params = SpaceSeparatedMapParser.create().parse(ssm);
 final String format = params.get(JobIOConfKeys.FORMAT_KEY);
 try {
  final MapReduceJobOutput output = createJobOutput(Format.parse(format));
  output.initialize(params);
  return output;
 } catch (JobIOSpecParseException exn) {
  throw new IOException(String.format(
    "Invalid job output specification: '%s': %s", ssm, exn.getMessage()), exn);
 }
}
origin: com.moz.fiji.mapreduce/fiji-mapreduce

/**
 * Creates a job input from a command-line flag space-separated parameters map.
 *
 * @param ssm Space-separated parameters map from the command-line.
 * @return a job input configured from the command-line parameters.
 * @throws IOException on I/O error.
 */
public MapReduceJobInput fromSpaceSeparatedMap(String ssm) throws IOException {
 final Map<String, String> params = SpaceSeparatedMapParser.create().parse(ssm);
 try {
  final MapReduceJobInput input =
    createJobInput(Format.parse(params.get(JobIOConfKeys.FORMAT_KEY)));
  input.initialize(params);
  return input;
 } catch (JobIOSpecParseException exn) {
  throw new IOException(String.format(
    "Invalid job input specification: '%s': %s", ssm, exn.getMessage()), exn);
 }
}
com.moz.fiji.schema.toolsSpaceSeparatedMapParser

Javadoc

Parser for space-separated map arguments. Space-separated maps are specified from the command-line shell, as:
 fiji tool --flag="key1=value1 key2=value2 key3=value3" 
When only one value is needed, this can be shortened as:
 fiji tool --flag=key=value 
  • Keys must be unique.
  • Values may not contain spaces.
  • Values will typically be URLs or URIs and may include spaces escaped as "%20".

Most used methods

  • <init>
    Initializes a space-separated value parse.
  • create
  • parse
    Parses a space-separated map into a Java map.

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now