public interface DateMapFunctions extends Column<LocalDate>
Modifier and Type | Method and Description |
---|---|
default DateTimeColumn |
atStartOfDay() |
default DateTimeColumn |
atTime(LocalTime time)
Returns a DateTime column where each value consists of the dates from this column combined with
the corresponding times from the other column
|
default 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 column
|
static String |
dateColumnName(Column<LocalDate> column1,
int value,
TemporalUnit unit) |
default IntColumn |
dayOfMonth() |
default StringColumn |
dayOfWeek() |
default IntColumn |
dayOfWeekValue() |
default IntColumn |
dayOfYear() |
default IntColumn |
daysUntil(DateColumn column2) |
LocalDate |
get(int index) |
int |
getIntInternal(int r) |
LocalDate |
max() |
LocalDate |
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 |
monthValue() |
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 argument
|
default 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 |
yearMonth()
Returns a StringColumn with the year and month from this column concatenated into a String that
will sort lexicographically in temporal order.
|
default StringColumn |
yearQuarter()
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.
|
allMatch, anyMatch, append, append, append, appendCell, appendCell, appendMissing, appendObj, asBytes, asList, asObjectArray, asStringColumn, byteSize, clear, columnWidth, contains, copy, count, count, countMissing, countUnique, emptyCopy, emptyCopy, filter, first, getString, getUnformattedString, inRange, interpolate, isEmpty, isMissing, isMissing, isNotMissing, lag, last, lead, map, map, mapInto, max, max, min, min, name, noneMatch, print, reduce, reduce, removeMissing, rolling, rowComparator, sampleN, sampleX, set, set, set, set, set, setMissing, setMissingTo, setName, size, sortAscending, sortDescending, sorted, subset, summary, title, type, unique, where
forEach, iterator, spliterator
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
static String dateColumnName(Column<LocalDate> column1, int value, TemporalUnit unit)
default IntColumn daysUntil(DateColumn column2)
default IntColumn weeksUntil(DateColumn column2)
default IntColumn monthsUntil(DateColumn column2)
default IntColumn yearsUntil(DateColumn column2)
default IntColumn dayOfMonth()
default IntColumn dayOfYear()
default IntColumn monthValue()
default StringColumn month()
default IntColumn year()
default StringColumn yearQuarter()
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).
default StringColumn yearMonth()
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).
default StringColumn yearDay()
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).
default StringColumn yearWeek()
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).
default IntColumn dayOfWeekValue()
default StringColumn dayOfWeek()
default IntColumn timeUntil(DateColumn end, ChronoUnit unit)
Missing values in either result in a Missing Value for the new column
default DateColumn plusDays(int days)
default DateColumn plusWeeks(int weeks)
default DateColumn plusYears(int years)
default DateColumn plusMonths(int months)
default DateColumn minusDays(int days)
default DateColumn minusWeeks(int weeks)
default DateColumn minusYears(int years)
default DateColumn minusMonths(int months)
default IntColumn timeWindow(ChronoUnit unit, int n, LocalDate start)
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.
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
pointdefault IntColumn timeWindow(ChronoUnit unit, int n)
default DateColumn plus(int value, ChronoUnit unit)
default DateColumn minus(int value, ChronoUnit unit)
default DateTimeColumn atStartOfDay()
default DateTimeColumn atTime(LocalTime time)
default DateTimeColumn atTime(TimeColumn timeColumn)
int getIntInternal(int r)
LocalDate min()
LocalDate max()
Copyright © 2020. All rights reserved.