Package io.datarouter.model.field
Class FieldTool
java.lang.Object
io.datarouter.model.field.FieldTool
public class FieldTool extends Object
-
Constructor Summary
Constructors Constructor Description FieldTool() -
Method Summary
Modifier and Type Method Description static intcountNonNullLeadingFields(List<Field<?>> fields)static byte[]getConcatenatedValueBytes(List<Field<?>> fields)static byte[]getConcatenatedValueBytesUnterminated(List<Field<?>> fields)static ObjectgetNestedFieldSet(Object object, Field<?> field)static byte[]getPartitionerInput(List<Field<?>> fields)static byte[]getSerializedKeyValues(List<Field<?>> fields, boolean includePrefix, boolean skipNullValues)static List<Field<?>>prependPrefixes(String prefixPrefix, List<Field<?>> fields)
-
Constructor Details
-
FieldTool
public FieldTool()
-
-
Method Details
-
countNonNullLeadingFields
-
getPartitionerInput
-
getConcatenatedValueBytesUnterminated
-
getConcatenatedValueBytes
-
getSerializedKeyValues
public static byte[] getSerializedKeyValues(List<Field<?>> fields, boolean includePrefix, boolean skipNullValues)- Parameters:
includePrefix- usually refers to the "key." prefix before a PKskipNullValues- important to include nulls in PK's, but usually skip them in normal fields
-
prependPrefixes
-
getNestedFieldSet
-