@InterfaceAudience.Public @InterfaceStability.Evolving public class ColumnSchema extends Object
ColumnSchema.ColumnSchemaBuilder
in order to
create columns.Modifier and Type | Class and Description |
---|---|
static class |
ColumnSchema.ColumnSchemaBuilder
Builder for ColumnSchema.
|
static class |
ColumnSchema.CompressionAlgorithm
Specifies the compression algorithm of data for a column on disk.
|
static class |
ColumnSchema.Encoding
Specifies the encoding of data for a column on disk.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getComment()
Return the comment for the column.
|
ColumnSchema.CompressionAlgorithm |
getCompressionAlgorithm()
Return the compression algorithm of this column, or null if it is not known.
|
Object |
getDefaultValue()
The Java object representation of the default value that's read
|
int |
getDesiredBlockSize()
Gets the desired block size for this column.
|
ColumnSchema.Encoding |
getEncoding()
Return the encoding of this column, or null if it is not known.
|
String |
getName()
Get the column's name
|
Type |
getType()
Get the column's Type
|
ColumnTypeAttributes |
getTypeAttributes()
Return the column type attributes for the column, or null if it is not known.
|
int |
getTypeSize()
The size of this type in bytes on the wire.
|
int |
hashCode() |
boolean |
isKey()
Answers if the column part of the key
|
boolean |
isNullable()
Answers if the column can be set to null
|
String |
toString() |
public Type getType()
public String getName()
public boolean isKey()
public boolean isNullable()
public Object getDefaultValue()
public int getDesiredBlockSize()
public ColumnSchema.Encoding getEncoding()
public ColumnSchema.CompressionAlgorithm getCompressionAlgorithm()
public ColumnTypeAttributes getTypeAttributes()
public int getTypeSize()
public String getComment()