public interface ColumnEntity
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ColumnEntity.ColumnEntityProvider
A provider of
ColumnEntity where it will return from the column entity name. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Column column)
Appends the specified column to the end of this list
|
void |
add(String name,
Object value)
add a column within
ColumnEntity |
void |
add(String name,
Value value)
add a column within
ColumnEntity |
void |
addAll(List<Column> columns)
Appends all of the columns in the column family to the end of this list.
|
void |
clear()
Removes all Columns
|
boolean |
contains(String columnName)
Returns true if this ColumnEntity contains a column whose the name is informed
|
ColumnEntity |
copy()
make copy of itself
|
Optional<Column> |
find(String columnName)
Find column a column from columnName
|
Set<String> |
getColumnNames()
Returns a Set view of the names of column contained in Column Entity
|
List<Column> |
getColumns()
Returns all columns from this Column Family
|
String |
getName()
Column Family's name
|
Collection<Value> |
getValues()
Returns a Collection view of the values contained in this ColumnEntity.
|
boolean |
isEmpty()
Returns true if the number of columns is zero otherwise false.
|
static ColumnEntity |
of(String name)
Creates a column family instance
|
static ColumnEntity |
of(String name,
List<Column> columns)
Creates a column family instance
|
boolean |
remove(String name)
Remove a column whose name is informed in parameter.
|
int |
size()
Returns the number of elements in this list.
|
Map<String,Object> |
toMap()
Converts the columns to a Map where:
the key is the name the column
The value is the
Value.get() of the map |
static ColumnEntity of(String name)
name - a name to column familystatic ColumnEntity of(String name, List<Column> columns)
name - a name to column familycolumns - - columnsNullPointerException - when either name or columns are nullvoid addAll(List<Column> columns)
columns - - columns to be addedNullPointerException - when columns is nullvoid add(Column column)
column - - column to be addedNullPointerException - when column is nullvoid add(String name, Object value)
ColumnEntityname - a name of the columnvalue - the information of the columnUnsupportedOperationException - when this method is not supportedNullPointerException - when either name or value are nullvoid add(String name, Value value)
ColumnEntityname - a name of the columnvalue - the information of the columnUnsupportedOperationException - when this method is not supportedNullPointerException - when either name or value are nullMap<String,Object> toMap()
Value.get() of the mapList<Column> getColumns()
String getName()
boolean remove(String name)
name - a column nameNullPointerException - when column is nullOptional<Column> find(String columnName)
columnName - a column nameOptional instance with the resultNullPointerException - when columnName is nullint size()
boolean isEmpty()
getColumns()ColumnEntity copy()
Set<String> getColumnNames()
Collection<Value> getValues()
boolean contains(String columnName)
columnName - the column namevoid clear()
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.