Interface DateTimeMapFunctions
- All Superinterfaces:
Column<LocalDateTime>
,Comparator<LocalDateTime>
,Iterable<LocalDateTime>
,TemporalColumn<LocalDateTime>
,TemporalMapFunctions<DateTimeColumn,
LocalDateTime>
- All Known Implementing Classes:
DateTimeColumn
-
Method Summary
Modifier and TypeMethodDescriptiondefault DateColumn
date()
Returns a DateColumn containing the date portion of each dateTime in this DateTimeColumndefault IntColumn
default StringColumn
default IntColumn
default IntColumn
default IntColumn
hour()
default StringColumn
Returns a StringColumn with the year and week-of-year derived from this column concatenated into a String that will sort lexicographically in temporal order.default IntColumn
minute()
default IntColumn
default StringColumn
month()
Returns a StringColumn containing the name of the month for each date/time in this columndefault IntColumn
default DateTimeColumn
plusMonths
(long amountToAdd) default DateTimeColumn
plusWeeks
(long amountToAdd) default DateTimeColumn
plusYears
(long amountToAdd) default IntColumn
default TimeColumn
time()
Returns a TimeColumn containing the time portion of each dateTime in this DateTimeColumndefault LongColumn
timeWindow
(ChronoUnit unit, int n) default LongColumn
timeWindow
(ChronoUnit unit, int n, LocalDateTime start) Returns a column containing integers representing the nth group (0-based) that a date falls into.default IntColumn
year()
default StringColumn
yearDay()
Returns a StringColumn with the year and day-of-year derived from this column concatenated into a String that will sort lexicographically in temporal order.default StringColumn
Returns a StringColumn with the year and month from this column concatenated into a String that will sort lexicographically in temporal order.default StringColumn
Returns a StringColumn with the year and quarter from this column concatenated into a String that will sort lexicographically in temporal order.default StringColumn
yearWeek()
Returns a StringColumn with the year and week-of-year derived from this column concatenated into a String that will sort lexicographically in temporal order.Methods inherited from interface tech.tablesaw.columns.Column
allMatch, anyMatch, append, append, append, appendCell, appendCell, appendMissing, appendObj, asBytes, asList, asObjectArray, asSet, asStringColumn, byteSize, clear, columnWidth, contains, copy, count, count, countMissing, countUnique, emptyCopy, equals, filter, first, getString, getUnformattedString, indexOf, inRange, interpolate, isEmpty, isMissing, isMissing, isNotMissing, last, map, map, mapInto, max, max, min, min, name, noneMatch, parser, print, reduce, reduce, removeMissing, rolling, rowComparator, sampleN, sampleX, set, set, set, set, set, set, setMissing, setMissingTo, setName, setParser, size, sortAscending, sortDescending, sorted, subset, summary, title, type, unique, valueHash, where
Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface tech.tablesaw.columns.temporal.TemporalColumn
appendInternal, get, getLongInternal
Methods inherited from interface tech.tablesaw.columns.temporal.TemporalMapFunctions
difference, differenceInDays, differenceInHours, differenceInMilliseconds, differenceInMinutes, differenceInSeconds, differenceInYears, emptyCopy, lag, lead, min, missingValues, plus, plusDays, plusHours, plusMicros, plusMillis, plusMinutes, plusSeconds, temporalColumnName
-
Method Details
-
hour
-
minuteOfDay
-
secondOfDay
-
time
Returns a TimeColumn containing the time portion of each dateTime in this DateTimeColumn -
monthValue
-
month
Returns a StringColumn containing the name of the month for each date/time in this column -
yearQuarter
Returns a StringColumn with the year and quarter from this column concatenated into a String that will sort lexicographically in temporal order.This simplifies the production of plots and tables that aggregate values into standard temporal units (e.g., you want monthly data but your source data is more than a year long and you don't want months from different years aggregated together).
-
yearMonth
Returns a StringColumn with the year and month from this column concatenated into a String that will sort lexicographically in temporal order.This simplifies the production of plots and tables that aggregate values into standard temporal units (e.g., you want monthly data but your source data is more than a year long and you don't want months from different years aggregated together).
-
yearDay
Returns a StringColumn with the year and day-of-year derived from this column concatenated into a String that will sort lexicographically in temporal order.This simplifies the production of plots and tables that aggregate values into standard temporal units (e.g., you want monthly data but your source data is more than a year long and you don't want months from different years aggregated together).
-
hourMinute
Returns a StringColumn with the year and week-of-year derived from this column concatenated into a String that will sort lexicographically in temporal order.This simplifies the production of plots and tables that aggregate values into standard temporal units (e.g., you want monthly data but your source data is more than a year long and you don't want months from different years aggregated together).
-
yearWeek
Returns a StringColumn with the year and week-of-year derived from this column concatenated into a String that will sort lexicographically in temporal order.This simplifies the production of plots and tables that aggregate values into standard temporal units (e.g., you want monthly data but your source data is more than a year long and you don't want months from different years aggregated together).
-
date
Returns a DateColumn containing the date portion of each dateTime in this DateTimeColumn -
year
-
dayOfWeek
-
dayOfWeekValue
-
dayOfYear
-
dayOfMonth
-
timeWindow
Returns a column containing integers representing the nth group (0-based) that a date falls into.Example: When Unit = ChronoUnit.DAY and n = 5, we form 5 day groups. a Date that is 2 days after the start is assigned to the first ("0") group. A day 7 days after the start is assigned to the second ("1") group.
- Parameters:
unit
- A ChronoUnit greater than or equal to a minuten
- The number of units in each group.start
- The starting point of the first group; group boundaries are offsets from this point
-
minute
-
timeWindow
-
plusYears
-
plusMonths
-
plusWeeks
-