Package io.datarouter.model.field.imp
Class StringField
java.lang.Object
io.datarouter.model.field.BaseField<java.lang.String>
io.datarouter.model.field.imp.StringField
- All Implemented Interfaces:
ByteEncodedField<java.lang.String>,StringEncodedField<java.lang.String>,Field<java.lang.String>,java.lang.Comparable<Field<java.lang.String>>
public class StringField extends BaseField<java.lang.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, java.lang.String value)StringField(java.lang.String prefix, StringFieldKey key, java.lang.String value) -
Method Summary
Modifier and Type Method Description intcompareTo(Field<java.lang.String> other)java.lang.StringfromBytesButDoNotSet(byte[] bytes, int offset)java.lang.StringfromBytesWithSeparatorButDoNotSet(byte[] bytes, int offset)byte[]getBytes()byte[]getBytesWithSeparator()FieldKey<java.lang.String>getKey()intgetSize()java.lang.StringgetStringEncodedValue()intnumBytesWithSeparator(byte[] bytes, int offset)java.lang.StringparseStringEncodedValueButDoNotSet(java.lang.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
public java.lang.String getStringEncodedValue() -
parseStringEncodedValueButDoNotSet
public java.lang.String parseStringEncodedValueButDoNotSet(java.lang.String string) -
getBytes
public byte[] getBytes() -
getBytesWithSeparator
public byte[] getBytesWithSeparator()- Specified by:
getBytesWithSeparatorin interfaceByteEncodedField<java.lang.String>- Overrides:
getBytesWithSeparatorin classBaseField<java.lang.String>
-
numBytesWithSeparator
public int numBytesWithSeparator(byte[] bytes, int offset) -
fromBytesButDoNotSet
public java.lang.String fromBytesButDoNotSet(byte[] bytes, int offset) -
fromBytesWithSeparatorButDoNotSet
public java.lang.String fromBytesWithSeparatorButDoNotSet(byte[] bytes, int offset)- Specified by:
fromBytesWithSeparatorButDoNotSetin interfaceByteEncodedField<java.lang.String>- Overrides:
fromBytesWithSeparatorButDoNotSetin classBaseField<java.lang.String>
-
getSize
public int getSize()
-