@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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
org.apache.kudu.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.
|
org.apache.kudu.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 org.apache.kudu.ColumnSchema.Encoding getEncoding()
public org.apache.kudu.ColumnSchema.CompressionAlgorithm getCompressionAlgorithm()
public ColumnTypeAttributes getTypeAttributes()
public int getTypeSize()
Copyright © 2018 The Apache Software Foundation. All rights reserved.