Class RejectedRecord
- java.lang.Object
-
- software.amazon.awssdk.services.timestreamwrite.model.RejectedRecord
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RejectedRecord.Builder,RejectedRecord>
@Generated("software.amazon.awssdk:codegen") public final class RejectedRecord extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RejectedRecord.Builder,RejectedRecord>
Represents records that were not successfully inserted into Timestream due to data validation issues that must be resolved before reinserting time-series data into the system.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRejectedRecord.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RejectedRecord.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)LongexistingVersion()The existing version of the record.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringreason()The reason why a record was not successfully inserted into Timestream.IntegerrecordIndex()The index of the record in the input request for WriteRecords.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RejectedRecord.Builder>serializableBuilderClass()RejectedRecord.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
recordIndex
public final Integer recordIndex()
The index of the record in the input request for WriteRecords. Indexes begin with 0.
- Returns:
- The index of the record in the input request for WriteRecords. Indexes begin with 0.
-
reason
public final String reason()
The reason why a record was not successfully inserted into Timestream. Possible causes of failure include:
-
Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but:
-
Measure values are different
-
Version is not present in the request, or the value of version in the new record is equal to or lower than the existing value
If Timestream rejects data for this case, the
ExistingVersionfield in theRejectedRecordsresponse will indicate the current record’s version. To force an update, you can resend the request with a version for the record set to a value greater than theExistingVersion. -
-
Records with timestamps that lie outside the retention duration of the memory store.
When the retention window is updated, you will receive a
RejectedRecordsexception if you immediately try to ingest data within the new window. To avoid aRejectedRecordsexception, wait until the duration of the new window to ingest new data. For further information, see Best Practices for Configuring Timestream and the explanation of how storage works in Timestream. -
Records with dimensions or measures that exceed the Timestream defined limits.
For more information, see Access Management in the Timestream Developer Guide.
- Returns:
- The reason why a record was not successfully inserted into Timestream. Possible causes of failure
include:
-
Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but:
-
Measure values are different
-
Version is not present in the request, or the value of version in the new record is equal to or lower than the existing value
If Timestream rejects data for this case, the
ExistingVersionfield in theRejectedRecordsresponse will indicate the current record’s version. To force an update, you can resend the request with a version for the record set to a value greater than theExistingVersion. -
-
Records with timestamps that lie outside the retention duration of the memory store.
When the retention window is updated, you will receive a
RejectedRecordsexception if you immediately try to ingest data within the new window. To avoid aRejectedRecordsexception, wait until the duration of the new window to ingest new data. For further information, see Best Practices for Configuring Timestream and the explanation of how storage works in Timestream. -
Records with dimensions or measures that exceed the Timestream defined limits.
For more information, see Access Management in the Timestream Developer Guide.
-
-
-
existingVersion
public final Long existingVersion()
The existing version of the record. This value is populated in scenarios where an identical record exists with a higher version than the version in the write request.
- Returns:
- The existing version of the record. This value is populated in scenarios where an identical record exists with a higher version than the version in the write request.
-
toBuilder
public RejectedRecord.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RejectedRecord.Builder,RejectedRecord>
-
builder
public static RejectedRecord.Builder builder()
-
serializableBuilderClass
public static Class<? extends RejectedRecord.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-