public enum DateSeriesFactory extends Enum<DateSeriesFactory>
DateSeries.| Modifier and Type | Method and Description |
|---|---|
static DateSeries |
create(DateColumn dates,
DoubleColumn values)
Returns a
DateSeries with the specified dates and values, using the
default column names: "DATES" and "VALUES" |
static DateSeries |
create(DateColumn dates,
String dateColumnName,
DoubleColumn values,
String valueColumnName)
Returns a
DateSeries with the specified dates, values, and column
names. |
static DateSeries |
readFrom(File file)
Load a time series from a file created via
DataFrame.writeTo(File). |
static DateSeries |
readFrom(ReadableByteChannel channel)
Read a time series from the specified
ReadableByteChannel. |
static DateSeriesFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateSeriesFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static DateSeriesFactory[] values()
for (DateSeriesFactory c : DateSeriesFactory.values()) System.out.println(c);
public static DateSeriesFactory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static DateSeries create(DateColumn dates, DoubleColumn values)
DateSeries with the specified dates and values, using the
default column names: "DATES" and "VALUES"dates - - the datesvalues - - the valuesDateSeries with the specified dates and values.public static DateSeries create(DateColumn dates, String dateColumnName, DoubleColumn values, String valueColumnName)
DateSeries with the specified dates, values, and column
names.dates - - the datesdateColumnName - - the date column namevalues - - the valuesvalueColumnName - - the value column nameDateSeries with the specified dates and values.public static DateSeries readFrom(File file) throws IOException
DataFrame.writeTo(File).file - - the file to read fromIOException - if some I/O error occurspublic static DateSeries readFrom(ReadableByteChannel channel) throws IOException
ReadableByteChannel.channel - - the channel to read fromIOException - if some I/O error occursCopyright © 2020. All rights reserved.