@InterfaceAudience.Private public class StoreFileWriter extends Object implements CellSink, ShipperListener
| Modifier and Type | Class and Description |
|---|---|
static class |
StoreFileWriter.Builder |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLE_HISTORICAL_COMPACTION_FILES |
static String |
ENABLE_HISTORICAL_COMPACTION_FILES |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Cell cell)
Append the given cell
|
void |
appendAll(List<Cell> cellList)
Append the given (possibly partial) list of cells of a row
|
void |
appendFileInfo(byte[] key,
byte[] value) |
void |
appendMetadata(long maxSequenceId,
boolean majorCompaction)
Writes meta data.
|
void |
appendMetadata(long maxSequenceId,
boolean majorCompaction,
Collection<HStoreFile> storeFiles)
Writes meta data.
|
void |
appendMetadata(long maxSequenceId,
boolean majorCompaction,
long mobCellsCount)
Writes meta data.
|
void |
appendMobMetadata(org.apache.hbase.thirdparty.com.google.common.collect.SetMultimap<TableName,String> mobRefSet)
Appends MOB - specific metadata (even if it is empty)
|
void |
appendTrackedTimestampsToMetadata()
Add TimestampRange and earliest put timestamp to Metadata
|
void |
beforeShipped()
The action that needs to be performed before
Shipper.shipped() is performed |
void |
close() |
org.apache.hadoop.fs.Path |
getPath() |
List<org.apache.hadoop.fs.Path> |
getPaths() |
long |
getPos() |
static org.apache.hadoop.fs.Path |
getUniqueFile(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path dir) |
boolean |
hasGeneralBloom() |
static boolean |
shouldEnableHistoricalCompactionFiles(org.apache.hadoop.conf.Configuration conf) |
public static final String ENABLE_HISTORICAL_COMPACTION_FILES
public static final boolean DEFAULT_ENABLE_HISTORICAL_COMPACTION_FILES
public static boolean shouldEnableHistoricalCompactionFiles(org.apache.hadoop.conf.Configuration conf)
public long getPos()
throws IOException
IOExceptionpublic void appendMetadata(long maxSequenceId,
boolean majorCompaction)
throws IOException
close() since its written as meta data to this file.maxSequenceId - Maximum sequence id.majorCompaction - True if this file is product of a major compactionIOException - problem writing to FSpublic void appendMetadata(long maxSequenceId,
boolean majorCompaction,
Collection<HStoreFile> storeFiles)
throws IOException
close() since its written as meta data to this file.maxSequenceId - Maximum sequence id.majorCompaction - True if this file is product of a major compactionstoreFiles - The compacted store files to generate this new fileIOException - problem writing to FSpublic void appendMetadata(long maxSequenceId,
boolean majorCompaction,
long mobCellsCount)
throws IOException
close() since its written as meta data to this file.maxSequenceId - Maximum sequence id.majorCompaction - True if this file is product of a major compactionmobCellsCount - The number of mob cells.IOException - problem writing to FSpublic void appendMobMetadata(org.apache.hbase.thirdparty.com.google.common.collect.SetMultimap<TableName,String> mobRefSet) throws IOException
mobRefSet - - original table -> set of MOB file namesIOException - problem writing to FSpublic void appendTrackedTimestampsToMetadata()
throws IOException
IOExceptionpublic void beforeShipped()
throws IOException
ShipperListenerShipper.shipped() is performedbeforeShipped in interface ShipperListenerIOExceptionpublic org.apache.hadoop.fs.Path getPath()
public List<org.apache.hadoop.fs.Path> getPaths()
public boolean hasGeneralBloom()
public void close()
throws IOException
IOExceptionpublic void appendFileInfo(byte[] key,
byte[] value)
throws IOException
IOExceptionpublic static org.apache.hadoop.fs.Path getUniqueFile(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path dir)
throws IOException
dir - Directory to create file in.dirIOExceptionpublic void appendAll(List<Cell> cellList) throws IOException
CellSinkappendAll in interface CellSinkcellList - the cell list to be addedIOExceptionpublic void append(Cell cell) throws IOException
CellSinkappend in interface CellSinkcell - the cell to be addedIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.