Package org.apache.druid.data.input.impl
Class DelimitedBytes
java.lang.Object
org.apache.druid.data.input.impl.DelimitedBytes
Utility function for
DelimitedInputFormat.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intParameter forsplit(byte[], byte, int)signifying that we do not know the expected number of fields. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
UNKNOWN_FIELD_COUNT
public static final int UNKNOWN_FIELD_COUNTParameter forsplit(byte[], byte, int)signifying that we do not know the expected number of fields.- See Also:
-
-
Constructor Details
-
DelimitedBytes
public DelimitedBytes()
-
-
Method Details
-
split
Split UTF-8 bytes by a particular delimiter. Empty parts are returned as nulls.- Parameters:
bytes- utf-8 bytesdelimiter- the delimiternumFieldsHint- expected number of fields, orUNKNOWN_FIELD_COUNT
-