public abstract class Decoder extends Object
| Constructor and Description |
|---|
Decoder(TSEncoding type) |
| Modifier and Type | Method and Description |
|---|---|
static Decoder |
getDecoderByType(TSEncoding encoding,
TSDataType dataType) |
TSEncoding |
getType() |
abstract boolean |
hasNext(ByteBuffer buffer) |
BigDecimal |
readBigDecimal(ByteBuffer buffer) |
Binary |
readBinary(ByteBuffer buffer) |
boolean |
readBoolean(ByteBuffer buffer) |
double |
readDouble(ByteBuffer buffer) |
float |
readFloat(ByteBuffer buffer) |
int |
readInt(ByteBuffer buffer) |
long |
readLong(ByteBuffer buffer) |
short |
readShort(ByteBuffer buffer) |
abstract void |
reset() |
void |
setType(TSEncoding type) |
public Decoder(TSEncoding type)
public void setType(TSEncoding type)
public TSEncoding getType()
public static Decoder getDecoderByType(TSEncoding encoding, TSDataType dataType)
public int readInt(ByteBuffer buffer)
public boolean readBoolean(ByteBuffer buffer)
public short readShort(ByteBuffer buffer)
public long readLong(ByteBuffer buffer)
public float readFloat(ByteBuffer buffer)
public double readDouble(ByteBuffer buffer)
public Binary readBinary(ByteBuffer buffer)
public BigDecimal readBigDecimal(ByteBuffer buffer)
public abstract boolean hasNext(ByteBuffer buffer) throws IOException
IOExceptionpublic abstract void reset()
Copyright © 2022 The Apache Software Foundation. All rights reserved.