test_class.file: oak-segment-remote/src/test/java/org/apache/jackrabbit/oak/segment/remote/RemoteBlobMetadataTest.java
test_class.identifier: RemoteBlobMetadataTest
test_case.body: @Test
      public void toSegmentMetadata() {
          RemoteSegmentArchiveEntry entry = new RemoteSegmentArchiveEntry(-7554506325726244935L, -5874985927363300041L,
                  3, 5, 50, 60, true);
          HashMap<String, String> map = RemoteBlobMetadata.toSegmentMetadata(entry);
  
          assertEquals("segment", map.get(RemoteBlobMetadata.METADATA_TYPE));
          assertEquals("97290085-b1a5-4fb9-ae77-db6d13177537", map.get(RemoteBlobMetadata.METADATA_SEGMENT_UUID));
          assertEquals("3", map.get(RemoteBlobMetadata.METADATA_SEGMENT_POSITION));
          assertEquals("50", map.get(RemoteBlobMetadata.METADATA_SEGMENT_GENERATION));
          assertEquals("60", map.get(RemoteBlobMetadata.METADATA_SEGMENT_FULL_GENERATION));
          assertEquals("true", map.get(RemoteBlobMetadata.METADATA_SEGMENT_COMPACTED));
      }
test_case.class_method_signature: RemoteBlobMetadataTest.toSegmentMetadata()
test_case.full_signature: @Test public void toSegmentMetadata()
test_case.identifier: toSegmentMetadata
test_case.invocations: toSegmentMetadata assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toSegmentMetadata()
focal_class.declarator: METADATA_TYPE = "type"
focal_class.modifier: public static final
focal_class.original_string: public static final String METADATA_TYPE = "type";
focal_class.type: String
focal_class.var_name: METADATA_TYPE
focal_class.declarator: METADATA_SEGMENT_UUID = "uuid"
focal_class.modifier: public static final
focal_class.original_string: public static final String METADATA_SEGMENT_UUID = "uuid";
focal_class.type: String
focal_class.var_name: METADATA_SEGMENT_UUID
focal_class.declarator: METADATA_SEGMENT_POSITION = "position"
focal_class.modifier: public static final
focal_class.original_string: public static final String METADATA_SEGMENT_POSITION = "position";
focal_class.type: String
focal_class.var_name: METADATA_SEGMENT_POSITION
focal_class.declarator: METADATA_SEGMENT_GENERATION = "generation"
focal_class.modifier: public static final
focal_class.original_string: public static final String METADATA_SEGMENT_GENERATION = "generation";
focal_class.type: String
focal_class.var_name: METADATA_SEGMENT_GENERATION
focal_class.declarator: METADATA_SEGMENT_FULL_GENERATION = "fullGeneration"
focal_class.modifier: public static final
focal_class.original_string: public static final String METADATA_SEGMENT_FULL_GENERATION = "fullGeneration";
focal_class.type: String
focal_class.var_name: METADATA_SEGMENT_FULL_GENERATION
focal_class.declarator: METADATA_SEGMENT_COMPACTED = "compacted"
focal_class.modifier: public static final
focal_class.original_string: public static final String METADATA_SEGMENT_COMPACTED = "compacted";
focal_class.type: String
focal_class.var_name: METADATA_SEGMENT_COMPACTED
focal_class.declarator: TYPE_SEGMENT = "segment"
focal_class.modifier: public static final
focal_class.original_string: public static final String TYPE_SEGMENT = "segment";
focal_class.type: String
focal_class.var_name: TYPE_SEGMENT
focal_class.file: oak-segment-remote/src/main/java/org/apache/jackrabbit/oak/segment/remote/RemoteBlobMetadata.java
focal_class.identifier: RemoteBlobMetadata
focal_class.class_method_signature: RemoteBlobMetadata.toSegmentMetadata(RemoteSegmentArchiveEntry indexEntry)
focal_class.full_signature: public static HashMap<String, String> toSegmentMetadata(RemoteSegmentArchiveEntry indexEntry)
focal_class.identifier: toSegmentMetadata
focal_class.modifiers: public static
focal_class.parameters: (RemoteSegmentArchiveEntry indexEntry)
focal_class.return: HashMap<String, String>
focal_class.signature: HashMap<String, String> toSegmentMetadata(RemoteSegmentArchiveEntry indexEntry)
focal_class.class_method_signature: RemoteBlobMetadata.toIndexEntry(Map<String, String> metadata, int length)
focal_class.full_signature: public static RemoteSegmentArchiveEntry toIndexEntry(Map<String, String> metadata, int length)
focal_class.identifier: toIndexEntry
focal_class.modifiers: public static
focal_class.parameters: (Map<String, String> metadata, int length)
focal_class.return: RemoteSegmentArchiveEntry
focal_class.signature: RemoteSegmentArchiveEntry toIndexEntry(Map<String, String> metadata, int length)
focal_class.class_method_signature: RemoteBlobMetadata.isSegment(Map<String, String> metadata)
focal_class.full_signature: public static boolean isSegment(Map<String, String> metadata)
focal_class.identifier: isSegment
focal_class.modifiers: public static
focal_class.parameters: (Map<String, String> metadata)
focal_class.return: boolean
focal_class.signature: boolean isSegment(Map<String, String> metadata)
focal_method.body: public static HashMap<String, String> toSegmentMetadata(RemoteSegmentArchiveEntry indexEntry) {
          HashMap<String, String> map = new HashMap<>();
          map.put(METADATA_TYPE, TYPE_SEGMENT);
          map.put(METADATA_SEGMENT_UUID, new UUID(indexEntry.getMsb(), indexEntry.getLsb()).toString());
          map.put(METADATA_SEGMENT_POSITION, String.valueOf(indexEntry.getPosition()));
          map.put(METADATA_SEGMENT_GENERATION, String.valueOf(indexEntry.getGeneration()));
          map.put(METADATA_SEGMENT_FULL_GENERATION, String.valueOf(indexEntry.getFullGeneration()));
          map.put(METADATA_SEGMENT_COMPACTED, String.valueOf(indexEntry.isCompacted()));
          return map;
      }
focal_method.class_method_signature: RemoteBlobMetadata.toSegmentMetadata(RemoteSegmentArchiveEntry indexEntry)
focal_method.full_signature: public static HashMap<String, String> toSegmentMetadata(RemoteSegmentArchiveEntry indexEntry)
focal_method.identifier: toSegmentMetadata
focal_method.invocations: put put toString getMsb getLsb put valueOf getPosition put valueOf getGeneration put valueOf getFullGeneration put valueOf isCompacted
focal_method.modifiers: public static
focal_method.parameters: (RemoteSegmentArchiveEntry indexEntry)
focal_method.return: HashMap<String, String>
focal_method.signature: HashMap<String, String> toSegmentMetadata(RemoteSegmentArchiveEntry indexEntry)