Class FakeKeyValue
- java.lang.Object
-
- com.snowflake.connectors.common.table.FakeKeyValue
-
public class FakeKeyValue extends Object
Fake, testing implementation of aKeyValueTable
entry.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FakeKeyValue.FakeKeyValueComparator
A simple timestamp comparator forFakeKeyValue
objects.
-
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 Instant
getTimestamp()
Returns the entry timestamp.Instant
getUpdatedAt()
Returns the entry updated at timestamp.Variant
getValue()
Returns the entry value.void
setUpdatedAt(Instant updatedAt)
Sets the entry updated at timestamp.void
setValue(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
-
-