Class LongField
java.lang.Object
io.datarouter.model.field.BaseField<T>
io.datarouter.model.field.BasePrimitiveField<java.lang.Long,LongFieldKey>
io.datarouter.model.field.imp.comparable.LongField
- All Implemented Interfaces:
ByteEncodedField<java.lang.Long>,StringEncodedField<java.lang.Long>,Field<java.lang.Long>,java.lang.Comparable<Field<java.lang.Long>>
public class LongField extends BasePrimitiveField<java.lang.Long,LongFieldKey>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.datarouter.model.field.BaseField
BaseField.FieldColumnNameComparator -
Field Summary
-
Constructor Summary
Constructors Constructor Description LongField(LongFieldKey key, java.lang.Long value)LongField(java.lang.String prefix, LongFieldKey key, java.lang.Long value) -
Method Summary
Modifier and Type Method Description java.lang.LongfromBytesButDoNotSet(byte[] bytes, int offset)byte[]getBytes()java.lang.StringgetStringEncodedValue()intnumBytesWithSeparator(byte[] bytes, int offset)java.lang.LongparseStringEncodedValueButDoNotSet(java.lang.String str)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.lang.Long parseStringEncodedValueButDoNotSet(java.lang.String str) -
getBytes
public byte[] getBytes() -
numBytesWithSeparator
public int numBytesWithSeparator(byte[] bytes, int offset) -
fromBytesButDoNotSet
public java.lang.Long fromBytesButDoNotSet(byte[] bytes, int offset)
-