Class FakeKeyValue
- java.lang.Object
-
- com.snowflake.connectors.common.table.FakeKeyValue
-
public class FakeKeyValue extends Object
Fake, testing implementation of aKeyValueTableentry.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFakeKeyValue.FakeKeyValueComparatorA simple timestamp comparator forFakeKeyValueobjects.
-
Constructor Summary
Constructors Constructor Description FakeKeyValue(Variant value, Instant timestamp)Creates a newFakeKeyValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetTimestamp()Returns the entry timestamp.InstantgetUpdatedAt()Returns the entry updated at timestamp.VariantgetValue()Returns the entry value.voidsetUpdatedAt(Instant updatedAt)Sets the entry updated at timestamp.voidsetValue(Variant value)Sets the entry value.
-
-
-
Constructor Detail
-
FakeKeyValue
public FakeKeyValue(Variant value, Instant timestamp)
Creates a newFakeKeyValue.- Parameters:
value- entry valuetimestamp- entry timestamp
-
-
Method Detail
-
getValue
public Variant getValue()
Returns the entry value.- Returns:
- the entry value
-
setValue
public void setValue(Variant value)
Sets the entry value.- Parameters:
value- new entry value
-
getTimestamp
public Instant getTimestamp()
Returns the entry timestamp.- Returns:
- the entry timestamp
-
getUpdatedAt
public Instant getUpdatedAt()
Returns the entry updated at timestamp.- Returns:
- the entry updated at timestamp
-
setUpdatedAt
public void setUpdatedAt(Instant updatedAt)
Sets the entry updated at timestamp.- Parameters:
updatedAt- the new entry updated at timestamp
-
-