Hop Search

Hop Search is a command line tool to search for metadata in Hop or a Hop project.

Usage

  1. Usage: <main class> [-hilx] [-e=<environmentOption>] [-j=<projectOption>]
  2. <searchString>
  3. <searchString> The string to search for
  4. -e, --environment=<environmentOption>
  5. The name of the lifecycle environment to use
  6. -h, --help Displays this help message and quits.
  7. -i, --case-insensitive Perform a case insensitive search
  8. -j, --project=<projectOption>
  9. The name of the project to use
  10. -l, --print-locations Print which locations are being looked at
  11. -x, --regular-expression The specified search string is a regular expression
  12. ./hop-search.sh 9.08s user 0.44s system 338% cpu 2.808 total

Options

OptionDescription

<searchString>

The string to search for

-e

The name of the lifecycle environment to use

-h

Displays this help message and quits.

-i

Perform a case insensitive search

-j

The name of the project to use

-l

Print which locations are being looked at

-x

The specified search string is a regular expression

Examples

Example command: search for the string ‘json’ (case insensitive) in the ‘hop-samples’ project.

Command: `./hop-search.sh -j hop-samples -i json `

Output:

  1. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : null : matching property value: Enhanced JSON - Generate complex nested structure from table
  2. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : matching property value: EnhancedJsonOutput
  3. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : matching property value: Enhanced JSON Output
  4. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : pipeline transform property : jsonBloc
  5. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : pipeline transform property : jsonPrittified (Boolean)
  6. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : pipeline transform property : isJSONFragment (Boolean)
  7. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : pipeline transform property : isJSONFragment (Boolean)
  8. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Final Complex Data structure : pipeline transform property : isJSONFragment (Boolean)
  9. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Intermediate Structures : matching property value: EnhancedJsonOutput
  10. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Intermediate Structures : matching property value: Enhanced JSON Output
  11. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Intermediate Structures : pipeline transform property : jsonPrittified (Boolean)
  12. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : Intermediate Structures : pipeline transform property : isJSONFragment (Boolean)
  13. <PROJECT_PATH>/samples/transforms/Enhanced JSON - Generate complex nested structure from table.hpl : null : matching property value: This sample gets a table of values and generate a complex nested structure as output
  14. by looping over a predefined key. Second Enhanced JSON Transform als gets a JSON fragment produced
  15. by furst Enhanced JSON Transform and use it as value of an attribute of the resulting final
  16. JSON stream.