public static class StoreFile.Writer extends Object implements Compactor.CellSink
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,
Collection<StoreFile> storeFiles)
Writes meta data.
|
void |
appendTrackedTimestampsToMetadata()
Add TimestampRange and earliest put timestamp to Metadata
|
void |
close() |
org.apache.hadoop.fs.Path |
getPath() |
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, Collection<StoreFile> 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 appendTrackedTimestampsToMetadata() throws IOException
IOException
public void trackTimestamps(Cell cell)
cell
- public void append(Cell cell) throws IOException
append
in interface Compactor.CellSink
IOException
public org.apache.hadoop.fs.Path getPath()
public void close() throws IOException
IOException
public void appendFileInfo(byte[] key, byte[] value) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.