Class TableRecordReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class TableRecordReader
    extends RecordReader<K,​V>
    Concrete implementation of TableRecordReaderBase that reads table rows from an InputSplit using a PrimaryKey.
    Since:
    3.1
    • Field Detail

      • USER_SECURITY_DIR

        protected static final String USER_SECURITY_DIR
      • current

        protected Row current
    • Constructor Detail

      • TableRecordReader

        public TableRecordReader()
    • Method Detail

      • nextKeyValue

        public boolean nextKeyValue()
                             throws IOException
        Reads the next key/value pair as a Row and then processes the contents of the row.
        Specified by:
        nextKeyValue in class RecordReader<K,​V>
        Returns:
        true when a key/value pair was successfully read and processed; otherwise, returns false when EOF is encountered.
        Throws:
        IOException - when IOException occurs during processing. When any other type of exception is encountered during processing, throws that exception wrapped in IOException; to be consistent with the Hadoop RecordReader interface implemented by this class. See SR25870 for more details.
      • getProgress

        public float getProgress()
        The current progress of the record reader through its data.
        Specified by:
        getProgress in class RecordReader<K,​V>
        Returns:
        a number between 0.0 and 1.0 that is the fraction of the data read
      • getKvTable

        public Table getKvTable()
      • setIndexKey

        public void setIndexKey​(IndexKey key)
      • setPrimaryKey

        public void setPrimaryKey​(PrimaryKey key)
      • setMultiRowOptions

        public void setMultiRowOptions​(FieldRange fieldRange)
      • setStore

        public void setStore​(KVStore testStore)
        For testing only; to support the use of a mocked store.
      • setQueryInfo

        public void setQueryInfo​(int newQueryBy,
                                 String newWhereClause)
      • setIterFailHook

        public void setIterFailHook​(oracle.kv.impl.test.TestHook<RecordValue> iterFailHook)
        Used only when testing. See SR25870.