public class StoreFileWriter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StoreFileWriter.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected HFile.Writer |
writer |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Cell 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() |
void |
close() |
Path |
getPath() |
boolean |
hasGeneralBloom() |
void |
trackTimestamps(Cell cell)
Record the earlest Put timestamp.
|
public void appendMetadata(long maxSequenceId,
boolean majorCompaction)
throws java.io.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 compactionjava.io.IOException - problem writing to FSpublic void appendMetadata(long maxSequenceId,
boolean majorCompaction,
long mobCellsCount)
throws java.io.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.java.io.IOException - problem writing to FSpublic void appendTrackedTimestampsToMetadata()
throws java.io.IOException
java.io.IOExceptionpublic void trackTimestamps(Cell cell)
public void append(Cell cell)
throws java.io.IOException
java.io.IOExceptionpublic void beforeShipped()
throws java.io.IOException
java.io.IOExceptionpublic Path getPath()
public boolean hasGeneralBloom()
public void close()
throws java.io.IOException
java.io.IOExceptionpublic void appendFileInfo(byte[] key,
byte[] value)
throws java.io.IOException
java.io.IOException