本文整理汇总了Java中tech.tablesaw.api.Table.dateColumn方法的典型用法代码示例。如果您正苦于以下问题:Java Table.dateColumn方法的具体用法?Java Table.dateColumn怎么用?Java Table.dateColumn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tech.tablesaw.api.Table
的用法示例。
在下文中一共展示了Table.dateColumn方法的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.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() ");
}
}
示例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_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() ");
}
}
示例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_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() ");
}
}
示例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.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() ");
}
}
示例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.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() ");
}
}
示例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.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() ");
}
}
示例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.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() ");
}
}
示例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.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() ");
}
}
示例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.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() ");
}
}
示例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.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() ");
}
}
示例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.isWednesday();
case LOCAL_DATE_TIME:
DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
return dateTimeColumn.isWednesday();
default:
throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
+ "isWednesday() ");
}
}
示例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.isInYear(year);
case LOCAL_DATE_TIME:
DateTimeColumn dateTimeColumn = (DateTimeColumn) relation.column(columnReference().getColumnName());
return dateTimeColumn.isInYear(year);
default:
throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
+ "isInYear(anInt) ");
}
}
示例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.isInAugust();
case LOCAL_DATE_TIME:
DateTimeColumn dateTimeColumn = relation.dateTimeColumn(name);
return dateTimeColumn.isInAugust();
default:
throw new UnsupportedOperationException("Columns of type " + type.name() + " do not support the operation "
+ "isInAugust() ");
}
}
示例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.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() ");
}
}
示例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.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() ");
}
}