Iterable<LocalDateTime>, Column, DateTimeFillers<DateTimeColumn>, DateTimeFilters, DateTimeMapFunctionspublic class DateTimeColumn extends AbstractColumn implements DateTimeMapFunctions, DateTimeFilters, DateTimeFillers<DateTimeColumn>, Iterable<LocalDateTime>
| Modifier and Type | Field | Description |
|---|---|---|
static long |
MISSING_VALUE |
DEFAULT_ARRAY_SIZE| Modifier and Type | Method | Description |
|---|---|---|
DateTimeColumn |
append(LocalDateTime dateTime) |
|
void |
append(Column column) |
|
DateTimeColumn |
appendCell(String stringValue) |
|
DateTimeColumn |
appendInternal(long dateTime) |
|
DateTimeColumn |
appendMissing() |
Appends a missing value appropriate to the column
|
byte[] |
asBytes(int rowNumber) |
Returns the contents of the cell at rowNumber as a byte[]
|
double[] |
asDoubleArray() |
|
long[] |
asEpochMillisArray() |
Returns an array where each entry is the difference, measured in milliseconds,
between the LocalDateTime and midnight, January 1, 1970 UTC.
|
long[] |
asEpochMillisArray(ZoneOffset offset) |
|
long[] |
asEpochSecondArray() |
Returns an array where each entry is the difference, measured in seconds,
between the LocalDateTime and midnight, January 1, 1970 UTC.
|
long[] |
asEpochSecondArray(ZoneOffset offset) |
|
Set<LocalDateTime> |
asSet() |
|
List<LocalDateTime> |
bottom(int n) |
Returns the smallest ("bottom") n values in the column
|
int |
byteSize() |
Returns the width of a cell in this column, in bytes.
|
void |
clear() |
|
boolean |
contains(LocalDateTime dateTime) |
|
long |
convert(String value) |
Returns a PackedDateTime as converted from the given string
|
DateTimeColumn |
copy() |
Returns a deep copy of the receiver
|
int |
countMissing() |
Returns the count of missing values in this column
|
int |
countUnique() |
Returns the count of unique values in this column.
|
static DateTimeColumn |
create(String name) |
|
static DateTimeColumn |
create(String name,
int initialSize) |
|
static DateTimeColumn |
create(String name,
int initialSize,
Locale locale) |
|
static DateTimeColumn |
create(String name,
LocalDateTime[] data) |
|
static DateTimeColumn |
create(String name,
List<LocalDateTime> data) |
|
it.unimi.dsi.fastutil.longs.LongArrayList |
data() |
|
DateTimeColumn |
emptyCopy() |
Returns a copy of the receiver with no data.
|
DateTimeColumn |
emptyCopy(int rowSize) |
Returns an empty copy of the receiver, with its internal storage initialized to the given row size.
|
DateTimeColumn |
fillWith(Iterable<LocalDateTime> iterable) |
|
DateTimeColumn |
fillWith(Supplier<LocalDateTime> supplier) |
|
DateTimeColumn |
fillWith(Iterator<LocalDateTime> iterator) |
|
LocalDateTime |
get(int index) |
|
double |
getDouble(int i) |
Returns a double representation of the value at the given row.
|
long |
getLongInternal(int index) |
|
String |
getString(int row) |
Returns a string representation of the value at the given row.
|
String |
getUnformattedString(int row) |
|
boolean |
isEmpty() |
Returns true if the column has no data
|
boolean |
isMissing(int rowNumber) |
|
Iterator<LocalDateTime> |
iterator() |
Returns an iterator over elements of type
T. |
DateTimeColumn |
lag(int n) |
Returns a column of the same type and size as the receiver, containing the receivers values offset by n.
|
it.unimi.dsi.fastutil.longs.LongIterator |
longIterator() |
|
LocalDateTime |
max() |
|
LocalDateTime |
min() |
|
DateTimeColumn |
removeMissing() |
|
it.unimi.dsi.fastutil.ints.IntComparator |
rowComparator() |
|
DateTimeColumn |
set(int index,
long value) |
|
DateTimeColumn |
set(int index,
LocalDateTime value) |
|
DateTimeColumn |
set(LocalDateTime newValue,
Selection rowSelection) |
Conditionally update this column, replacing current values with newValue for all rows where the current value
matches the selection criteria
|
void |
setFormatter(DateTimeFormatter formatter) |
|
void |
setPrintFormatter(DateTimeFormatter dateTimeFormatter) |
|
void |
setPrintFormatter(DateTimeFormatter dateTimeFormatter,
String missingValueString) |
|
void |
setPrintFormatter(DateTimeColumnFormatter formatter) |
|
int |
size() |
|
void |
sortAscending() |
|
void |
sortDescending() |
|
Table |
summary() |
|
List<LocalDateTime> |
top(int n) |
Returns the largest ("top") n values in the column
|
ColumnType |
type() |
Returns this column's ColumnType
|
DateTimeColumn |
unique() |
Returns a column of the same type as the receiver, containing only the unique values of the receiver.
|
static boolean |
valueIsMissing(long value) |
|
DateTimeColumn |
where(Selection selection) |
columnWidth, name, print, setName, toStringcolumnWidth, create, first, inRange, last, name, print, rolling, rows, sampleN, sampleX, setName, subset, summarizeIf, titleeval, eval, eval, eval, eval, isAfter, isAfter, isAfter, isAfterNoon, isBefore, isBefore, isBefore, isBeforeNoon, isBetweenExcluding, isBetweenExcluding, isBetweenIncluding, isBetweenIncluding, isEqualTo, isEqualTo, isFirstDayOfMonth, isFriday, isInApril, isInAugust, isInDecember, isInFebruary, isInJanuary, isInJuly, isInJune, isInMarch, isInMay, isInNovember, isInOctober, isInQ1, isInQ2, isInQ3, isInQ4, isInSeptember, isInYear, isLastDayOfMonth, isMidnight, isMissing, isMonday, isNoon, isNotEqualTo, isNotEqualTo, isNotMissing, isOnOrAfter, isOnOrAfter, isOnOrAfter, isOnOrBefore, isOnOrBefore, isOnOrBefore, isSaturday, isSunday, isThursday, isTuesday, isWednesdaydate, dayOfMonth, dayOfWeek, dayOfWeekValue, dayOfYear, difference, difference, differenceInDays, differenceInHours, differenceInMilliseconds, differenceInMinutes, differenceInSeconds, differenceInYears, hour, hourMinute, lead, minute, minuteOfDay, month, monthValue, secondOfDay, time, timeWindow, timeWindow, year, yearDay, yearMonth, yearQuarter, yearWeekforEach, spliteratorpublic void setFormatter(DateTimeFormatter formatter)
public static boolean valueIsMissing(long value)
public static DateTimeColumn create(String name)
public static DateTimeColumn create(String name, int initialSize)
public static DateTimeColumn create(String name, int initialSize, Locale locale)
public static DateTimeColumn create(String name, List<LocalDateTime> data)
public static DateTimeColumn create(String name, LocalDateTime[] data)
public DateTimeColumn removeMissing()
removeMissing in interface Columnpublic boolean contains(LocalDateTime dateTime)
public DateTimeColumn where(Selection selection)
public void setPrintFormatter(DateTimeFormatter dateTimeFormatter, String missingValueString)
public void setPrintFormatter(DateTimeFormatter dateTimeFormatter)
public void setPrintFormatter(DateTimeColumnFormatter formatter)
public DateTimeColumn lag(int n)
ColumnFor example if you lag a column containing 2, 3, 4 by 1, you get a column containing NA, 2, 3
lag in interface Columnlag in interface DateTimeMapFunctionspublic DateTimeColumn appendCell(String stringValue)
appendCell in interface ColumnappendCell in class AbstractColumnpublic DateTimeColumn append(LocalDateTime dateTime)
public long convert(String value)
value - A string representation of a timeDateTimeParseException - if no parser can be found for the time format usedpublic int size()
size in interface Columnsize in interface DateTimeFilterspublic it.unimi.dsi.fastutil.longs.LongArrayList data()
data in interface DateTimeFilterspublic ColumnType type()
Columntype in interface Columntype in class AbstractColumnColumnTypepublic DateTimeColumn appendInternal(long dateTime)
public String getString(int row)
Columnpublic String getUnformattedString(int row)
getUnformattedString in interface Columnpublic DateTimeColumn emptyCopy()
Columnpublic DateTimeColumn emptyCopy(int rowSize)
Columnpublic DateTimeColumn copy()
Columnpublic void sortAscending()
sortAscending in interface Columnpublic void sortDescending()
sortDescending in interface Columnpublic int countUnique()
ColumncountUnique in interface Columnpublic DateTimeColumn unique()
Columnpublic boolean isEmpty()
Columnpublic long getLongInternal(int index)
getLongInternal in interface DateTimeFiltersgetLongInternal in interface DateTimeMapFunctionspublic LocalDateTime get(int index)
get in interface DateTimeFiltersget in interface DateTimeMapFunctionspublic it.unimi.dsi.fastutil.ints.IntComparator rowComparator()
rowComparator in interface Columnpublic DateTimeColumn set(LocalDateTime newValue, Selection rowSelection)
Example: myColumn.set(LocalDateTime.now(), myColumn.valueIsMissing()); // no more missing values
public int countMissing()
countMissing in interface Columnpublic long[] asEpochSecondArray()
public long[] asEpochSecondArray(ZoneOffset offset)
public long[] asEpochMillisArray()
public long[] asEpochMillisArray(ZoneOffset offset)
public LocalDateTime max()
public DateTimeColumn appendMissing()
ColumnappendMissing in interface Columnpublic LocalDateTime min()
min in interface DateTimeMapFunctionspublic DateTimeColumn set(int index, long value)
public DateTimeColumn set(int index, LocalDateTime value)
public List<LocalDateTime> top(int n)
n - The maximum number of records to return. The actual number will be smaller if n is greater than the
number of observations in the columnpublic List<LocalDateTime> bottom(int n)
n - The maximum number of records to return. The actual number will be smaller if n is greater than the
number of observations in the columnpublic it.unimi.dsi.fastutil.longs.LongIterator longIterator()
public Set<LocalDateTime> asSet()
public int byteSize()
Columnpublic byte[] asBytes(int rowNumber)
public double getDouble(int i)
Columnpublic double[] asDoubleArray()
asDoubleArray in interface Columnpublic Iterator<LocalDateTime> iterator()
T.iterator in interface Iterable<LocalDateTime>public DateTimeColumn fillWith(Iterator<LocalDateTime> iterator)
fillWith in interface DateTimeFillers<DateTimeColumn>public DateTimeColumn fillWith(Iterable<LocalDateTime> iterable)
fillWith in interface DateTimeFillers<DateTimeColumn>public DateTimeColumn fillWith(Supplier<LocalDateTime> supplier)
fillWith in interface DateTimeFillers<DateTimeColumn>Copyright © 2018. All rights reserved.