static FileSystemKind getKindForScheme(String scheme) {
		scheme = scheme.toLowerCase(Locale.US);

		if (scheme.startsWith("s3") || scheme.startsWith("emr") || scheme.startsWith("oss")) {
			// the Amazon S3 storage or Aliyun OSS storage
			return FileSystemKind.OBJECT_STORE;
		}
		else if (scheme.startsWith("http") || scheme.startsWith("ftp")) {
			// file servers instead of file systems
			// they might actually be consistent, but we have no hard guarantees
			// currently to rely on that
			return FileSystemKind.OBJECT_STORE;
		}
		else {
			// the remainder should include hdfs, kosmos, ceph, ...
			// this also includes federated HDFS (viewfs).
			return FileSystemKind.FILE_SYSTEM;
		}
	}
static FileSystemKind getKindForScheme ( String scheme ) { scheme = scheme . toLowerCase ( Locale . US ) ; if ( scheme . startsWith ( "s3" ) || scheme . startsWith ( "emr" ) || scheme . startsWith ( "oss" ) ) { return FileSystemKind . OBJECT_STORE ; } else if ( scheme . startsWith ( "http" ) || scheme . startsWith ( "ftp" ) ) { return FileSystemKind . OBJECT_STORE ; } else { return FileSystemKind . FILE_SYSTEM ; } }
Gets the kind of the file system from its scheme.

<p>Implementation note: Initially, especially within the Flink 1.3.x line
(in order to not break backwards compatibility), we must only label file systems
as 'inconsistent' or as 'not proper filesystems' if we are sure about it.
Otherwise, we cause regression for example in the performance and cleanup handling
of checkpoints.
For that reason, we initially mark some filesystems as 'eventually consistent' or
as 'object stores', and leave the others as 'consistent file systems'.