public class PTFRowContainer<Row extends List<Object>> extends RowContainer<Row>
getAt(i).
It extends RowContainer behavior in the following ways:
blockSize
currentReadBlockStartRow,blockSize. So if a row is requested in this span,
we don't need to read rows from disk.
getAt leaves the Container in the same state as a
next call; so a getAt and next calls can be interspersed.
| Modifier and Type | Class and Description |
|---|---|
static class |
PTFRowContainer.PTFHiveSequenceFileOutputFormat<K,V> |
static class |
PTFRowContainer.PTFSequenceFileInputFormat<K,V> |
static class |
PTFRowContainer.PTFSequenceFileRecordReader<K,V> |
AbstractRowContainer.RowIterator<ROW>LOG| Constructor and Description |
|---|
PTFRowContainer(int bs,
org.apache.hadoop.conf.Configuration jc,
org.apache.hadoop.mapred.Reporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(Row t)
add a row into the RowContainer
|
void |
clearRows()
Remove all elements in the RowContainer.
|
void |
close() |
static TableDesc |
createTableDesc(StructObjectInspector oI) |
Row |
first() |
Row |
getAt(int rowIdx) |
Row |
next() |
copyToDFSDirecory, endOfCurrentReadBlock, getAddCursor, getBlockSize, getCurrentReadBlockSize, getInputSplits, getLastActualSplit, getNumFlushedBlocks, getReadBlockRow, getRecordWriter, hasRows, isSingleRow, nextBlock, resetCurrentReadBlockToFirstReadBlock, resetReadBlocks, rowCount, rowIter, setKeyObject, setReaderAtSplit, setSerDe, setTableDesc, setupWriter, setWriteBlockAsReadBlock, willSpillpublic PTFRowContainer(int bs,
org.apache.hadoop.conf.Configuration jc,
org.apache.hadoop.mapred.Reporter reporter)
throws HiveException
HiveExceptionpublic void addRow(Row t) throws HiveException
AbstractRowContaineraddRow in interface AbstractRowContainer<Row extends List<Object>>addRow in class RowContainer<Row extends List<Object>>t - rowHiveExceptionpublic Row first() throws HiveException
first in interface AbstractRowContainer.RowIterator<Row extends List<Object>>first in class RowContainer<Row extends List<Object>>HiveExceptionpublic Row next() throws HiveException
next in interface AbstractRowContainer.RowIterator<Row extends List<Object>>next in class RowContainer<Row extends List<Object>>HiveExceptionpublic void clearRows()
throws HiveException
RowContainerclearRows in interface AbstractRowContainer<Row extends List<Object>>clearRows in class RowContainer<Row extends List<Object>>HiveExceptionpublic void close()
throws HiveException
close in class RowContainer<Row extends List<Object>>HiveExceptionpublic Row getAt(int rowIdx) throws HiveException
HiveExceptionpublic static TableDesc createTableDesc(StructObjectInspector oI)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.