org.apache.hadoop.hbase.types
Class StructBuilder

java.lang.Object
  extended by org.apache.hadoop.hbase.types.StructBuilder

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class StructBuilder
extends Object

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

fields

protected final List<DataType<?>> fields
Constructor Detail

StructBuilder

public StructBuilder()
Create an empty StructBuilder.

Method Detail

add

public StructBuilder add(DataType<?> field)
Append field to the sequence of accumulated fields.


toStruct

public Struct toStruct()
Retrieve the Struct represented by this.


reset

public StructBuilder reset()
Reset the sequence of accumulated fields.



Copyright © 2013 The Apache Software Foundation. All Rights Reserved.