| Modifier and Type | Method and Description |
|---|---|
static Bucket.BucketPropertyPath |
from(Bucket bucket)
Creates a top-level
Bucket.BucketPropertyPath given Bucket. |
static Bucket.BucketPropertyPath |
from(Bucket bucket,
String prefix)
|
byte[] |
get(String key)
Retrieve a value at
key considering top-level/nesting. |
Bucket |
getBucket() |
String |
getPrefix() |
void |
put(String key,
byte[] value)
Write a
value at key considering top-level/nesting. |
public static Bucket.BucketPropertyPath from(Bucket bucket)
Bucket.BucketPropertyPath given Bucket.bucket - the bucket, must not be null.Bucket.BucketPropertyPath within the given Bucket.public static Bucket.BucketPropertyPath from(Bucket bucket, @Nullable String prefix)
Bucket.BucketPropertyPath given Bucket and prefix. The resulting path is top-level if
prefix is empty or nested, if prefix is not empty.bucket - the bucket, must not be null.prefix - the prefix. Property path is top-level if prefix is null or empty.Bucket.BucketPropertyPath within the given Bucket using prefix.@Nullable public byte[] get(String key)
key considering top-level/nesting.key - must not be null or empty.public void put(String key, byte[] value)
value at key considering top-level/nesting.key - must not be null or empty.value - the value.@NonNull public Bucket getBucket()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.