public class StreamingDelimiters extends Object
Constructor and Description |
---|
StreamingDelimiters() |
StreamingDelimiters(byte preWrapDelim,
byte postWrapDelim,
boolean useEmptyNull) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBagBegin() |
byte[] |
getBagEnd() |
byte[] |
getFieldDelim() |
byte[] |
getMapBegin() |
byte[] |
getMapEnd() |
byte |
getMapKeyDelim() |
byte[] |
getNull() |
byte[] |
getParamDelim() |
byte[] |
getRecordEnd() |
byte[] |
getTupleBegin() |
byte[] |
getTupleEnd() |
static boolean |
isDelimiter(byte[] delimiter,
byte[] buf,
int index,
int depth,
int endIndex) |
int |
updateDepth(byte[] buf,
int currDepth,
int index) |
public StreamingDelimiters()
public StreamingDelimiters(byte preWrapDelim, byte postWrapDelim, boolean useEmptyNull)
preWrapDelim
- postWrapDelim
- useEmptyNull
- - In the past empty was used to serialize null. But this can
make it impossible to differentiate between an empty string and null. Set
to false if you want to use a special character to represent null.public byte[] getTupleBegin()
public byte[] getTupleEnd()
public byte[] getBagBegin()
public byte[] getBagEnd()
public byte[] getMapBegin()
public byte[] getMapEnd()
public byte[] getFieldDelim()
public byte getMapKeyDelim()
public byte[] getNull()
public byte[] getParamDelim()
public byte[] getRecordEnd()
public int updateDepth(byte[] buf, int currDepth, int index)
public static boolean isDelimiter(byte[] delimiter, byte[] buf, int index, int depth, int endIndex)
delimiter
- buf
- index
- depth
- endIndex
- Copyright © 2007-2017 The Apache Software Foundation