public class BinaryRowProtocol extends RowProtocol
Modifier and Type | Field and Description |
---|---|
private ColumnInformation[] |
columnInformation |
private int |
columnInformationLength |
buf, index, length, maxFieldSize, NULL_LENGTH, pos
Constructor and Description |
---|
BinaryRowProtocol(ColumnInformation[] columnInformation,
int columnInformationLength,
int maxFieldSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
setPosition(int newIndex)
Set length and pos indicator to asked index.
|
getLengthMaxFieldSize, getMaxFieldSize, resetRow
private final ColumnInformation[] columnInformation
private final int columnInformationLength
public BinaryRowProtocol(ColumnInformation[] columnInformation, int columnInformationLength, int maxFieldSize)
columnInformation
- column information.columnInformationLength
- number of columnsmaxFieldSize
- max field sizepublic boolean setPosition(int newIndex)
setPosition
in class RowProtocol
newIndex
- index (0 is first).