public interface DateTimeMapFunctions extends Column<LocalDateTime>
Modifier and Type | Method and Description |
---|---|
default DateColumn |
date()
Returns a DateColumn containing the date portion of each dateTime in this DateTimeColumn
|
static String |
dateTimeColumnName(Column<LocalDateTime> column1,
long value,
TemporalUnit unit) |
default IntColumn |
dayOfMonth() |
default StringColumn |
dayOfWeek() |
default IntColumn |
dayOfWeekValue() |
default IntColumn |
dayOfYear() |
default LongColumn |
difference(DateTimeColumn column2,
ChronoUnit unit) |
default LongColumn |
differenceInDays(DateTimeColumn column2) |
default LongColumn |
differenceInHours(DateTimeColumn column2) |
default LongColumn |
differenceInMilliseconds(DateTimeColumn column2) |
default LongColumn |
differenceInMinutes(DateTimeColumn column2) |
default LongColumn |
differenceInSeconds(DateTimeColumn column2) |
default LongColumn |
differenceInYears(DateTimeColumn column2) |
LocalDateTime |
get(int r) |
long |
getLongInternal(int r) |
default IntColumn |
hour() |
default StringColumn |
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.
|
DateTimeColumn |
lag(int n)
Returns a column of the same type and size as the receiver, containing the receivers values offset by n.
|
default DateTimeColumn |
lead(int n)
Returns a column of the same type as the receiver, containing the receivers values offset -n
For example if you lead a column containing 2, 3, 4 by 1, you get a column containing 3, 4, NA.
|
LocalDateTime |
min() |
default IntColumn |
minute() |
default IntColumn |
minuteOfDay() |
default BooleanColumn |
missingValues() |
default StringColumn |
month()
Returns a StringColumn containing the name of the month for each date/time in this column
|
default IntColumn |
monthValue() |
default DateTimeColumn |
plus(long amountToAdd,
ChronoUnit unit) |
default DateTimeColumn |
plusDays(long amountToAdd) |
default DateTimeColumn |
plusHours(long amountToAdd) |
default DateTimeColumn |
plusMicros(long amountToAdd) |
default DateTimeColumn |
plusMillis(long amountToAdd) |
default DateTimeColumn |
plusMinutes(long amountToAdd) |
default DateTimeColumn |
plusMonths(long amountToAdd) |
default DateTimeColumn |
plusSeconds(long amountToAdd) |
default DateTimeColumn |
plusWeeks(long amountToAdd) |
default DateTimeColumn |
plusYears(long amountToAdd) |
default IntColumn |
secondOfDay() |
default TimeColumn |
time()
Returns a TimeColumn containing the time portion of each dateTime in this DateTimeColumn
|
default 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 |
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 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, isEmpty, isMissing, isMissing, isNotMissing, last, map, mapInto, max, max, min, min, name, noneMatch, print, reduce, reduce, removeMissing, rolling, rowComparator, sampleN, sampleX, set, set, set, set, setMissing, 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
default LongColumn differenceInMilliseconds(DateTimeColumn column2)
default LongColumn differenceInSeconds(DateTimeColumn column2)
default LongColumn differenceInMinutes(DateTimeColumn column2)
default LongColumn differenceInHours(DateTimeColumn column2)
default LongColumn differenceInDays(DateTimeColumn column2)
default LongColumn differenceInYears(DateTimeColumn column2)
default LongColumn difference(DateTimeColumn column2, ChronoUnit unit)
default IntColumn hour()
default IntColumn minuteOfDay()
default IntColumn secondOfDay()
default DateTimeColumn lead(int n)
Column
lead
in interface Column<LocalDateTime>
DateTimeColumn lag(int n)
Column
For example if you lag a column containing 2, 3, 4 by 1, you get a column containing NA, 2, 3
lag
in interface Column<LocalDateTime>
default TimeColumn time()
default IntColumn monthValue()
default StringColumn month()
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 hourMinute()
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 DateTimeColumn plus(long amountToAdd, ChronoUnit unit)
default DateTimeColumn plusYears(long amountToAdd)
default DateTimeColumn plusMonths(long amountToAdd)
default DateTimeColumn plusWeeks(long amountToAdd)
default DateTimeColumn plusDays(long amountToAdd)
default DateTimeColumn plusHours(long amountToAdd)
default DateTimeColumn plusMinutes(long amountToAdd)
default DateTimeColumn plusSeconds(long amountToAdd)
default DateTimeColumn plusMillis(long amountToAdd)
default DateTimeColumn plusMicros(long amountToAdd)
default DateColumn date()
default IntColumn year()
default BooleanColumn missingValues()
default StringColumn dayOfWeek()
default IntColumn dayOfWeekValue()
default IntColumn dayOfYear()
default IntColumn dayOfMonth()
default LongColumn timeWindow(ChronoUnit unit, int n, LocalDateTime start)
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 pointdefault IntColumn minute()
default LongColumn timeWindow(ChronoUnit unit, int n)
LocalDateTime get(int r)
get
in interface Column<LocalDateTime>
long getLongInternal(int r)
LocalDateTime min()
static String dateTimeColumnName(Column<LocalDateTime> column1, long value, TemporalUnit unit)
Copyright © 2019. All rights reserved.