public abstract class TableSchema<E extends TableSchema<E>> extends Object
Modifier | Constructor and Description |
---|---|
|
TableSchema() |
protected |
TableSchema(String name) |
|
TableSchema(String name,
Map<String,ColumnSchema> columns) |
Modifier and Type | Method and Description |
---|---|
<E extends TableSchema<E>> |
as(Class<E> clazz) |
ColumnSchema |
column(String column) |
<D> ColumnSchema<E,D> |
column(String column,
Class<D> type) |
Row<E> |
createRow(com.fasterxml.jackson.databind.node.ObjectNode rowNode) |
List<Row<E>> |
createRows(com.fasterxml.jackson.databind.JsonNode rowsNode) |
Set<String> |
getColumns() |
Map<String,ColumnSchema> |
getColumnSchemas() |
ColumnType |
getColumnType(String column) |
String |
getName() |
boolean |
hasColumn(String column) |
Insert<E> |
insert() |
<D> ColumnSchema<E,Set<D>> |
multiValuedColumn(String column,
Class<D> type) |
<K,V> ColumnSchema<E,Map<K,V>> |
multiValuedColumn(String column,
Class<K> keyType,
Class<V> valueType) |
void |
populateInternallyGeneratedColumns() |
protected void |
setColumns(Map<String,ColumnSchema> columns) |
protected void |
setName(String name) |
TableUpdate<E> |
updatesFromJson(com.fasterxml.jackson.databind.JsonNode value) |
public TableSchema()
protected TableSchema(String name)
public TableSchema(String name, Map<String,ColumnSchema> columns)
public Map<String,ColumnSchema> getColumnSchemas()
public boolean hasColumn(String column)
public ColumnType getColumnType(String column)
public <E extends TableSchema<E>> E as(Class<E> clazz)
public <D> ColumnSchema<E,Set<D>> multiValuedColumn(String column, Class<D> type)
public <K,V> ColumnSchema<E,Map<K,V>> multiValuedColumn(String column, Class<K> keyType, Class<V> valueType)
public <D> ColumnSchema<E,D> column(String column, Class<D> type)
public ColumnSchema column(String column)
public String getName()
protected void setName(String name)
protected void setColumns(Map<String,ColumnSchema> columns)
public TableUpdate<E> updatesFromJson(com.fasterxml.jackson.databind.JsonNode value)
public void populateInternallyGeneratedColumns()
Copyright © 2018 OpenDaylight. All rights reserved.