Detailed Description
Column metadata for ndb columns.
Definition at line 25 of file Column.java.
Member Function Documentation
String com.mysql.clusterj.core.store.Column.decode |
( |
byte[] |
bytes | ) |
|
Decode a byte[] into a String using this column's charset.
- Parameters
-
bytes | the byte[] from the database |
- Returns
- the decoded String
byte [] com.mysql.clusterj.core.store.Column.encode |
( |
String |
string | ) |
|
Encode a String into a byte[] for storage or comparison.
- Parameters
-
- Returns
- the encoded byte[]
String com.mysql.clusterj.core.store.Column.getCharsetName |
( |
| ) |
|
Get the Charset name of the column. This is the value of the CHARACTER SET parameter in the column definition, or if not specified, the value of the DEFAULT CHARACTER SET parameter in the table definition.
- Returns
- the Charset name
int com.mysql.clusterj.core.store.Column.getCharsetNumber |
( |
| ) |
|
The charset number.
- Returns
- the Charset number
int com.mysql.clusterj.core.store.Column.getColumnId |
( |
| ) |
|
The column ID, used for scans to compare column values.
- Returns
- the column id
int com.mysql.clusterj.core.store.Column.getColumnSpace |
( |
| ) |
|
The space needed to retrieve the value into memory, including the length byte or bytes at the beginning of the field.
- Returns
- the space required by the column
int com.mysql.clusterj.core.store.Column.getLength |
( |
| ) |
|
For character columns, get the maximum length in bytes that can be stored in the column, excluding the prefix, after conversion via the charset.
String com.mysql.clusterj.core.store.Column.getName |
( |
| ) |
|
Get the name of the column.
- Returns
- the name
boolean com.mysql.clusterj.core.store.Column.getNullable |
( |
| ) |
|
Is this column nullable?
- Returns
- true if the column is nullable
int com.mysql.clusterj.core.store.Column.getPrecision |
( |
| ) |
|
The precision of a decimal column (number of decimal digits before plus after the decimal point).
- Returns
- the precision
int com.mysql.clusterj.core.store.Column.getPrefixLength |
( |
| ) |
|
For variable size columns, get the length of the prefix (one or two bytes) that specifies the length of the column data.
- Returns
- the prefix length, either one or two bytes for variable sized columns, zero otherwise
int com.mysql.clusterj.core.store.Column.getScale |
( |
| ) |
|
The scale of a decimal column (the number of decimal digits after the decimal point).
- Returns
- the scale
ColumnType com.mysql.clusterj.core.store.Column.getType |
( |
| ) |
|
Get the store type of the column.
- Returns
- the store type
boolean com.mysql.clusterj.core.store.Column.isPartitionKey |
( |
| ) |
|
Is this column a partition key column?
- Returns
- true if this column is a partition key column
boolean com.mysql.clusterj.core.store.Column.isPrimaryKey |
( |
| ) |
|
Is this column a primary key column?
- Returns
- true if this column is a primary key column
The documentation for this interface was generated from the following file:
- storage/ndb/clusterj/clusterj-core/src/main/java/com/mysql/clusterj/core/store/Column.java