|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.types.StructBuilder
@InterfaceAudience.Public @InterfaceStability.Evolving public class StructBuilder
A helper for building Struct instances.
| Field Summary | |
|---|---|
protected List<DataType<?>> |
fields
|
| Constructor Summary | |
|---|---|
StructBuilder()
Create an empty StructBuilder. |
|
| Method Summary | |
|---|---|
StructBuilder |
add(DataType<?> field)
Append field to the sequence of accumulated fields. |
StructBuilder |
reset()
Reset the sequence of accumulated fields. |
Struct |
toStruct()
Retrieve the Struct represented by this. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final List<DataType<?>> fields
| Constructor Detail |
|---|
public StructBuilder()
StructBuilder.
| Method Detail |
|---|
public StructBuilder add(DataType<?> field)
field to the sequence of accumulated fields.
public Struct toStruct()
Struct represented by this.
public StructBuilder reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||