public class HFileWriterImpl extends Object implements HFileWriter
| Constructor and Description |
|---|
HFileWriterImpl(HFileContext context,
OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
addKeyLength(byte[] key) |
void |
append(String key,
byte[] value)
Append a key-value pair into a data block.
|
void |
appendFileInfo(String name,
byte[] value)
Append a piece of file info.
|
void |
appendMetaInfo(String name,
byte[] value)
Append a piece of meta info.
|
void |
close() |
protected void |
finishFileInfo() |
public HFileWriterImpl(HFileContext context, OutputStream outputStream)
public void append(String key, byte[] value) throws IOException
HFileWriterappend in interface HFileWriterIOExceptionpublic void appendMetaInfo(String name, byte[] value)
HFileWriterappendMetaInfo in interface HFileWriterpublic void appendFileInfo(String name, byte[] value)
HFileWriterappendFileInfo in interface HFileWriterpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected void finishFileInfo()
public byte[] addKeyLength(byte[] key)
Copyright © 2025 The Apache Software Foundation. All rights reserved.