Package io.datarouter.model.field.imp
Class StringField
- All Implemented Interfaces:
ByteEncodedField<String>,StringEncodedField<String>,Field<String>,Comparable<Field<String>>
public class StringField extends BaseField<String>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.datarouter.model.field.BaseField
BaseField.FieldColumnNameComparator -
Field Summary
Fields Modifier and Type Field Description static byteSEPARATOR -
Constructor Summary
Constructors Constructor Description StringField(StringFieldKey key, String value)StringField(String prefix, StringFieldKey key, String value) -
Method Summary
Modifier and Type Method Description intcompareTo(Field<String> other)StringfromBytesButDoNotSet(byte[] bytes, int offset)StringfromBytesWithSeparatorButDoNotSet(byte[] bytes, int offset)byte[]getBytes()byte[]getBytesWithSeparator()FieldKey<String>getKey()intgetSize()StringgetStringEncodedValue()intnumBytesWithSeparator(byte[] bytes, int offset)StringparseStringEncodedValueButDoNotSet(String string)Methods inherited from class io.datarouter.model.field.BaseField
fromString, getPrefix, getPrefixedName, getPreparedStatementValue, getValue, getValueHashCode, getValueString, setPrefix, setUsingReflection, setValue, toString
-
Field Details
-
SEPARATOR
public static final byte SEPARATOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getKey
-
compareTo
-
getStringEncodedValue
-
parseStringEncodedValueButDoNotSet
-
getBytes
public byte[] getBytes() -
getBytesWithSeparator
public byte[] getBytesWithSeparator()- Specified by:
getBytesWithSeparatorin interfaceByteEncodedField<String>- Overrides:
getBytesWithSeparatorin classBaseField<String>
-
numBytesWithSeparator
public int numBytesWithSeparator(byte[] bytes, int offset) -
fromBytesButDoNotSet
-
fromBytesWithSeparatorButDoNotSet
- Specified by:
fromBytesWithSeparatorButDoNotSetin interfaceByteEncodedField<String>- Overrides:
fromBytesWithSeparatorButDoNotSetin classBaseField<String>
-
getSize
public int getSize()
-