| Package | Description |
|---|---|
| com.google.cloud.hadoop.gcsio | |
| com.google.cloud.hadoop.gcsio.cooplock | |
| com.google.cloud.hadoop.gcsio.testing |
| Modifier and Type | Field and Description |
|---|---|
static StorageResourceId |
StorageResourceId.ROOT |
| Modifier and Type | Method and Description |
|---|---|
static StorageResourceId |
StorageResourceId.fromStringPath(String path)
Parses
StorageResourceId from specified string. |
static StorageResourceId |
StorageResourceId.fromStringPath(String path,
long generationId)
Parses
StorageResourceId from specified string and generationId. |
static StorageResourceId |
StorageResourceId.fromUriPath(URI path,
boolean allowEmptyObjectName)
Validates the given URI and if valid, returns the associated StorageResourceId.
|
static StorageResourceId |
StorageResourceId.fromUriPath(URI path,
boolean allowEmptyObjectName,
long generationId)
Validates the given URI and if valid, returns the associated StorageResourceId.
|
StorageResourceId |
GoogleCloudStorageItemInfo.getResourceId()
Gets the resourceId that holds the (possibly null) bucketName and objectName of this object.
|
StorageResourceId |
UpdatableItemInfo.getStorageResourceId() |
StorageResourceId |
StorageResourceId.toDirectoryId()
Converts StorageResourceId instance to look like a directory path.
|
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudStorageItemInfo |
PerformanceCachingGoogleCloudStorage.composeObjects(List<StorageResourceId> sources,
StorageResourceId destination,
CreateObjectOptions options) |
GoogleCloudStorageItemInfo |
GoogleCloudStorage.composeObjects(List<StorageResourceId> sources,
StorageResourceId destination,
CreateObjectOptions options)
Composes inputs into a single GCS object.
|
GoogleCloudStorageItemInfo |
ForwardingGoogleCloudStorage.composeObjects(List<StorageResourceId> sources,
StorageResourceId destination,
CreateObjectOptions options) |
GoogleCloudStorageItemInfo |
GoogleCloudStorageImpl.composeObjects(List<StorageResourceId> sources,
StorageResourceId destination,
CreateObjectOptions options) |
default WritableByteChannel |
GoogleCloudStorage.create(StorageResourceId resourceId)
Creates and opens an object for writing.
|
WritableByteChannel |
PerformanceCachingGoogleCloudStorage.create(StorageResourceId resourceId,
CreateObjectOptions options) |
WritableByteChannel |
GoogleCloudStorage.create(StorageResourceId resourceId,
CreateObjectOptions options)
Creates and opens an object for writing.
|
WritableByteChannel |
ForwardingGoogleCloudStorage.create(StorageResourceId resourceId,
CreateObjectOptions options) |
WritableByteChannel |
GoogleCloudStorageImpl.create(StorageResourceId resourceId,
CreateObjectOptions options) |
static GoogleCloudStorageItemInfo |
GoogleCloudStorageItemInfo.createBucket(StorageResourceId resourceId,
long creationTime,
long modificationTime,
String location,
String storageClass)
Factory method for creating a GoogleCloudStorageItemInfo for a bucket.
|
void |
GoogleCloudStorage.createEmptyObject(StorageResourceId resourceId)
Creates an empty object, useful for placeholders representing, for example, directories.
|
void |
ForwardingGoogleCloudStorage.createEmptyObject(StorageResourceId resourceId) |
void |
GoogleCloudStorageImpl.createEmptyObject(StorageResourceId resourceId)
See
GoogleCloudStorage.createEmptyObject(StorageResourceId) for details about expected
behavior. |
void |
GoogleCloudStorage.createEmptyObject(StorageResourceId resourceId,
CreateObjectOptions options)
Creates an empty object, useful for placeholders representing, for example, directories.
|
void |
ForwardingGoogleCloudStorage.createEmptyObject(StorageResourceId resourceId,
CreateObjectOptions options) |
void |
GoogleCloudStorageImpl.createEmptyObject(StorageResourceId resourceId,
CreateObjectOptions options) |
static FileNotFoundException |
GoogleCloudStorageExceptions.createFileNotFoundException(StorageResourceId resourceId,
IOException cause) |
static GoogleCloudStorageItemInfo |
GoogleCloudStorageItemInfo.createInferredDirectory(StorageResourceId resourceId)
Factory method for creating a "found" GoogleCloudStorageItemInfo for an inferred directory.
|
static GoogleCloudStorageItemInfo |
GoogleCloudStorageImpl.createItemInfoForBucket(StorageResourceId resourceId,
com.google.api.services.storage.model.Bucket bucket)
Helper for converting a StorageResourceId + Bucket into a GoogleCloudStorageItemInfo.
|
static GoogleCloudStorageItemInfo |
GoogleCloudStorageImpl.createItemInfoForStorageObject(StorageResourceId resourceId,
com.google.api.services.storage.model.StorageObject object)
Helper for converting a StorageResourceId + StorageObject into a GoogleCloudStorageItemInfo.
|
static GoogleCloudStorageItemInfo |
GoogleCloudStorageItemInfo.createNotFound(StorageResourceId resourceId)
Factory method for creating a "not found" GoogleCloudStorageItemInfo for a bucket or an object.
|
static GoogleCloudStorageItemInfo |
GoogleCloudStorageItemInfo.createObject(StorageResourceId resourceId,
long creationTime,
long modificationTime,
long size,
String contentType,
String contentEncoding,
Map<String,byte[]> metadata,
long contentGeneration,
long metaGeneration,
VerificationAttributes verificationAttributes)
Factory method for creating a GoogleCloudStorageItemInfo for an object.
|
void |
GoogleCloudStorageImpl.deleteObject(StorageResourceId resourceId,
long metaGeneration) |
static URI |
UriPaths.fromResourceId(StorageResourceId resourceId,
boolean allowEmptyObjectName)
Constructs and returns full path for the given bucket and object names.
|
GoogleCloudStorageItemInfo |
PrefixMappedItemCache.getItem(StorageResourceId id)
Gets the cached item associated with the given resource id.
|
GoogleCloudStorageItemInfo |
PerformanceCachingGoogleCloudStorage.getItemInfo(StorageResourceId resourceId)
This function may return cached copies of GoogleCloudStorageItemInfo.
|
GoogleCloudStorageItemInfo |
GoogleCloudStorage.getItemInfo(StorageResourceId resourceId)
Gets information about an object or a bucket.
|
GoogleCloudStorageItemInfo |
ForwardingGoogleCloudStorage.getItemInfo(StorageResourceId resourceId) |
GoogleCloudStorageItemInfo |
GoogleCloudStorageImpl.getItemInfo(StorageResourceId resourceId)
See
GoogleCloudStorage.getItemInfo(StorageResourceId) for details about expected
behavior. |
boolean |
PrefixMappedItemCache.isPrefixCached(StorageResourceId id)
Checks whether any items with specified prefix are in the cache.
|
default SeekableByteChannel |
GoogleCloudStorage.open(StorageResourceId resourceId)
Opens an object for reading.
|
SeekableByteChannel |
GoogleCloudStorage.open(StorageResourceId resourceId,
GoogleCloudStorageReadOptions readOptions)
Opens an object for reading.
|
SeekableByteChannel |
ForwardingGoogleCloudStorage.open(StorageResourceId resourceId,
GoogleCloudStorageReadOptions readOptions) |
SeekableByteChannel |
GoogleCloudStorageImpl.open(StorageResourceId resourceId,
GoogleCloudStorageReadOptions readOptions)
See
GoogleCloudStorage.open(StorageResourceId) for details about expected behavior. |
GoogleCloudStorageItemInfo |
PrefixMappedItemCache.removeItem(StorageResourceId id)
Removes the item from the cache.
|
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudStorageItemInfo |
PerformanceCachingGoogleCloudStorage.composeObjects(List<StorageResourceId> sources,
StorageResourceId destination,
CreateObjectOptions options) |
GoogleCloudStorageItemInfo |
GoogleCloudStorage.composeObjects(List<StorageResourceId> sources,
StorageResourceId destination,
CreateObjectOptions options)
Composes inputs into a single GCS object.
|
GoogleCloudStorageItemInfo |
ForwardingGoogleCloudStorage.composeObjects(List<StorageResourceId> sources,
StorageResourceId destination,
CreateObjectOptions options) |
GoogleCloudStorageItemInfo |
GoogleCloudStorageImpl.composeObjects(List<StorageResourceId> sources,
StorageResourceId destination,
CreateObjectOptions options) |
default void |
GoogleCloudStorage.copy(Map<StorageResourceId,StorageResourceId> sourceToDestinationObjectsMap)
Copies metadata of the given objects.
|
default void |
GoogleCloudStorage.copy(Map<StorageResourceId,StorageResourceId> sourceToDestinationObjectsMap)
Copies metadata of the given objects.
|
void |
ForwardingGoogleCloudStorage.copy(Map<StorageResourceId,StorageResourceId> sourceToDestinationObjectsMap) |
void |
ForwardingGoogleCloudStorage.copy(Map<StorageResourceId,StorageResourceId> sourceToDestinationObjectsMap) |
void |
GoogleCloudStorageImpl.copy(Map<StorageResourceId,StorageResourceId> sourceToDestinationObjectsMap)
See
GoogleCloudStorage.copy(String, List, String, List) for details about expected
behavior. |
void |
GoogleCloudStorageImpl.copy(Map<StorageResourceId,StorageResourceId> sourceToDestinationObjectsMap)
See
GoogleCloudStorage.copy(String, List, String, List) for details about expected
behavior. |
void |
GoogleCloudStorage.createEmptyObjects(List<StorageResourceId> resourceIds)
Creates a list of empty objects; see
GoogleCloudStorage.createEmptyObject(StorageResourceId) for the
single-item version of this method. |
void |
ForwardingGoogleCloudStorage.createEmptyObjects(List<StorageResourceId> resourceIds) |
void |
GoogleCloudStorageImpl.createEmptyObjects(List<StorageResourceId> resourceIds)
See
GoogleCloudStorage.createEmptyObjects(List) for details about expected behavior. |
void |
GoogleCloudStorage.createEmptyObjects(List<StorageResourceId> resourceIds,
CreateObjectOptions options)
Creates a list of empty objects; see
GoogleCloudStorage.createEmptyObject(StorageResourceId) for the
single-item version of this method. |
void |
ForwardingGoogleCloudStorage.createEmptyObjects(List<StorageResourceId> resourceIds,
CreateObjectOptions options) |
void |
GoogleCloudStorageImpl.createEmptyObjects(List<StorageResourceId> resourceIds,
CreateObjectOptions options) |
void |
PerformanceCachingGoogleCloudStorage.deleteObjects(List<StorageResourceId> resourceIds) |
void |
GoogleCloudStorage.deleteObjects(List<StorageResourceId> fullObjectNames)
Deletes the given objects.
|
void |
ForwardingGoogleCloudStorage.deleteObjects(List<StorageResourceId> fullObjectNames) |
void |
GoogleCloudStorageImpl.deleteObjects(List<StorageResourceId> fullObjectNames)
See
GoogleCloudStorage.deleteObjects(List) for details about expected behavior. |
List<GoogleCloudStorageItemInfo> |
PerformanceCachingGoogleCloudStorage.getItemInfos(List<StorageResourceId> resourceIds)
This function may return cached copies of GoogleCloudStorageItemInfo.
|
List<GoogleCloudStorageItemInfo> |
GoogleCloudStorage.getItemInfos(List<StorageResourceId> resourceIds)
Gets information about multiple objects and/or buckets.
|
List<GoogleCloudStorageItemInfo> |
ForwardingGoogleCloudStorage.getItemInfos(List<StorageResourceId> resourceIds) |
List<GoogleCloudStorageItemInfo> |
GoogleCloudStorageImpl.getItemInfos(List<StorageResourceId> resourceIds)
See
GoogleCloudStorage.getItemInfos(List) for details about expected behavior. |
static void |
GoogleCloudStorageImpl.validateCopyArguments(Map<StorageResourceId,StorageResourceId> sourceToDestinationObjectsMap,
GoogleCloudStorage gcsImpl)
Validates basic argument constraints like non-null, non-empty Strings, using
Preconditions in addition to checking for src/dst bucket existence and compatibility of bucket
properties such as location and storage-class. |
static void |
GoogleCloudStorageImpl.validateCopyArguments(Map<StorageResourceId,StorageResourceId> sourceToDestinationObjectsMap,
GoogleCloudStorage gcsImpl)
Validates basic argument constraints like non-null, non-empty Strings, using
Preconditions in addition to checking for src/dst bucket existence and compatibility of bucket
properties such as location and storage-class. |
| Constructor and Description |
|---|
GoogleCloudStorageReadChannel(com.google.api.services.storage.Storage gcs,
StorageResourceId resourceId,
ApiErrorExtractor errorExtractor,
ClientRequestHelper<com.google.api.services.storage.model.StorageObject> requestHelper,
GoogleCloudStorageReadOptions readOptions)
Constructs an instance of GoogleCloudStorageReadChannel.
|
GoogleCloudStorageWriteChannel(com.google.api.services.storage.Storage gcs,
ClientRequestHelper<com.google.api.services.storage.model.StorageObject> requestHelper,
ExecutorService uploadThreadPool,
AsyncWriteChannelOptions channelOptions,
StorageResourceId resourceId,
CreateObjectOptions createOptions,
ObjectWriteConditions writeConditions)
Constructs an instance of GoogleCloudStorageWriteChannel.
|
UpdatableItemInfo(StorageResourceId storageResourceId,
Map<String,byte[]> metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
CoopLockRecordsDao.lockPaths(String operationId,
Instant operationInstant,
CoopLockOperationType operationType,
StorageResourceId... resources) |
Future<?> |
CoopLockOperationDao.persistDeleteOperation(String operationId,
Instant operationInstant,
StorageResourceId resourceId,
List<FileInfo> itemsToDelete,
List<FileInfo> bucketsToDelete) |
Future<?> |
CoopLockOperationDao.persistRenameOperation(String operationId,
Instant operationInstant,
StorageResourceId src,
StorageResourceId dst,
Map<FileInfo,URI> srcToDstItemNames,
Map<FileInfo,URI> srcToDstMarkerItemNames) |
void |
CoopLockRecordsDao.unlockPaths(String operationId,
StorageResourceId... resources) |
| Modifier and Type | Method and Description |
|---|---|
abstract StorageResourceId |
GcsItemInfoTestBuilder.getStorageResourceId() |
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudStorageItemInfo |
InMemoryGoogleCloudStorage.composeObjects(List<StorageResourceId> sources,
StorageResourceId destination,
CreateObjectOptions options) |
WritableByteChannel |
InMemoryGoogleCloudStorage.create(StorageResourceId resourceId,
CreateObjectOptions options) |
void |
InMemoryGoogleCloudStorage.createEmptyObject(StorageResourceId resourceId) |
void |
InMemoryGoogleCloudStorage.createEmptyObject(StorageResourceId resourceId,
CreateObjectOptions options) |
GoogleCloudStorageItemInfo |
InMemoryGoogleCloudStorage.getItemInfo(StorageResourceId resourceId) |
SeekableByteChannel |
InMemoryGoogleCloudStorage.open(StorageResourceId resourceId,
GoogleCloudStorageReadOptions readOptions) |
abstract GcsItemInfoTestBuilder.Builder |
GcsItemInfoTestBuilder.Builder.setStorageResourceId(StorageResourceId storageResourceId) |
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudStorageItemInfo |
InMemoryGoogleCloudStorage.composeObjects(List<StorageResourceId> sources,
StorageResourceId destination,
CreateObjectOptions options) |
void |
InMemoryGoogleCloudStorage.createEmptyObjects(List<StorageResourceId> resourceIds) |
void |
InMemoryGoogleCloudStorage.createEmptyObjects(List<StorageResourceId> resourceIds,
CreateObjectOptions options) |
void |
InMemoryGoogleCloudStorage.deleteObjects(List<StorageResourceId> fullObjectNames) |
List<GoogleCloudStorageItemInfo> |
InMemoryGoogleCloudStorage.getItemInfos(List<StorageResourceId> resourceIds) |
Copyright © 2022. All rights reserved.