|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.generated.Schema
public class Schema
The current schema of the table.
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 |
---|
public String table
public Map<String,Map<String,ColumnDefinition>> families
public static final Map<Schema._Fields,FieldMetaData> metaDataMap
Constructor Detail |
---|
public Schema()
public Schema(String table, Map<String,Map<String,ColumnDefinition>> families)
public Schema(Schema other)
Method Detail |
---|
public Schema deepCopy()
deepCopy
in interface TBase<Schema,Schema._Fields>
public void clear()
TBase
clear
in interface TBase<Schema,Schema._Fields>
public String getTable()
public Schema setTable(String table)
public void unsetTable()
public boolean isSetTable()
public void setTableIsSet(boolean value)
public int getFamiliesSize()
public void putToFamilies(String key, Map<String,ColumnDefinition> val)
public Map<String,Map<String,ColumnDefinition>> getFamilies()
public Schema setFamilies(Map<String,Map<String,ColumnDefinition>> families)
public void unsetFamilies()
public boolean isSetFamilies()
public void setFamiliesIsSet(boolean value)
public void setFieldValue(Schema._Fields field, Object value)
TBase
setFieldValue
in interface TBase<Schema,Schema._Fields>
public Object getFieldValue(Schema._Fields field)
TBase
getFieldValue
in interface TBase<Schema,Schema._Fields>
public boolean isSet(Schema._Fields field)
isSet
in interface TBase<Schema,Schema._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(Schema that)
public int hashCode()
hashCode
in class Object
public int compareTo(Schema other)
compareTo
in interface Comparable<Schema>
public Schema._Fields fieldForId(int fieldId)
TBase
fieldForId
in interface TBase<Schema,Schema._Fields>
public void read(TProtocol iprot) throws TException
TBase
read
in interface TBase<Schema,Schema._Fields>
iprot
- Input protocol
TException
public void write(TProtocol oprot) throws TException
TBase
write
in interface TBase<Schema,Schema._Fields>
oprot
- Output protocol
TException
public String toString()
toString
in class Object
public void validate() throws TException
TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |