Class HiveWriter


  • @Deprecated(since="2.7.1",
                forRemoval=true)
    public class HiveWriter
    extends Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HiveWriter.CommitFailure
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static class  HiveWriter.ConnectFailure
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static class  HiveWriter.Failure
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static class  HiveWriter.TxnBatchFailure
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static class  HiveWriter.TxnFailure
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static class  HiveWriter.WriteFailure
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean closed
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      HiveWriter​(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint, int txnsPerBatch, boolean autoCreatePartitions, long callTimeout, ExecutorService callTimeoutPool, HiveMapper mapper, org.apache.hadoop.security.UserGroupInformation ugi, boolean tokenAuthEnabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void abort()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Aborts the current Txn and switches to next Txn.
      void close()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Close the Transaction Batch and connection.
      void flush​(boolean rollToNext)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Commits the current Txn if totalRecordsPerTransaction > 0 .
      void flushAndClose()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Flush and Close current transactionBatch.
      long getLastUsed()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.apache.hive.hcatalog.streaming.RecordWriter getRecordWriter​(HiveMapper mapper, boolean tokenAuthEnabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      int getTotalRecords()
      Deprecated, for removal: This API element is subject to removal in a future version.
      returns totalRecords written so far in a transaction.
      void heartBeat()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Queues up a heartbeat request on the current and remaining txns using the heartbeatThdPool and returns immediately.
      String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void write​(byte[] record)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Write data.