test_class.declarator: contentCache
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private ContentCache contentCache;
test_class.type: ContentCache
test_class.var_name: contentCache
test_class.declarator: cacheKeyGenerator
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private CacheKeyGenerator cacheKeyGenerator;
test_class.type: CacheKeyGenerator
test_class.var_name: cacheKeyGenerator
test_class.file: dataprep-api/src/test/java/org/talend/dataprep/api/service/TransformAPITest.java
test_class.identifier: TransformAPITest
test_class.superclass: extends ApiServiceTestBase
test_case.body: @Test
      public void retrieveDictionary() throws Exception {
          // when
          final InputStream dictionary = given()
                  .when() //
                  .expect()
                  .statusCode(200)
                  .log()
                  .ifError() //
                  .get("/api/transform/dictionary")
                  .asInputStream();
  
          // then
          final ObjectInputStream ois = new ObjectInputStream(new GZIPInputStream(dictionary));
          final Object object = ois.readObject();
          Assert.assertEquals(TdqCategories.class, object.getClass());
  
          final TdqCategories serviceDictionary = (TdqCategories) object;
          final Directory dictionaryDirectory = serviceDictionary.getDictionary().asDirectory(); // Test Lucene directory
                                                                                                 // creation.
          assertNotNull(dictionaryDirectory);
          final Directory keywordDirectory = serviceDictionary.getKeyword().asDirectory(); // Test Lucene directory
                                                                                           // creation.
          assertNotNull(keywordDirectory);
      }
