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
RecordUpdaterinsert in interface RecordUpdatercurrentTransaction - the transaction id of the current transaction.row - the row of data to insertIOExceptionpublic void update(long currentTransaction,
Object row)
throws IOException
RecordUpdaterupdate in interface RecordUpdatercurrentTransaction - the current transaction idrow - the new values for the rowIOExceptionpublic void delete(long currentTransaction,
Object row)
throws IOException
RecordUpdaterdelete in interface RecordUpdatercurrentTransaction - the current transaction idIOExceptionpublic void flush()
throws IOException
RecordUpdaterflush in interface RecordUpdaterIOExceptionpublic void close(boolean abort)
throws IOException
RecordUpdaterclose in interface RecordUpdaterabort - Can the data since the last flush be discarded?IOExceptionpublic SerDeStats getStats()
RecordUpdatergetStats in interface RecordUpdaterCopyright © 2016 The Apache Software Foundation. All rights reserved.