public final class NestedAttributeName extends Object
NestedAttributeName is used directly in QueryEnhancedRequest.nestedAttributesToProject()
and ScanEnhancedRequest.nestedAttributesToProject()
, and indirectly by
QueryEnhancedRequest.attributesToProject()
and ScanEnhancedRequest.attributesToProject()
.
Examples of creating NestedAttributeNames:
Level0
can be created as NestedAttributeName.create("Level0")
Level0.Level1
can be created as NestedAttributeName.create("Level0", "Level1")
Level0.Level-2
can be created as NestedAttributeName.create("Level0", "Level-2")
ListAttribute
can be created as NestedAttributeName.create("ListAttribute[0]")
Modifier and Type | Class and Description |
---|---|
static class |
NestedAttributeName.Builder
A builder for
NestedAttributeName . |
Modifier and Type | Method and Description |
---|---|
static NestedAttributeName.Builder |
builder()
Create a builder that can be used to create a
NestedAttributeName . |
static NestedAttributeName |
create(List<String> elements)
Creates a NestedAttributeName from a list of elements that compose the full path of the nested attribute.
|
static NestedAttributeName |
create(String... elements)
Creates a NestedAttributeName from a list of elements that compose the full path of the nested attribute.
|
static NestedAttributeName |
create(String element)
Creates a NestedAttributeName with a single element, which is effectively just a simple attribute name without nesting.
|
List<String> |
elements()
Gets elements of NestedAttributeName in the form of List.
|
boolean |
equals(Object o) |
int |
hashCode() |
NestedAttributeName.Builder |
toBuilder()
Returns a builder initialized with all existing values on the request object.
|
String |
toString() |
public static NestedAttributeName create(String element)
Example:create("foo") will create NestedAttributeName corresponding to Attribute foo.
element
- Attribute Name. Single String represents just a simple attribute name without nesting.public static NestedAttributeName create(String... elements)
Example:create("foo", "bar") will create NestedAttributeName which represents foo.bar nested attribute.
elements
- Nested Attribute Names. Each of strings in varargs represent the nested attribute name
at subsequent levels.public static NestedAttributeName create(List<String> elements)
Example:create(Arrays.asList("foo", "bar")) will create NestedAttributeName which represents foo.bar nested attribute.
elements
- List of Nested Attribute Names. Each of strings in List represent the nested attribute name
at subsequent levels.public static NestedAttributeName.Builder builder()
NestedAttributeName
.public List<String> elements()
public NestedAttributeName.Builder toBuilder()
Copyright © 2021. All rights reserved.