public class OrcParser
extends water.parser.Parser
| Modifier and Type | Class and Description |
|---|---|
static class |
OrcParser.OrcParseSetup |
| Modifier and Type | Field and Description |
|---|---|
static int |
ADD_OFFSET |
static int |
DAY_TO_MS |
static int |
HOUR_OFFSET |
_jobKey, _setup, CHAR_DECIMAL_SEP, CHAR_SEPARATOR, COND_QUOTE, COND_QUOTED_NUMBER_END, COND_QUOTED_TOKEN, EOL, EXPECT_COND_LF, LARGEST_DIGIT_NUMBER, NUMBER, NUMBER_END, NUMBER_EXP, NUMBER_EXP_START, NUMBER_FRACTION, NUMBER_SKIP, NUMBER_SKIP_NO_DOT, POSSIBLE_CURRENCY, POSSIBLE_EMPTY_LINE, SEPARATOR_OR_EOL, SKIP_LINE, STRING, STRING_END, TOKEN, WHITESPACE_BEFORE_TOKEN| Modifier and Type | Method and Description |
|---|---|
protected water.parser.ParseWriter |
parseChunk(int chunkId,
water.parser.ParseReader din,
water.parser.ParseWriter dout)
This method calculates the number of stripes that will be read for each chunk.
|
protected water.parser.ParseWriter |
streamParse(java.io.InputStream is,
water.parser.StreamParseWriter dout) |
protected water.parser.ParseWriter |
streamParseZip(java.io.InputStream is,
water.parser.StreamParseWriter dout,
java.io.InputStream bvs) |
public static final int DAY_TO_MS
public static final int ADD_OFFSET
public static final int HOUR_OFFSET
protected water.parser.ParseWriter streamParse(java.io.InputStream is,
water.parser.StreamParseWriter dout)
throws java.io.IOException
streamParse in class water.parser.Parserjava.io.IOExceptionprotected water.parser.ParseWriter streamParseZip(java.io.InputStream is,
water.parser.StreamParseWriter dout,
java.io.InputStream bvs)
throws java.io.IOException
streamParseZip in class water.parser.Parserjava.io.IOExceptionprotected final water.parser.ParseWriter parseChunk(int chunkId,
water.parser.ParseReader din,
water.parser.ParseWriter dout)
parseChunk in class water.parser.ParserchunkId: - chunk index, calculated as file size/chunk size. The file size is calculated
with data plus overhead in terms of headers and other info, number of chunks
calculated will be higher than the actual chunks needed. If the chunk number
is too high, the method will return without writing to
dout.din: - ParseReader, not used for parsing orc filesdout: - ParseWriter, used to add data to H2O frame.