test_class.declarator: storageResource =
        new NotInheritableExternalResource(GoogleHadoopFileSystemTest.class) {
          @Override
          public void before() throws Throwable {
            // Disable logging.
            // Normally you would need to keep a strong reference to any logger used for
            // configuration, but the "root" logger is always present.
            Logger.getLogger("").setLevel(Level.OFF);
  
            ghfs = GoogleHadoopFileSystemTestHelper.createInMemoryGoogleHadoopFileSystem();
            ghfsFileSystemDescriptor = (FileSystemDescriptor) ghfs;
  
            GoogleHadoopFileSystemIntegrationTest.postCreateInit();
          }
  
          @Override
          public void after() {
            GoogleHadoopFileSystemIntegrationTest.storageResource.after();
          }
        }
test_class.modifier: @ClassRule
    public static
test_class.original_string: @ClassRule
    public static NotInheritableExternalResource storageResource =
        new NotInheritableExternalResource(GoogleHadoopFileSystemTest.class) {
          @Override
          public void before() throws Throwable {
            // Disable logging.
            // Normally you would need to keep a strong reference to any logger used for
            // configuration, but the "root" logger is always present.
            Logger.getLogger("").setLevel(Level.OFF);
  
            ghfs = GoogleHadoopFileSystemTestHelper.createInMemoryGoogleHadoopFileSystem();
            ghfsFileSystemDescriptor = (FileSystemDescriptor) ghfs;
  
            GoogleHadoopFileSystemIntegrationTest.postCreateInit();
          }
  
          @Override
          public void after() {
            GoogleHadoopFileSystemIntegrationTest.storageResource.after();
          }
        };
test_class.type: NotInheritableExternalResource
test_class.var_name: storageResource
test_class.file: gcs/src/test/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemTest.java
test_class.identifier: GoogleHadoopFileSystemTest
test_class.superclass: extends GoogleHadoopFileSystemIntegrationTest
test_case.body: @Override
    @Test
    public void testGetGcsPath() throws URISyntaxException {
      GoogleHadoopFileSystem myghfs = (GoogleHadoopFileSystem) ghfs;
      URI gcsPath = new URI("gs://" + myghfs.getUri().getAuthority() + "/dir/obj");
      assertThat(myghfs.getGcsPath(new Path(gcsPath))).isEqualTo(gcsPath);
    }
