当前位置: 首页>>代码示例>>Java>>正文


Java Column类代码示例

本文整理汇总了Java中org.onosproject.ovsdb.rfc.notation.Column的典型用法代码示例。如果您正苦于以下问题:Java Column类的具体用法?Java Column怎么用?Java Column使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Column类属于org.onosproject.ovsdb.rfc.notation包,在下文中一共展示了Column类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createRow

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Convert Operation JsonNode into Row.
 * @param tableSchema TableSchema entity
 * @param rowNode JsonNode
 * @return Row
 */
private static Row createRow(TableSchema tableSchema, Uuid uuid, JsonNode rowNode) {
    if (tableSchema == null) {
        return null;
    }
    Map<String, Column> columns = Maps.newHashMap();
    Iterator<Map.Entry<String, JsonNode>> rowIter = rowNode.fields();
    while (rowIter.hasNext()) {
        Map.Entry<String, JsonNode> next = rowIter.next();
        ColumnSchema columnSchema = tableSchema.getColumnSchema(next.getKey());
        if (columnSchema != null) {
            String columnName = columnSchema.name();
            Object obj = TransValueUtil.getValueFromJson(next.getValue(), columnSchema.type());
            columns.put(columnName, new Column(columnName, obj));
        }
    }
    return new Row(tableSchema.name(), uuid, columns);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:24,代码来源:FromJsonUtil.java

示例2: generateOperationRow

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Row entity convert into the row format of insert operation. Refer to RFC
 * 7047 Section 5.2.
 * @param row Row entity
 */
private void generateOperationRow(Row row) {
    Collection<Column> columns = row.getColumns();
    for (Column column : columns) {
        String columnName = column.columnName();
        Object value = column.data();
        Object formatValue = TransValueUtil.getFormatData(value);
        this.row.put(columnName, formatValue);
    }
}
 
开发者ID:shlee89,项目名称:athena,代码行数:15,代码来源:Insert.java

示例3: generateOperationRow

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Row entity convert into the row format of update operation. Refer to RFC
 * 7047 Section 5.2.
 * @param row Row entity
 */
private void generateOperationRow(Row row) {
    Collection<Column> columns = row.getColumns();
    for (Column column : columns) {
        String columnName = column.columnName();
        Object value = column.data();
        Object formatValue = TransValueUtil.getFormatData(value);
        this.row.put(columnName, formatValue);
    }
}
 
开发者ID:shlee89,项目名称:athena,代码行数:15,代码来源:Update.java

示例4: getColumnHandler

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
@Override
public Column getColumnHandler(ColumnDescription columnDesc) {
    if (!isValid()) {
        return null;
    }
    String columnName = columnDesc.name();
    checkColumnSchemaVersion(columnDesc);
    ColumnSchema columnSchema = getColumnSchema(columnName);
    if (row == null) {
        return null;
    }
    return row.getColumn(columnSchema.name());
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:AbstractOvsdbTableService.java

示例5: setDataHandler

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
@Override
public void setDataHandler(ColumnDescription columnDesc, Object obj) {
    if (!isValid()) {
        return;
    }
    String columnName = columnDesc.name();
    checkColumnSchemaVersion(columnDesc);
    ColumnSchema columnSchema = getColumnSchema(columnName);
    Column column = new Column(columnSchema.name(), obj);
    row.addColumn(columnName, column);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:12,代码来源:AbstractOvsdbTableService.java

示例6: getTableUuidColumn

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
@Override
public Column getTableUuidColumn() {
    if (!isValid()) {
        return null;
    }
    ColumnDescription columnDesc = new ColumnDescription("_uuid", "getTableUuidColumn");
    return getColumnHandler(columnDesc);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:9,代码来源:AbstractOvsdbTableService.java

示例7: getStatisticsColumn

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Get the Column entity which column name is "statistics" from the Row
 * entity of attributes.
 * @return the Column entity which column name is "statistics"
 */
public Column getStatisticsColumn() {
    ColumnDescription columndesc = new ColumnDescription(
                                                         OpenVSwitchColumn.STATISTICS
                                                                 .columnName(),
                                                         "getStatisticsColumn",
                                                         VersionNum.VERSION100);
    return (Column) super.getColumnHandler(columndesc);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:OpenVSwitch.java

示例8: getExternalIdsColumn

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Get the Column entity which column name is "external_ids" from the Row
 * entity of attributes.
 * @return the Column entity which column name is "external_ids"
 */
public Column getExternalIdsColumn() {
    ColumnDescription columndesc = new ColumnDescription(
                                                         OpenVSwitchColumn.EXTERNALIDS
                                                                 .columnName(),
                                                         "getExternalIdsColumn",
                                                         VersionNum.VERSION100);
    return (Column) super.getColumnHandler(columndesc);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:OpenVSwitch.java

示例9: getExternalIdsColumn

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Get the Column entity which column name is "external_ids" from the Row
 * entity of attributes.
 * @return the Column entity which column name is "external_ids"
 */
public Column getExternalIdsColumn() {
    ColumnDescription columndesc = new ColumnDescription(
                                                         BridgeColumn.EXTERNALIDS
                                                                 .columnName(),
                                                         "getExternalIdsColumn",
                                                         VersionNum.VERSION100);
    return (Column) super.getColumnHandler(columndesc);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:Bridge.java

示例10: getStatusColumn

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Get the Column entity which column name is "status" from the Row entity
 * of attributes.
 * @return the Column entity which column name is "status"
 */
public Column getStatusColumn() {
    ColumnDescription columndesc = new ColumnDescription(
                                                         BridgeColumn.STATUS
                                                                 .columnName(),
                                                         "getStatusColumn",
                                                         VersionNum.VERSION620);
    return (Column) super.getColumnHandler(columndesc);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:Bridge.java

示例11: getInactivityProbeColumn

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Get the Column entity which column name is "inactivity_probe" from the
 * Row entity of attributes.
 * @return the Column entity which column name is "inactivity_probe"
 */
public Column getInactivityProbeColumn() {
    ColumnDescription columndesc = new ColumnDescription(ManagerColumn.INACTIVITYPROBE.columnName(),
                                                         "getInactivityProbeColumn",
                                                         VersionNum.VERSION100);
    return (Column) super.getColumnHandler(columndesc);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:12,代码来源:Manager.java

示例12: getManagerOptionsColumn

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Get the Column entity which column name is "manager_options" from the Row
 * entity of attributes.
 * @return the Column entity which column name is "manager_options"
 */
public Column getManagerOptionsColumn() {
    ColumnDescription columndesc = new ColumnDescription(
                                                         OpenVSwitchColumn.MANAGEROPTIONS
                                                                 .columnName(),
                                                         "getManagerOptionsColumn",
                                                         VersionNum.VERSION100);
    return (Column) super.getDataHandler(columndesc);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:OpenVSwitch.java

示例13: getNameColumn

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Get the Column entity which column name is "name" from the Row entity of
 * attributes.
 * @return the Column entity which column name is "name"
 */
public Column getNameColumn() {
    ColumnDescription columndesc = new ColumnDescription(
                                                         InterfaceColumn.NAME
                                                                 .columnName(),
                                                         "getNameColumn",
                                                         VersionNum.VERSION100);
    return (Column) super.getColumnHandler(columndesc);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:Interface.java

示例14: getIngressPolicingRateColumn

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Get the Column entity which column name is "ingress_policing_rate" from
 * the Row entity of attributes.
 * @return the Column entity which column name is "ingress_policing_rate"
 */
public Column getIngressPolicingRateColumn() {
    ColumnDescription columndesc = new ColumnDescription(
                                                         InterfaceColumn.INGRESSPOLICINGRATE
                                                                 .columnName(),
                                                         "getIngressPolicingRateColumn",
                                                         VersionNum.VERSION100);
    return (Column) super.getColumnHandler(columndesc);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:Interface.java

示例15: getNetflowColumn

import org.onosproject.ovsdb.rfc.notation.Column; //导入依赖的package包/类
/**
 * Get the Column entity which column name is "netflow" from the Row entity
 * of attributes.
 * @return the Column entity which column name is "netflow"
 */
public Column getNetflowColumn() {
    ColumnDescription columndesc = new ColumnDescription(
                                                         BridgeColumn.NETFLOW
                                                                 .columnName(),
                                                         "getNetflowColumn",
                                                         VersionNum.VERSION100);
    return (Column) super.getColumnHandler(columndesc);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:Bridge.java


注:本文中的org.onosproject.ovsdb.rfc.notation.Column类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。