test_case.class_method_signature: TransformAPITest.retrieveDictionary()
test_case.full_signature: @Test public void retrieveDictionary()
test_case.identifier: retrieveDictionary
test_case.invocations: asInputStream get ifError log statusCode expect when given readObject assertEquals getClass asDirectory getDictionary assertNotNull asDirectory getKeyword assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void retrieveDictionary()
focal_class.declarator: commonAPI
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private CommonAPI commonAPI;
focal_class.type: CommonAPI
focal_class.var_name: commonAPI
focal_class.file: dataprep-api/src/main/java/org/talend/dataprep/api/service/TransformAPI.java
focal_class.identifier: TransformAPI
focal_class.class_method_signature: TransformAPI.columnActions(@ApiParam(value = "Optional column Metadata content as JSON") InputStream body)
focal_class.full_signature: @RequestMapping(value = "/api/transform/actions/column", method = RequestMethod.POST, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get all actions for a data set column.", notes = "Returns all actions for the given column.") @Timed public Stream<ActionForm> columnActions(@ApiParam(value = "Optional column Metadata content as JSON") InputStream body)
focal_class.identifier: columnActions
focal_class.modifiers: @RequestMapping(value = "/api/transform/actions/column", method = RequestMethod.POST, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get all actions for a data set column.", notes = "Returns all actions for the given column.") @Timed public
focal_class.parameters: (@ApiParam(value = "Optional column Metadata content as JSON") InputStream body)
focal_class.return: Stream<ActionForm>
focal_class.signature: Stream<ActionForm> columnActions(@ApiParam(value = "Optional column Metadata content as JSON") InputStream body)
focal_class.class_method_signature: TransformAPI.suggestColumnActions(@ApiParam(value = "Column Metadata content as JSON") InputStream body)
focal_class.full_signature: @RequestMapping(value = "/api/transform/suggest/column", method = RequestMethod.POST, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get suggested actions for a data set column.", notes = "Returns the suggested actions for the given column in decreasing order of likeness.") @Timed public Stream<ActionForm> suggestColumnActions(@ApiParam(value = "Column Metadata content as JSON") InputStream body)
focal_class.identifier: suggestColumnActions
focal_class.modifiers: @RequestMapping(value = "/api/transform/suggest/column", method = RequestMethod.POST, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get suggested actions for a data set column.", notes = "Returns the suggested actions for the given column in decreasing order of likeness.") @Timed public
focal_class.parameters: (@ApiParam(value = "Column Metadata content as JSON") InputStream body)
focal_class.return: Stream<ActionForm>
focal_class.signature: Stream<ActionForm> suggestColumnActions(@ApiParam(value = "Column Metadata content as JSON") InputStream body)
focal_class.class_method_signature: TransformAPI.lineActions()
focal_class.full_signature: @RequestMapping(value = "/api/transform/actions/line", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get all actions on line", notes = "Returns all actions for a line.") @Timed public Stream<ActionForm> lineActions()
focal_class.identifier: lineActions
focal_class.modifiers: @RequestMapping(value = "/api/transform/actions/line", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get all actions on line", notes = "Returns all actions for a line.") @Timed public
focal_class.parameters: ()
focal_class.return: Stream<ActionForm>
focal_class.signature: Stream<ActionForm> lineActions()
focal_class.class_method_signature: TransformAPI.datasetActions()
focal_class.full_signature: @RequestMapping(value = "/api/transform/actions/dataset", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get all actions the whole dataset.", notes = "Returns all actions for the whole dataset..") @Timed public Stream<ActionForm> datasetActions()
focal_class.identifier: datasetActions
focal_class.modifiers: @RequestMapping(value = "/api/transform/actions/dataset", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get all actions the whole dataset.", notes = "Returns all actions for the whole dataset..") @Timed public
focal_class.parameters: ()
focal_class.return: Stream<ActionForm>
focal_class.signature: Stream<ActionForm> datasetActions()
focal_class.class_method_signature: TransformAPI.multiColumnsActions()
focal_class.full_signature: @RequestMapping(value = "/api/transform/actions/multi_columns", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get all actions the selected columns.", notes = "Returns all actions for the selected columns..") @Timed public Stream<ActionForm> multiColumnsActions()
focal_class.identifier: multiColumnsActions
focal_class.modifiers: @RequestMapping(value = "/api/transform/actions/multi_columns", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get all actions the selected columns.", notes = "Returns all actions for the selected columns..") @Timed public
focal_class.parameters: ()
focal_class.return: Stream<ActionForm>
focal_class.signature: Stream<ActionForm> multiColumnsActions()
focal_class.class_method_signature: TransformAPI.suggestActionParams(
              @ApiParam(value = "Transformation name.") @PathVariable("action") final String action, @ApiParam(
                      value = "Suggested dynamic transformation input (preparation id or dataset id") @Valid final DynamicParamsInput dynamicParamsInput)
focal_class.full_signature: @RequestMapping(value = "/api/transform/suggest/{action}/params", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get the transformation dynamic parameters", notes = "Returns the transformation parameters.") @Timed public ResponseEntity<StreamingResponseBody> suggestActionParams(
              @ApiParam(value = "Transformation name.") @PathVariable("action") final String action, @ApiParam(
                      value = "Suggested dynamic transformation input (preparation id or dataset id") @Valid final DynamicParamsInput dynamicParamsInput)
focal_class.identifier: suggestActionParams
focal_class.modifiers: @RequestMapping(value = "/api/transform/suggest/{action}/params", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get the transformation dynamic parameters", notes = "Returns the transformation parameters.") @Timed public
focal_class.parameters: (
              @ApiParam(value = "Transformation name.") @PathVariable("action") final String action, @ApiParam(
                      value = "Suggested dynamic transformation input (preparation id or dataset id") @Valid final DynamicParamsInput dynamicParamsInput)
focal_class.return: ResponseEntity<StreamingResponseBody>
focal_class.signature: ResponseEntity<StreamingResponseBody> suggestActionParams(
              @ApiParam(value = "Transformation name.") @PathVariable("action") final String action, @ApiParam(
                      value = "Suggested dynamic transformation input (preparation id or dataset id") @Valid final DynamicParamsInput dynamicParamsInput)
focal_class.class_method_signature: TransformAPI.getDictionary()
focal_class.full_signature: @RequestMapping(value = "/api/transform/dictionary", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get current dictionary (as serialized object).", notes = "Returns a DQ dictionary serialized usin Java serialization and GZIP-ed.") @Timed public StreamingResponseBody getDictionary()
focal_class.identifier: getDictionary
focal_class.modifiers: @RequestMapping(value = "/api/transform/dictionary", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get current dictionary (as serialized object).", notes = "Returns a DQ dictionary serialized usin Java serialization and GZIP-ed.") @Timed public
focal_class.parameters: ()
focal_class.return: StreamingResponseBody
focal_class.signature: StreamingResponseBody getDictionary()
focal_class.superclass: extends APIService
focal_method.body: @RequestMapping(value = "/api/transform/dictionary", method = GET, produces = APPLICATION_JSON_VALUE)
      @ApiOperation(value = "Get current dictionary (as serialized object).",
              notes = "Returns a DQ dictionary serialized usin Java serialization and GZIP-ed.")
      @Timed
      public StreamingResponseBody getDictionary() {
          // get preparation/dataset content
          HystrixCommand<InputStream> dictionaryCommand = getCommand(DictionaryCommand.class);
          return CommandHelper.toStreaming(dictionaryCommand);
      }
focal_method.class_method_signature: TransformAPI.getDictionary()
focal_method.full_signature: @RequestMapping(value = "/api/transform/dictionary", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get current dictionary (as serialized object).", notes = "Returns a DQ dictionary serialized usin Java serialization and GZIP-ed.") @Timed public StreamingResponseBody getDictionary()
focal_method.identifier: getDictionary
focal_method.invocations: getCommand toStreaming
focal_method.modifiers: @RequestMapping(value = "/api/transform/dictionary", method = GET, produces = APPLICATION_JSON_VALUE) @ApiOperation(value = "Get current dictionary (as serialized object).", notes = "Returns a DQ dictionary serialized usin Java serialization and GZIP-ed.") @Timed public
focal_method.parameters: ()
focal_method.return: StreamingResponseBody
focal_method.signature: StreamingResponseBody getDictionary()