test_case.class_method_signature: GoogleHadoopFileSystemTest.testGetGcsPath()
test_case.full_signature: @Override @Test public void testGetGcsPath()
test_case.identifier: testGetGcsPath
test_case.invocations: getAuthority getUri isEqualTo assertThat getGcsPath
test_case.modifiers: @Override @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetGcsPath()
focal_class.declarator: logger = GoogleLogger.forEnclosingClass()
focal_class.modifier: private static final
focal_class.original_string: private static final GoogleLogger logger = GoogleLogger.forEnclosingClass();
focal_class.type: GoogleLogger
focal_class.var_name: logger
focal_class.declarator: SCHEME = GoogleHadoopFileSystemBase.SCHEME
focal_class.modifier: public static final
focal_class.original_string: public static final String SCHEME = GoogleHadoopFileSystemBase.SCHEME;
focal_class.type: String
focal_class.var_name: SCHEME
focal_class.declarator: rootBucket
focal_class.modifier: private
focal_class.original_string: private String rootBucket;
focal_class.type: String
focal_class.var_name: rootBucket
focal_class.file: gcs/src/main/java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystem.java
focal_class.identifier: GoogleHadoopFileSystem
focal_class.class_method_signature: GoogleHadoopFileSystem.GoogleHadoopFileSystem()
focal_class.full_signature: public  GoogleHadoopFileSystem()
focal_class.identifier: GoogleHadoopFileSystem
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  GoogleHadoopFileSystem()
focal_class.class_method_signature: GoogleHadoopFileSystem.GoogleHadoopFileSystem(GoogleCloudStorageFileSystem gcsfs)
focal_class.full_signature: @VisibleForTesting  GoogleHadoopFileSystem(GoogleCloudStorageFileSystem gcsfs)
focal_class.identifier: GoogleHadoopFileSystem
focal_class.modifiers: @VisibleForTesting
focal_class.parameters: (GoogleCloudStorageFileSystem gcsfs)
focal_class.signature:  GoogleHadoopFileSystem(GoogleCloudStorageFileSystem gcsfs)
focal_class.class_method_signature: GoogleHadoopFileSystem.configureBuckets(GoogleCloudStorageFileSystem gcsFs)
focal_class.full_signature: @Override @VisibleForTesting protected void configureBuckets(GoogleCloudStorageFileSystem gcsFs)
focal_class.identifier: configureBuckets
focal_class.modifiers: @Override @VisibleForTesting protected
focal_class.parameters: (GoogleCloudStorageFileSystem gcsFs)
focal_class.return: void
focal_class.signature: void configureBuckets(GoogleCloudStorageFileSystem gcsFs)
focal_class.class_method_signature: GoogleHadoopFileSystem.checkPath(Path path)
focal_class.full_signature: @Override protected void checkPath(Path path)
focal_class.identifier: checkPath
focal_class.modifiers: @Override protected
focal_class.parameters: (Path path)
focal_class.return: void
focal_class.signature: void checkPath(Path path)
focal_class.class_method_signature: GoogleHadoopFileSystem.getRootBucketName()
focal_class.full_signature: @VisibleForTesting String getRootBucketName()
focal_class.identifier: getRootBucketName
focal_class.modifiers: @VisibleForTesting
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRootBucketName()
focal_class.class_method_signature: GoogleHadoopFileSystem.getHomeDirectorySubpath()
focal_class.full_signature: @Override protected String getHomeDirectorySubpath()
focal_class.identifier: getHomeDirectorySubpath
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getHomeDirectorySubpath()
focal_class.class_method_signature: GoogleHadoopFileSystem.getHadoopPath(URI gcsPath)
focal_class.full_signature: @Override public Path getHadoopPath(URI gcsPath)
focal_class.identifier: getHadoopPath
focal_class.modifiers: @Override public
focal_class.parameters: (URI gcsPath)
focal_class.return: Path
focal_class.signature: Path getHadoopPath(URI gcsPath)
focal_class.class_method_signature: GoogleHadoopFileSystem.getGcsPath(Path hadoopPath)
focal_class.full_signature: @Override public URI getGcsPath(Path hadoopPath)
focal_class.identifier: getGcsPath
focal_class.modifiers: @Override public
focal_class.parameters: (Path hadoopPath)
focal_class.return: URI
focal_class.signature: URI getGcsPath(Path hadoopPath)
focal_class.class_method_signature: GoogleHadoopFileSystem.getScheme()
focal_class.full_signature: @Override public String getScheme()
focal_class.identifier: getScheme
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getScheme()
focal_class.class_method_signature: GoogleHadoopFileSystem.getFileSystemRoot()
focal_class.full_signature: @Override public Path getFileSystemRoot()
focal_class.identifier: getFileSystemRoot
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path getFileSystemRoot()
focal_class.class_method_signature: GoogleHadoopFileSystem.getDefaultWorkingDirectory()
focal_class.full_signature: @Override public Path getDefaultWorkingDirectory()
focal_class.identifier: getDefaultWorkingDirectory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path getDefaultWorkingDirectory()
focal_class.superclass: extends GoogleHadoopFileSystemBase
focal_method.body: @Override
    public URI getGcsPath(Path hadoopPath) {
      logger.atFinest().log("getGcsPath(hadoopPath: %s)", hadoopPath);
  
      // Convert to fully qualified absolute path; the Path object will callback to get our current
      // workingDirectory as part of fully resolving the path.
      Path resolvedPath = makeQualified(hadoopPath);
  
      String objectName = resolvedPath.toUri().getPath();
      if (objectName != null && resolvedPath.isAbsolute()) {
        // Strip off leading '/' because GoogleCloudStorageFileSystem.getPath appends it explicitly
        // between bucket and objectName.
        objectName = objectName.substring(1);
      }
  
      // Construct GCS path uri.
      URI gcsPath =
          UriPaths.fromStringPathComponents(rootBucket, objectName, /* allowEmptyObjectName= */ true);
      logger.atFinest().log("getGcsPath(hadoopPath: %s): %s", hadoopPath, gcsPath);
      return gcsPath;
    }
focal_method.class_method_signature: GoogleHadoopFileSystem.getGcsPath(Path hadoopPath)
focal_method.full_signature: @Override public URI getGcsPath(Path hadoopPath)
focal_method.identifier: getGcsPath
focal_method.invocations: log atFinest makeQualified getPath toUri isAbsolute substring fromStringPathComponents log atFinest
focal_method.modifiers: @Override public
focal_method.parameters: (Path hadoopPath)
focal_method.return: URI
focal_method.signature: URI getGcsPath(Path hadoopPath)