org.apache.blur.thrift.generated
Class Schema

java.lang.Object
  extended by org.apache.blur.thrift.generated.Schema
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Schema>, TBase<Schema,Schema._Fields>

public class Schema
extends Object
implements TBase<Schema,Schema._Fields>, Serializable, Cloneable

The current schema of the table.

See Also:
Serialized Form

Nested Class Summary
static class Schema._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 Map<String,Map<String,ColumnDefinition>> families
          Families and the column definitions within them.
static Map<Schema._Fields,FieldMetaData> metaDataMap
           
 String table
          The table name.
 
Constructor Summary
Schema()
           
Schema(Schema other)
          Performs a deep copy on other.
Schema(String table, Map<String,Map<String,ColumnDefinition>> families)
           
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(Schema other)
           
 Schema deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(Schema that)
           
 Schema._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 Map<String,Map<String,ColumnDefinition>> getFamilies()
          Families and the column definitions within them.
 int getFamiliesSize()
           
 Object getFieldValue(Schema._Fields field)
          Get a field's value by field variable.
 String getTable()
          The table name.
 int hashCode()
           
 boolean isSet(Schema._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetFamilies()
          Returns true if field families is set (has been assigned a value) and false otherwise
 boolean isSetTable()
          Returns true if field table is set (has been assigned a value) and false otherwise
 void putToFamilies(String key, Map<String,ColumnDefinition> val)
           
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 Schema setFamilies(Map<String,Map<String,ColumnDefinition>> families)
          Families and the column definitions within them.
 void setFamiliesIsSet(boolean value)
           
 void setFieldValue(Schema._Fields field, Object value)
          Set a field's value by field variable.
 Schema setTable(String table)
          The table name.
 void setTableIsSet(boolean value)
           
 String toString()
           
 void unsetFamilies()
           
 void unsetTable()
           
 void validate()
           
 void write(TProtocol oprot)
          Writes the objects out to the protocol
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

table

public String table
The table name.


families

public Map<String,Map<String,ColumnDefinition>> families
Families and the column definitions within them.


metaDataMap

public static final Map<Schema._Fields,FieldMetaData> metaDataMap
Constructor Detail

Schema

public Schema()

Schema

public Schema(String table,
              Map<String,Map<String,ColumnDefinition>> families)

Schema

public Schema(Schema other)
Performs a deep copy on other.

Method Detail

deepCopy

public Schema deepCopy()
Specified by:
deepCopy in interface TBase<Schema,Schema._Fields>

clear

public void clear()
Description copied from interface: TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface TBase<Schema,Schema._Fields>

getTable

public String getTable()
The table name.


setTable

public Schema setTable(String table)
The table name.


unsetTable

public void unsetTable()

isSetTable

public boolean isSetTable()
Returns true if field table is set (has been assigned a value) and false otherwise


setTableIsSet

public void setTableIsSet(boolean value)

getFamiliesSize

public int getFamiliesSize()

putToFamilies

public void putToFamilies(String key,
                          Map<String,ColumnDefinition> val)

getFamilies

public Map<String,Map<String,ColumnDefinition>> getFamilies()
Families and the column definitions within them.


setFamilies

public Schema setFamilies(Map<String,Map<String,ColumnDefinition>> families)
Families and the column definitions within them.


unsetFamilies

public void unsetFamilies()

isSetFamilies

public boolean isSetFamilies()
Returns true if field families is set (has been assigned a value) and false otherwise


setFamiliesIsSet

public void setFamiliesIsSet(boolean value)

setFieldValue

public void setFieldValue(Schema._Fields field,
                          Object value)
Description copied from interface: TBase
Set a field's value by field variable. Primitive types must be "boxed" in the appropriate object wrapper type.

Specified by:
setFieldValue in interface TBase<Schema,Schema._Fields>

getFieldValue

public Object getFieldValue(Schema._Fields field)
Description copied from interface: TBase
Get a field's value by field variable. Primitive types will be wrapped in the appropriate "boxed" types.

Specified by:
getFieldValue in interface TBase<Schema,Schema._Fields>

isSet

public boolean isSet(Schema._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface TBase<Schema,Schema._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(Schema that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Schema other)
Specified by:
compareTo in interface Comparable<Schema>

fieldForId

public Schema._Fields fieldForId(int fieldId)
Description copied from interface: TBase
Get the F instance that corresponds to fieldId.

Specified by:
fieldForId in interface TBase<Schema,Schema._Fields>

read

public void read(TProtocol iprot)
          throws TException
Description copied from interface: TBase
Reads the TObject from the given input protocol.

Specified by:
read in interface TBase<Schema,Schema._Fields>
Parameters:
iprot - Input protocol
Throws:
TException

write

public void write(TProtocol oprot)
           throws TException
Description copied from interface: TBase
Writes the objects out to the protocol

Specified by:
write in interface TBase<Schema,Schema._Fields>
Parameters:
oprot - Output protocol
Throws:
TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws TException
Throws:
TException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.