public class InMemoryBucketEntry extends Object
| Constructor and Description |
|---|
InMemoryBucketEntry(String bucketName,
CreateBucketOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(InMemoryObjectEntry obj)
Inserts an InMemoryObjectEntry representing
objectName; replaces any existing object. |
InMemoryObjectEntry |
get(String objectName)
Retrieves a previously inserted
InMemoryObjectEntry, or null if it doesn't exist. |
GoogleCloudStorageItemInfo |
getInfo()
Gets the
GoogleCloudStorageItemInfo associated with this BucketEntry; the 'size'
of a bucket is always 0. |
Set<String> |
getObjectNames()
Returns the Set containing all objectNames previously inserted into this bucket.
|
InMemoryObjectEntry |
remove(String objectName)
Removes a previously inserted InMemoryObjectEntry and returns it; returns null if it didn't
exist.
|
int |
size()
Returns the number of objects in this bucket.
|
public InMemoryBucketEntry(String bucketName, CreateBucketOptions options)
bucketName - The name representing the bucketName portion of a GCS path, e.g.
gs://public void add(InMemoryObjectEntry obj)
objectName; replaces any existing object.public InMemoryObjectEntry get(String objectName)
InMemoryObjectEntry, or null if it doesn't exist.public InMemoryObjectEntry remove(String objectName)
public GoogleCloudStorageItemInfo getInfo()
GoogleCloudStorageItemInfo associated with this BucketEntry; the 'size'
of a bucket is always 0.public Set<String> getObjectNames()
public int size()
Copyright © 2016. All rights reserved.