public abstract class AbstractColumn<T> extends Object implements Column<T>
Column
interfaceModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ARRAY_SIZE |
Constructor and Description |
---|
AbstractColumn(ColumnType type,
String name) |
Modifier and Type | Method and Description |
---|---|
StringColumn |
asStringColumn() |
abstract Column<T> |
emptyCopy()
Returns a copy of the receiver with no data.
|
BooleanColumn |
mapToBooleanColumn(String name,
Function<? super T,? extends Boolean> function)
Maps the function across all rows, appending the results to a new BooleanColumn.
|
DateColumn |
mapToDateColumn(String name,
Function<? super T,? extends LocalDate> function)
Maps the function across all rows, appending the results to a new DateColumn.
|
DateTimeColumn |
mapToDateTimeColumn(String name,
Function<? super T,? extends LocalDateTime> function)
Maps the function across all rows, appending the results to a new DateTimeColumn.
|
DoubleColumn |
mapToDoubleColumn(String name,
Function<? super T,? extends Double> function)
Maps the function across all rows, appending the results to a new DoubleColumn.
|
FloatColumn |
mapToFloatColumn(String name,
Function<? super T,? extends Float> function)
Maps the function across all rows, appending the results to a new FloatColumn.
|
InstantColumn |
mapToInstantColumn(String name,
Function<? super T,? extends Instant> function)
Maps the function across all rows, appending the results to a new InstantColumn.
|
IntColumn |
mapToIntColumn(String name,
Function<? super T,? extends Integer> function)
Maps the function across all rows, appending the results to a new IntColumn.
|
LongColumn |
mapToLongColumn(String name,
Function<? super T,? extends Long> function)
Maps the function across all rows, appending the results to a new LongColumn.
|
ShortColumn |
mapToShortColumn(String name,
Function<? super T,? extends Short> function)
Maps the function across all rows, appending the results to a new ShortColumn.
|
StringColumn |
mapToStringColumn(String name,
Function<? super T,? extends String> function)
Maps the function across all rows, appending the results to a new StringColumn.
|
TextColumn |
mapToTextColumn(String name,
Function<? super T,? extends String> function)
Maps the function across all rows, appending the results to a new TextColumn.
|
TimeColumn |
mapToTimeColumn(String name,
Function<? super T,? extends LocalTime> function)
Maps the function across all rows, appending the results to a new TimeColumn.
|
String |
name()
Returns the column's name.
|
Column<T> |
setName(String name)
Sets the columns name to the given string
|
String |
toString() |
ColumnType |
type()
Returns this column's ColumnType
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allMatch, anyMatch, append, append, append, appendCell, appendCell, appendMissing, appendObj, asBytes, asList, asObjectArray, byteSize, clear, columnWidth, contains, copy, count, count, countMissing, countUnique, emptyCopy, filter, first, get, getString, getUnformattedString, inRange, isEmpty, isMissing, isMissing, isNotMissing, lag, last, lead, map, mapInto, max, max, min, min, noneMatch, print, reduce, reduce, removeMissing, rolling, rowComparator, sampleN, sampleX, set, set, set, set, set, setMissing, size, sortAscending, sortDescending, sorted, subset, summary, title, unique, where
forEach, iterator, spliterator
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final int DEFAULT_ARRAY_SIZE
public AbstractColumn(ColumnType type, String name)
public Column<T> setName(String name)
Column
public ColumnType type()
Column
type
in interface Column<T>
ColumnType
public abstract Column<T> emptyCopy()
Column
public StringColumn asStringColumn()
asStringColumn
in interface Column<T>
public BooleanColumn mapToBooleanColumn(String name, Function<? super T,? extends Boolean> function)
name
- of the new column.function
- to map current column into BooleanColumn.public DateColumn mapToDateColumn(String name, Function<? super T,? extends LocalDate> function)
name
- of the new column.function
- to map current column into DateColumn.public DateTimeColumn mapToDateTimeColumn(String name, Function<? super T,? extends LocalDateTime> function)
name
- of the new column.function
- to map current column into DateTimeColumn.public DoubleColumn mapToDoubleColumn(String name, Function<? super T,? extends Double> function)
name
- of the new column.function
- to map current column into DoubleColumn.public FloatColumn mapToFloatColumn(String name, Function<? super T,? extends Float> function)
name
- of the new column.function
- to map current column into FloatColumn.public InstantColumn mapToInstantColumn(String name, Function<? super T,? extends Instant> function)
name
- of the new column.function
- to map current column into InstantColumn.public IntColumn mapToIntColumn(String name, Function<? super T,? extends Integer> function)
name
- of the new column.function
- to map current column into IntColumn.public LongColumn mapToLongColumn(String name, Function<? super T,? extends Long> function)
name
- of the new column.function
- to map current column into LongColumn.public ShortColumn mapToShortColumn(String name, Function<? super T,? extends Short> function)
name
- of the new column.function
- to map current column into ShortColumn.public StringColumn mapToStringColumn(String name, Function<? super T,? extends String> function)
name
- of the new column.function
- to map current column into StringColumn.public TextColumn mapToTextColumn(String name, Function<? super T,? extends String> function)
name
- of the new column.function
- to map current column into TextColumn.public TimeColumn mapToTimeColumn(String name, Function<? super T,? extends LocalTime> function)
name
- of the new column.function
- to map current column into TimeColumn.Copyright © 2019. All rights reserved.