test_class.file: dataprep-backend-service/src/test/java/org/talend/dataprep/cache/TransformationMetadataCacheKeyTest.java
test_class.identifier: TransformationMetadataCacheKeyTest
test_case.body: @Test
      public void getKey_should_generate_serialized_key() throws Exception {
          // given
          final ContentCacheKey key = new TransformationMetadataCacheKey("prep1", "step1", HEAD, "user1");
  
          // when
          final String keyStr = key.getKey();
  
          // then
          assertThat(keyStr, is("transformation-metadata_prep1_step1_HEAD_user1"));
      }
test_case.class_method_signature: TransformationMetadataCacheKeyTest.getKey_should_generate_serialized_key()
test_case.full_signature: @Test public void getKey_should_generate_serialized_key()
test_case.identifier: getKey_should_generate_serialized_key
test_case.invocations: getKey assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getKey_should_generate_serialized_key()
focal_class.declarator: PREFIX = "transformation-metadata"
focal_class.modifier: private static final
focal_class.original_string: private static final String PREFIX = "transformation-metadata";
focal_class.type: String
focal_class.var_name: PREFIX
focal_class.declarator: preparationId
focal_class.modifier: private final
focal_class.original_string: private final String preparationId;
focal_class.type: String
focal_class.var_name: preparationId
focal_class.declarator: stepId
focal_class.modifier: private final
focal_class.original_string: private final String stepId;
focal_class.type: String
focal_class.var_name: stepId
focal_class.declarator: sourceType
focal_class.modifier: private
focal_class.original_string: private ExportParameters.SourceType sourceType;
focal_class.type: ExportParameters.SourceType
focal_class.var_name: sourceType
focal_class.declarator: userId
focal_class.modifier: private final
focal_class.original_string: private final String userId;
focal_class.type: String
focal_class.var_name: userId
focal_class.file: dataprep-backend-service/src/main/java/org/talend/dataprep/cache/TransformationMetadataCacheKey.java
focal_class.identifier: TransformationMetadataCacheKey
focal_class.interfaces: implements ContentCacheKey
focal_class.class_method_signature: TransformationMetadataCacheKey.TransformationMetadataCacheKey(final String preparationId, final String stepId,
              final ExportParameters.SourceType sourceType, final String userId)
focal_class.full_signature:   TransformationMetadataCacheKey(final String preparationId, final String stepId,
              final ExportParameters.SourceType sourceType, final String userId)
focal_class.identifier: TransformationMetadataCacheKey
focal_class.parameters: (final String preparationId, final String stepId,
              final ExportParameters.SourceType sourceType, final String userId)
focal_class.signature:  TransformationMetadataCacheKey(final String preparationId, final String stepId,
              final ExportParameters.SourceType sourceType, final String userId)
focal_class.class_method_signature: TransformationMetadataCacheKey.getKey()
focal_class.full_signature: @Override public String getKey()
focal_class.identifier: getKey
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getKey()
focal_class.class_method_signature: TransformationMetadataCacheKey.getMatcher()
focal_class.full_signature: @Override public Predicate<String> getMatcher()
focal_class.identifier: getMatcher
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Predicate<String>
focal_class.signature: Predicate<String> getMatcher()
focal_class.class_method_signature: TransformationMetadataCacheKey.getPrefix()
focal_class.full_signature: @Override public String getPrefix()
focal_class.identifier: getPrefix
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPrefix()
focal_class.class_method_signature: TransformationMetadataCacheKey.getPreparationId()
focal_class.full_signature: public String getPreparationId()
focal_class.identifier: getPreparationId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPreparationId()
focal_class.class_method_signature: TransformationMetadataCacheKey.getStepId()
focal_class.full_signature: public String getStepId()
focal_class.identifier: getStepId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getStepId()
focal_class.class_method_signature: TransformationMetadataCacheKey.getSourceType()
focal_class.full_signature: public ExportParameters.SourceType getSourceType()
focal_class.identifier: getSourceType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ExportParameters.SourceType
focal_class.signature: ExportParameters.SourceType getSourceType()
focal_class.class_method_signature: TransformationMetadataCacheKey.getUserId()
focal_class.full_signature: public String getUserId()
focal_class.identifier: getUserId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUserId()
focal_class.class_method_signature: TransformationMetadataCacheKey.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
      public String getKey() {
          return PREFIX + "_" + preparationId + "_" + stepId + "_" + sourceType + "_" + userId;
      }
focal_method.class_method_signature: TransformationMetadataCacheKey.getKey()
focal_method.full_signature: @Override public String getKey()
focal_method.identifier: getKey
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getKey()