@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimeSeriesTransformations extends Object implements Serializable, Cloneable, StructuredPojo
Transformations allowed on the dataset. Supported transformations are Filling
and
Aggregation
. Filling
specifies how to add values to missing values in the dataset.
Aggregation
defines how to aggregate data that does not align with forecast frequency.
Constructor and Description |
---|
TimeSeriesTransformations() |
Modifier and Type | Method and Description |
---|---|
TimeSeriesTransformations |
addAggregationEntry(String key,
String value)
Add a single Aggregation entry
|
TimeSeriesTransformations |
addFillingEntry(String key,
Map<String,String> value)
Add a single Filling entry
|
TimeSeriesTransformations |
clearAggregationEntries()
Removes all the entries added into Aggregation.
|
TimeSeriesTransformations |
clearFillingEntries()
Removes all the entries added into Filling.
|
TimeSeriesTransformations |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAggregation()
A key value pair defining the aggregation method for a column, where the key is the column name and the value is
the aggregation method.
|
Map<String,Map<String,String>> |
getFilling()
A key value pair defining the filling method for a column, where the key is the column name and the value is an
object which defines the filling logic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAggregation(Map<String,String> aggregation)
A key value pair defining the aggregation method for a column, where the key is the column name and the value is
the aggregation method.
|
void |
setFilling(Map<String,Map<String,String>> filling)
A key value pair defining the filling method for a column, where the key is the column name and the value is an
object which defines the filling logic.
|
String |
toString()
Returns a string representation of this object.
|
TimeSeriesTransformations |
withAggregation(Map<String,String> aggregation)
A key value pair defining the aggregation method for a column, where the key is the column name and the value is
the aggregation method.
|
TimeSeriesTransformations |
withFilling(Map<String,Map<String,String>> filling)
A key value pair defining the filling method for a column, where the key is the column name and the value is an
object which defines the filling logic.
|
public Map<String,Map<String,String>> getFilling()
A key value pair defining the filling method for a column, where the key is the column name and the value is an object which defines the filling logic. You can specify multiple filling methods for a single column.
The supported filling methods and their corresponding options are:
frontfill
: none
(Supported only for target column)
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to the chosen filling method value (for
example "backfill" : "value"
), and define the filling value in an additional parameter prefixed with
"_value". For example, to set backfill
to a value of 2
, you must include two
parameters: "backfill": "value"
and "backfill_value":"2"
.
The supported filling methods and their corresponding options are:
frontfill
: none
(Supported only for target column)
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to the chosen filling method value
(for example "backfill" : "value"
), and define the filling value in an additional parameter
prefixed with "_value". For example, to set backfill
to a value of 2
, you must
include two parameters: "backfill": "value"
and "backfill_value":"2"
.
public void setFilling(Map<String,Map<String,String>> filling)
A key value pair defining the filling method for a column, where the key is the column name and the value is an object which defines the filling logic. You can specify multiple filling methods for a single column.
The supported filling methods and their corresponding options are:
frontfill
: none
(Supported only for target column)
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to the chosen filling method value (for
example "backfill" : "value"
), and define the filling value in an additional parameter prefixed with
"_value". For example, to set backfill
to a value of 2
, you must include two
parameters: "backfill": "value"
and "backfill_value":"2"
.
filling
- A key value pair defining the filling method for a column, where the key is the column name and the value
is an object which defines the filling logic. You can specify multiple filling methods for a single
column.
The supported filling methods and their corresponding options are:
frontfill
: none
(Supported only for target column)
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to the chosen filling method value
(for example "backfill" : "value"
), and define the filling value in an additional parameter
prefixed with "_value". For example, to set backfill
to a value of 2
, you must
include two parameters: "backfill": "value"
and "backfill_value":"2"
.
public TimeSeriesTransformations withFilling(Map<String,Map<String,String>> filling)
A key value pair defining the filling method for a column, where the key is the column name and the value is an object which defines the filling logic. You can specify multiple filling methods for a single column.
The supported filling methods and their corresponding options are:
frontfill
: none
(Supported only for target column)
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to the chosen filling method value (for
example "backfill" : "value"
), and define the filling value in an additional parameter prefixed with
"_value". For example, to set backfill
to a value of 2
, you must include two
parameters: "backfill": "value"
and "backfill_value":"2"
.
filling
- A key value pair defining the filling method for a column, where the key is the column name and the value
is an object which defines the filling logic. You can specify multiple filling methods for a single
column.
The supported filling methods and their corresponding options are:
frontfill
: none
(Supported only for target column)
middlefill
: zero
, value
, median
, mean
,
min
, max
backfill
: zero
, value
, median
, mean
,
min
, max
futurefill
: zero
, value
, median
, mean
,
min
, max
To set a filling method to a specific value, set the fill parameter to the chosen filling method value
(for example "backfill" : "value"
), and define the filling value in an additional parameter
prefixed with "_value". For example, to set backfill
to a value of 2
, you must
include two parameters: "backfill": "value"
and "backfill_value":"2"
.
public TimeSeriesTransformations addFillingEntry(String key, Map<String,String> value)
public TimeSeriesTransformations clearFillingEntries()
public Map<String,String> getAggregation()
A key value pair defining the aggregation method for a column, where the key is the column name and the value is the aggregation method.
The supported aggregation methods are sum
(default), avg
, first
,
min
, max
.
Aggregation is only supported for the target column.
The supported aggregation methods are sum
(default), avg
, first
,
min
, max
.
Aggregation is only supported for the target column.
public void setAggregation(Map<String,String> aggregation)
A key value pair defining the aggregation method for a column, where the key is the column name and the value is the aggregation method.
The supported aggregation methods are sum
(default), avg
, first
,
min
, max
.
Aggregation is only supported for the target column.
aggregation
- A key value pair defining the aggregation method for a column, where the key is the column name and the
value is the aggregation method.
The supported aggregation methods are sum
(default), avg
, first
,
min
, max
.
Aggregation is only supported for the target column.
public TimeSeriesTransformations withAggregation(Map<String,String> aggregation)
A key value pair defining the aggregation method for a column, where the key is the column name and the value is the aggregation method.
The supported aggregation methods are sum
(default), avg
, first
,
min
, max
.
Aggregation is only supported for the target column.
aggregation
- A key value pair defining the aggregation method for a column, where the key is the column name and the
value is the aggregation method.
The supported aggregation methods are sum
(default), avg
, first
,
min
, max
.
Aggregation is only supported for the target column.
public TimeSeriesTransformations addAggregationEntry(String key, String value)
public TimeSeriesTransformations clearAggregationEntries()
public String toString()
toString
in class Object
Object.toString()
public TimeSeriesTransformations clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.