Interface DateMapFunctions
- All Known Implementing Classes:
DateColumn
-
Method Summary
Modifier and TypeMethodDescriptiondefault DateTimeColumn
default DateTimeColumn
Returns a DateTime column where each value consists of the dates from this column combined with the corresponding times from the other columndefault DateTimeColumn
atTime
(TimeColumn timeColumn) Returns a DateTime column where each value consists of the dates from this column combined with the corresponding times from the other columnstatic String
dateColumnName
(Column<LocalDate> column1, int value, TemporalUnit unit) default IntColumn
default StringColumn
default IntColumn
default IntColumn
default IntColumn
daysUntil
(DateColumn column2) get
(int index) Returns the value at the given zero-based indexint
getIntInternal
(int r) max()
min()
default DateColumn
minus
(int value, ChronoUnit unit) default DateColumn
minusDays
(int days) default DateColumn
minusMonths
(int months) default DateColumn
minusWeeks
(int weeks) default DateColumn
minusYears
(int years) default StringColumn
month()
default IntColumn
monthsUntil
(DateColumn column2) default IntColumn
default DateColumn
plus
(int value, ChronoUnit unit) default DateColumn
plusDays
(int days) default DateColumn
plusMonths
(int months) default DateColumn
plusWeeks
(int weeks) default DateColumn
plusYears
(int years) default IntColumn
timeUntil
(DateColumn end, ChronoUnit unit) Calculates the temporal difference between each element of the receiver and the respective element of the argumentdefault IntColumn
timeWindow
(ChronoUnit unit, int n) default IntColumn
timeWindow
(ChronoUnit unit, int n, LocalDate start) Returns a column containing integers representing the nth group (0-based) that a date falls into.default IntColumn
weeksUntil
(DateColumn column2) 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 IntColumn
yearsUntil
(DateColumn column2) 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, emptyCopy, equals, filter, first, getString, getUnformattedString, indexOf, inRange, interpolate, isEmpty, isMissing, isMissing, isNotMissing, lag, last, lead, 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
-
Method Details
-
dateColumnName
-
daysUntil
-
weeksUntil
-
monthsUntil
-
yearsUntil
-
dayOfMonth
-
dayOfYear
-
monthValue
-
month
-
year
-
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).
-
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).
-
dayOfWeekValue
-
dayOfWeek
-
timeUntil
Calculates the temporal difference between each element of the receiver and the respective element of the argumentMissing values in either result in a Missing Value for the new column
-
plusDays
-
plusWeeks
-
plusYears
-
plusMonths
-
minusDays
-
minusWeeks
-
minusYears
-
minusMonths
-
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 dayn
- The number of units in each group.start
- The starting point of the first group; group boundaries are offsets from this point
-
timeWindow
-
plus
-
minus
-
atStartOfDay
-
atTime
Returns a DateTime column where each value consists of the dates from this column combined with the corresponding times from the other column -
atTime
Returns a DateTime column where each value consists of the dates from this column combined with the corresponding times from the other column -
getIntInternal
int getIntInternal(int r) -
get
Description copied from interface:Column
Returns the value at the given zero-based index -
min
LocalDate min() -
max
LocalDate max()
-