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


Java Table.dateTimeColumn方法代码示例

本文整理汇总了Java中tech.tablesaw.api.Table.dateTimeColumn方法的典型用法代码示例。如果您正苦于以下问题:Java Table.dateTimeColumn方法的具体用法?Java Table.dateTimeColumn怎么用?Java Table.dateTimeColumn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在tech.tablesaw.api.Table的用法示例。


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

示例1: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isInNovember();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isInNovember();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isInNovember() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsInNovember.java

示例2: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {

    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_TIME:
            TimeColumn timeColumn = relation.timeColumn(name);
            return timeColumn.isBeforeNoon();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isBeforeNoon();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isBeforeNoon() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:19,代码来源:IsBeforeNoon.java

示例3: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {

    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_TIME:
            TimeColumn timeColumn = relation.timeColumn(name);
            return timeColumn.isNoon();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isNoon();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isNoon() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:19,代码来源:IsNoon.java

示例4: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {

    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isFriday();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isFriday();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isFriday() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:19,代码来源:IsFriday.java

示例5: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isInQ3();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isInQ3();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isInQ3() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsInQ3.java

示例6: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isSunday();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isSunday();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isSunday() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsSunday.java

示例7: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {

    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isFirstDayOfMonth();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isFirstDayOfMonth();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isFirstDayOfTheMonth() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:19,代码来源:IsFirstDayOfTheMonth.java

示例8: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isMonday();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isMonday();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isMonday() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsMonday.java

示例9: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isInQ2();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isInQ2();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isInQ2() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsInQ2.java

示例10: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isThursday();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isThursday();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isThursday() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsThursday.java

示例11: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isInJanuary();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isInJanuary();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isInJanuary() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsInJanuary.java

示例12: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isInQ1();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isInQ1();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isInQ1() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsInQ1.java

示例13: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isInJuly();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isInJuly();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isInJuly() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsInJuly.java

示例14: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isSaturday();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isSaturday();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isSaturday() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsSaturday.java

示例15: apply

import tech.tablesaw.api.Table; //导入方法依赖的package包/类
@Override
public Selection apply(Table relation) {
    String name = columnReference().getColumnName();
    Column column = relation.column(name);
    ColumnType type = column.type();
    switch (type) {
        case LOCAL_DATE:
            DateColumn dateColumn = relation.dateColumn(name);
            return dateColumn.isTuesday();
        case LOCAL_DATE_TIME:
            DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
            return dateTimeColumn.isTuesday();
        default:
            throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
                    + "isTuesday() ");
    }
}
 
开发者ID:jtablesaw,项目名称:tablesaw,代码行数:18,代码来源:IsTuesday.java


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