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 toIndexEntry() {
          HashMap<String, String> metadata = new HashMap<>();
          metadata.put(RemoteBlobMetadata.METADATA_SEGMENT_UUID, "97290085-b1a5-4fb9-ae77-db6d13177537");
          metadata.put(RemoteBlobMetadata.METADATA_SEGMENT_POSITION, "3");
          metadata.put(RemoteBlobMetadata.METADATA_SEGMENT_GENERATION, "50");
          metadata.put(RemoteBlobMetadata.METADATA_SEGMENT_FULL_GENERATION, "60");
          metadata.put(RemoteBlobMetadata.METADATA_SEGMENT_COMPACTED, "true");
          RemoteSegmentArchiveEntry azureSegmentArchiveEntry = RemoteBlobMetadata.toIndexEntry(metadata, 5);
          System.out.println(azureSegmentArchiveEntry);
  
  
          assertEquals(-7554506325726244935L, azureSegmentArchiveEntry.getMsb());
          assertEquals(-5874985927363300041L, azureSegmentArchiveEntry.getLsb());
          assertEquals(3, azureSegmentArchiveEntry.getPosition());
          assertEquals(5, azureSegmentArchiveEntry.getLength());
          assertEquals(50, azureSegmentArchiveEntry.getGeneration());
          assertEquals(60, azureSegmentArchiveEntry.getFullGeneration());
          assertTrue(azureSegmentArchiveEntry.isCompacted());
      }
test_case.class_method_signature: RemoteBlobMetadataTest.toIndexEntry()
test_case.full_signature: @Test public void toIndexEntry()
test_case.identifier: toIndexEntry
test_case.invocations: put put put put put toIndexEntry println assertEquals getMsb assertEquals getLsb assertEquals getPosition assertEquals getLength assertEquals getGeneration assertEquals getFullGeneration assertTrue isCompacted
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toIndexEntry()
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 RemoteSegmentArchiveEntry toIndexEntry(Map<String, String> metadata, int length) {
          UUID uuid = UUID.fromString(metadata.get(METADATA_SEGMENT_UUID));
          long msb = uuid.getMostSignificantBits();
          long lsb = uuid.getLeastSignificantBits();
          int position = Integer.parseInt(metadata.get(METADATA_SEGMENT_POSITION));
          int generation = Integer.parseInt(metadata.get(METADATA_SEGMENT_GENERATION));
          int fullGeneration = Integer.parseInt(metadata.get(METADATA_SEGMENT_FULL_GENERATION));
          boolean compacted = Boolean.parseBoolean(metadata.get(METADATA_SEGMENT_COMPACTED));
          return new RemoteSegmentArchiveEntry(msb, lsb, position, length, generation, fullGeneration, compacted);
      }
focal_method.class_method_signature: RemoteBlobMetadata.toIndexEntry(Map<String, String> metadata, int length)
focal_method.full_signature: public static RemoteSegmentArchiveEntry toIndexEntry(Map<String, String> metadata, int length)
focal_method.identifier: toIndexEntry
focal_method.invocations: fromString get getMostSignificantBits getLeastSignificantBits parseInt get parseInt get parseInt get parseBoolean get
focal_method.modifiers: public static
focal_method.parameters: (Map<String, String> metadata, int length)
focal_method.return: RemoteSegmentArchiveEntry
focal_method.signature: RemoteSegmentArchiveEntry toIndexEntry(Map<String, String> metadata, int length)