public class InMemoryBucketEntry
extends java.lang.Object
| Constructor and Description |
|---|
InMemoryBucketEntry(java.lang.String bucketName,
long createTimeMillis,
CreateBucketOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(InMemoryObjectEntry obj)
Inserts an InMemoryObjectEntry representing
objectName; replaces any existing object. |
InMemoryObjectEntry |
get(java.lang.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. |
java.util.Set<java.lang.String> |
getObjectNames()
Returns the Set containing all objectNames previously inserted into this bucket.
|
InMemoryObjectEntry |
remove(java.lang.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(java.lang.String bucketName,
long createTimeMillis,
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(java.lang.String objectName)
InMemoryObjectEntry, or null if it doesn't exist.public InMemoryObjectEntry remove(java.lang.String objectName)
public GoogleCloudStorageItemInfo getInfo()
GoogleCloudStorageItemInfo associated with this BucketEntry; the 'size'
of a bucket is always 0.public java.util.Set<java.lang.String> getObjectNames()
public int size()
Copyright © 2019. All rights reserved.