public class ColumnDef extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<ColumnDef>
| Modifier and Type | Class and Description |
|---|---|
static class |
ColumnDef.Builder |
| Modifier and Type | Field and Description |
|---|---|
byte[] |
comment |
static int |
COMMENT |
byte[] |
default_value |
static int |
DEFAULT_VALUE |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
byte[] |
name |
static int |
NAME |
boolean |
nullable |
static int |
NULLABLE |
ColumnTypeDef |
type |
static int |
TYPE |
| Constructor and Description |
|---|
ColumnDef() |
ColumnDef(byte[] name,
ColumnTypeDef type) |
ColumnDef(byte[] name,
ColumnTypeDef type,
byte[] default_value,
boolean nullable,
byte[] comment) |
ColumnDef(ColumnDef other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static ColumnDef.Builder |
builder() |
int |
compareTo(ColumnDef other) |
ColumnDef |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
byte[] |
getComment() |
byte[] |
getDefault_value() |
Object |
getFieldValue(int fieldID) |
byte[] |
getName() |
ColumnTypeDef |
getType() |
int |
hashCode() |
boolean |
isNullable() |
boolean |
isSetComment() |
boolean |
isSetDefault_value() |
boolean |
isSetName() |
boolean |
isSetNullable() |
boolean |
isSetType() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
ColumnDef |
setComment(byte[] comment) |
void |
setCommentIsSet(boolean __value) |
ColumnDef |
setDefault_value(byte[] default_value) |
void |
setDefault_valueIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
ColumnDef |
setName(byte[] name) |
void |
setNameIsSet(boolean __value) |
ColumnDef |
setNullable(boolean nullable) |
void |
setNullableIsSet(boolean __value) |
ColumnDef |
setType(ColumnTypeDef type) |
void |
setTypeIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetComment() |
void |
unsetDefault_value() |
void |
unsetName() |
void |
unsetNullable() |
void |
unsetType() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public byte[] name
public ColumnTypeDef type
public byte[] default_value
public boolean nullable
public byte[] comment
public static final int NAME
public static final int TYPE
public static final int DEFAULT_VALUE
public static final int NULLABLE
public static final int COMMENT
public ColumnDef()
public ColumnDef(byte[] name,
ColumnTypeDef type)
public ColumnDef(byte[] name,
ColumnTypeDef type,
byte[] default_value,
boolean nullable,
byte[] comment)
public ColumnDef(ColumnDef other)
public static ColumnDef.Builder builder()
public ColumnDef deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic byte[] getName()
public ColumnDef setName(byte[] name)
public void unsetName()
public boolean isSetName()
public void setNameIsSet(boolean __value)
public ColumnTypeDef getType()
public ColumnDef setType(ColumnTypeDef type)
public void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean __value)
public byte[] getDefault_value()
public ColumnDef setDefault_value(byte[] default_value)
public void unsetDefault_value()
public boolean isSetDefault_value()
public void setDefault_valueIsSet(boolean __value)
public boolean isNullable()
public ColumnDef setNullable(boolean nullable)
public void unsetNullable()
public boolean isSetNullable()
public void setNullableIsSet(boolean __value)
public byte[] getComment()
public ColumnDef setComment(byte[] comment)
public void unsetComment()
public boolean isSetComment()
public void setCommentIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(ColumnDef other)
compareTo in interface Comparable<ColumnDef>public void read(com.facebook.thrift.protocol.TProtocol iprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBaseread in interface com.facebook.thrift.TBaseiprot - Input protocolcom.facebook.thrift.TExceptionpublic void write(com.facebook.thrift.protocol.TProtocol oprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBasewrite in interface com.facebook.thrift.TBaseoprot - Output protocolcom.facebook.thrift.TExceptionpublic String toString(int indent, boolean prettyPrint)
com.facebook.thrift.TBasetoString in interface com.facebook.thrift.TBaseindent - The level of indentation desiredprettyPrint - Set pretty printing on/offpublic void validate()
throws com.facebook.thrift.TException
com.facebook.thrift.TExceptionCopyright © 2022. All rights reserved.