Class InstantField
java.lang.Object
io.datarouter.model.field.BaseField<T>
io.datarouter.model.field.BasePrimitiveField<java.time.Instant,InstantFieldKey>
io.datarouter.model.field.imp.comparable.InstantField
- All Implemented Interfaces:
ByteEncodedField<java.time.Instant>,StringEncodedField<java.time.Instant>,Field<java.time.Instant>,java.lang.Comparable<Field<java.time.Instant>>
public class InstantField extends BasePrimitiveField<java.time.Instant,InstantFieldKey>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.datarouter.model.field.BaseField
BaseField.FieldColumnNameComparator -
Field Summary
-
Constructor Summary
Constructors Constructor Description InstantField(InstantFieldKey key, java.time.Instant value) -
Method Summary
Modifier and Type Method Description java.time.InstantfromBytesButDoNotSet(byte[] bytes, int byteOffset)byte[]getBytes()intgetNumFractionalSeconds()java.lang.StringgetStringEncodedValue()intnumBytesWithSeparator(byte[] bytes, int byteOffset)java.time.InstantparseStringEncodedValueButDoNotSet(java.lang.String value)Methods inherited from class io.datarouter.model.field.BaseField
fromBytesWithSeparatorButDoNotSet, fromString, getBytesWithSeparator, getPrefix, getPrefixedName, getPreparedStatementValue, getValue, getValueHashCode, getValueString, setPrefix, setUsingReflection, setValue, toString
-
Constructor Details
-
Method Details
-
getStringEncodedValue
public java.lang.String getStringEncodedValue() -
parseStringEncodedValueButDoNotSet
public java.time.Instant parseStringEncodedValueButDoNotSet(java.lang.String value) -
getBytes
public byte[] getBytes() -
fromBytesButDoNotSet
public java.time.Instant fromBytesButDoNotSet(byte[] bytes, int byteOffset) -
numBytesWithSeparator
public int numBytesWithSeparator(byte[] bytes, int byteOffset) -
getNumFractionalSeconds
public int getNumFractionalSeconds()
-