Class IncrementingSegmentSpec
- java.lang.Object
-
- io.datahubproject.openapi.generated.IncrementingSegmentSpec
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2023-12-06T11:25:47.362934Z[Etc/UTC]") public class IncrementingSegmentSpec extends java.lang.ObjectCore attributes required to identify an incrementing segment in a table. This type is mainly useful for tables that constantly increase with new rows being added on a particular cadence (e.g. fact or event tables) An incrementing segment represents a logical chunk of data which is INSERTED into a dataset on a regular interval, along with the presence of a constantly-incrementing column value such as an event time, date partition, or last modified column. An incrementing segment is principally identified by 2 key attributes combined: 1. A field or column that represents the incrementing value. New rows that are inserted will be identified using this column. Note that the value of this column may not by itself represent the \"bucket\" or the \"segment\" in which the row falls. 2. [Optional] An transformer function that may be applied to the selected column value in order to obtain the final \"segment identifier\" or \"bucket identifier\". Rows that have the same value after applying the transformation will be grouped into the same segment, using which the final value (e.g. row count) will be determined.
-
-
Constructor Summary
Constructors Constructor Description IncrementingSegmentSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)IncrementingSegmentSpecfield(SchemaFieldSpec field)@NotNull @Valid SchemaFieldSpecgetField()Get field@Valid IncrementingSegmentFieldTransformergetTransformer()Get transformerinthashCode()voidsetField(SchemaFieldSpec field)voidsetTransformer(IncrementingSegmentFieldTransformer transformer)java.lang.StringtoString()IncrementingSegmentSpectransformer(IncrementingSegmentFieldTransformer transformer)
-
-
-
Method Detail
-
field
public IncrementingSegmentSpec field(SchemaFieldSpec field)
-
getField
@NotNull @Valid public @NotNull @Valid SchemaFieldSpec getField()
Get field- Returns:
- field
-
setField
public void setField(SchemaFieldSpec field)
-
transformer
public IncrementingSegmentSpec transformer(IncrementingSegmentFieldTransformer transformer)
-
getTransformer
@Valid public @Valid IncrementingSegmentFieldTransformer getTransformer()
Get transformer- Returns:
- transformer
-
setTransformer
public void setTransformer(IncrementingSegmentFieldTransformer transformer)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-