| Package | Description |
|---|---|
| com.google.cloud.hadoop.gcsio |
| Modifier and Type | Field and Description |
|---|---|
static FileInfo |
FileInfo.ROOT_INFO |
| Modifier and Type | Method and Description |
|---|---|
static FileInfo |
FileInfo.fromItemInfo(PathCodec pathCodec,
GoogleCloudStorageItemInfo itemInfo)
Handy factory method for constructing a FileInfo from a GoogleCloudStorageItemInfo while
potentially returning a singleton instead of really constructing an object for cases like ROOT.
|
FileInfo |
GoogleCloudStorageFileSystem.getFileInfo(java.net.URI path)
Gets information about the given path item.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<FileInfo> |
FileInfo.fromItemInfos(PathCodec pathCodec,
java.util.List<GoogleCloudStorageItemInfo> itemInfos)
Handy factory method for constructing a list of FileInfo from a list of
GoogleCloudStorageItemInfo.
|
java.util.List<FileInfo> |
GoogleCloudStorageFileSystem.getFileInfos(java.util.List<java.net.URI> paths)
Gets information about each path in the given list; more efficient than calling getFileInfo()
on each path individually in a loop.
|
java.util.List<FileInfo> |
GoogleCloudStorageFileSystem.listAllFileInfoForPrefix(java.net.URI prefix)
Equivalent to a recursive listing of
prefix, except that prefix doesn't have to
represent an actual object but can just be a partial prefix string, and there is no auto-repair
of implicit directories since we can't detect implicit directories without listing by
'delimiter'. |
GoogleCloudStorage.ListPage<FileInfo> |
GoogleCloudStorageFileSystem.listAllFileInfoForPrefixPage(java.net.URI prefix,
java.lang.String pageToken)
Equivalent to
GoogleCloudStorageFileSystem.listAllFileInfoForPrefix(java.net.URI) but returns FileInfos listed by single
request (1 page). |
java.util.List<FileInfo> |
GoogleCloudStorageFileSystem.listFileInfo(java.net.URI path,
boolean enableAutoRepair)
If the given path points to a directory then the information about its
children is returned, otherwise information about the given file is returned.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.net.URI> |
GoogleCloudStorageFileSystem.listFileNames(FileInfo fileInfo)
If the given item is a directory then the paths of its immediate
children are returned, otherwise the path of the given item is returned.
|
java.util.List<java.net.URI> |
GoogleCloudStorageFileSystem.listFileNames(FileInfo fileInfo,
boolean recursive)
If the given item is a directory then the paths of its
children are returned, otherwise the path of the given item is returned.
|
Copyright © 2019. All rights reserved.