Column
DateColumn
public interface DateMapFunctions extends Column
Modifier and Type | Method | 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 column1,
int value,
TemporalUnit unit) |
|
default NumberColumn |
dayOfMonth() |
|
default StringColumn |
dayOfWeek() |
|
default NumberColumn |
dayOfWeekValue() |
|
default NumberColumn |
dayOfYear() |
|
default NumberColumn |
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 NumberColumn |
monthsUntil(DateColumn column2) |
|
default NumberColumn |
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 NumberColumn |
timeUntil(DateColumn end,
ChronoUnit unit) |
Calculates the temporal difference between each element of the receiver and the respective element of the
argument
|
default NumberColumn |
timeWindow(ChronoUnit unit,
int n) |
|
default NumberColumn |
timeWindow(ChronoUnit unit,
int n,
LocalDate start) |
Returns a column containing integers representing the nth group (0-based) that a date falls into.
|
default NumberColumn |
weeksUntil(DateColumn column2) |
|
default NumberColumn |
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 NumberColumn |
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.
|
append, appendCell, appendMissing, asBytes, asDoubleArray, asObjectArray, byteSize, clear, columnWidth, copy, countMissing, countUnique, create, emptyCopy, emptyCopy, first, getDouble, getString, getUnformattedString, inRange, isEmpty, isMissing, isMissing, isNotMissing, lag, last, lead, name, print, removeMissing, rolling, rowComparator, rows, sampleN, sampleX, setName, size, sortAscending, sortDescending, subset, summarizeIf, summary, title, type, unique, where
static String dateColumnName(Column column1, int value, TemporalUnit unit)
default NumberColumn daysUntil(DateColumn column2)
default NumberColumn weeksUntil(DateColumn column2)
default NumberColumn monthsUntil(DateColumn column2)
default NumberColumn yearsUntil(DateColumn column2)
default NumberColumn dayOfMonth()
default NumberColumn dayOfYear()
default NumberColumn monthValue()
default StringColumn month()
default NumberColumn 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 NumberColumn dayOfWeekValue()
default StringColumn dayOfWeek()
default NumberColumn 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 NumberColumn timeWindow(ChronoUnit unit, int n, LocalDate start)
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 NumberColumn 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 get(int index)
LocalDate min()
LocalDate max()
Copyright © 2018. All rights reserved.