public class OrcRecordUpdater extends Object implements RecordUpdater
Modifier and Type | Class and Description |
---|---|
static class |
OrcRecordUpdater.OrcOptions
An extension to AcidOutputFormat that allows users to add additional
options.
|
Modifier and Type | Field and Description |
---|---|
static String |
ACID_FORMAT |
static String |
ACID_KEY_INDEX_NAME |
static String |
ACID_STATS |
static int |
ORC_ACID_VERSION |
Modifier and Type | Method and Description |
---|---|
void |
close(boolean abort)
Close this updater.
|
void |
delete(long currentTransaction,
Object row)
Delete a row from the table.
|
void |
flush()
Flush the current set of rows to the underlying file system, so that
they are available to readers.
|
static List<String> |
getAcidEventFields() |
SerDeStats |
getStats()
Returns the statistics information
|
void |
insert(long currentTransaction,
Object row)
Insert a new record into the table.
|
void |
update(long currentTransaction,
Object row)
Update an old record with a new set of values.
|
public static final String ACID_KEY_INDEX_NAME
public static final String ACID_FORMAT
public static final String ACID_STATS
public static final int ORC_ACID_VERSION
public void insert(long currentTransaction, Object row) throws IOException
RecordUpdater
insert
in interface RecordUpdater
currentTransaction
- the transaction id of the current transaction.row
- the row of data to insertIOException
public void update(long currentTransaction, Object row) throws IOException
RecordUpdater
update
in interface RecordUpdater
currentTransaction
- the current transaction idrow
- the new values for the rowIOException
public void delete(long currentTransaction, Object row) throws IOException
RecordUpdater
delete
in interface RecordUpdater
currentTransaction
- the current transaction idIOException
public void flush() throws IOException
RecordUpdater
flush
in interface RecordUpdater
IOException
public void close(boolean abort) throws IOException
RecordUpdater
close
in interface RecordUpdater
abort
- Can the data since the last flush be discarded?IOException
public SerDeStats getStats()
RecordUpdater
getStats
in interface RecordUpdater
Copyright © 2017 The Apache Software Foundation. All rights reserved.