public class StreamBlockletReader extends Object
| Constructor and Description |
|---|
StreamBlockletReader(byte[] syncMarker,
InputStream in,
long limit,
boolean isHeaderPresent,
String compressorName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
copy(int len) |
int |
getRowNums() |
boolean |
hasNext() |
boolean |
nextBlocklet()
find the next blocklet
|
void |
nextRow() |
void |
readBlockletData(org.apache.carbondata.format.BlockletHeader header) |
org.apache.carbondata.format.BlockletHeader |
readBlockletHeader() |
boolean |
readBoolean() |
byte[] |
readBytes(int len) |
boolean |
readBytesFromStream(byte[] b,
int offset,
int len)
Reads
len bytes of data from the input stream into
an array of bytes. |
double |
readDouble() |
int |
readInt() |
int |
readIntFromStream() |
long |
readLong() |
short |
readShort() |
void |
skipBlockletData(boolean reset) |
void |
skipBytes(int len) |
public StreamBlockletReader(byte[] syncMarker,
InputStream in,
long limit,
boolean isHeaderPresent,
String compressorName)
public org.apache.carbondata.format.BlockletHeader readBlockletHeader()
throws IOException
IOExceptionpublic void readBlockletData(org.apache.carbondata.format.BlockletHeader header)
throws IOException
IOExceptionpublic void skipBlockletData(boolean reset)
throws IOException
IOExceptionpublic boolean nextBlocklet()
throws IOException
IOExceptionpublic boolean hasNext()
throws IOException
IOExceptionpublic void nextRow()
public int readIntFromStream()
throws IOException
IOExceptionpublic boolean readBytesFromStream(byte[] b,
int offset,
int len)
throws IOException
len bytes of data from the input stream into
an array of bytes.true if reading data successfully, or
false if there is no more data because the end of the stream has been reached.IOExceptionpublic boolean readBoolean()
public short readShort()
public byte[] copy(int len)
public int readInt()
public long readLong()
public double readDouble()
public byte[] readBytes(int len)
public void skipBytes(int len)
public int getRowNums()
public void close()
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.