@InterfaceAudience.Private public class StoreFileWriter extends Object implements CellSink, ShipperListener
| 限定符和类型 | 类和说明 |
|---|---|
static class |
StoreFileWriter.Builder |
| 限定符和类型 | 字段和说明 |
|---|---|
protected HFile.Writer |
writer |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
append(Cell cell)
Append the given cell
|
void |
appendFileInfo(byte[] key,
byte[] value) |
void |
appendMetadata(long maxSequenceId,
boolean majorCompaction)
Writes meta data.
|
void |
appendMetadata(long maxSequenceId,
boolean majorCompaction,
long mobCellsCount)
Writes meta data.
|
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() |
boolean |
hasGeneralBloom() |
void |
trackTimestamps(Cell cell)
Record the earlest Put timestamp.
|
protected HFile.Writer writer
public 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,
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 appendTrackedTimestampsToMetadata()
throws IOException
IOExceptionpublic void trackTimestamps(Cell cell)
public void append(Cell cell) throws IOException
CellSinkappend 在接口中 CellSinkcell - the cell to be addedIOExceptionpublic void beforeShipped()
throws IOException
ShipperListenerShipper.shipped() is performedbeforeShipped 在接口中 ShipperListenerIOExceptionpublic org.apache.hadoop.fs.Path getPath()
public boolean hasGeneralBloom()
public void close()
throws IOException
IOExceptionpublic void appendFileInfo(byte[] key,
byte[] value)
throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.