public abstract class BinaryFileRegionDataOutput extends Object implements RegionDataOutput
| Modifier and Type | Field and Description |
|---|---|
protected String |
filename |
protected OutputStream |
out |
protected long |
writeBytes |
| Constructor and Description |
|---|
BinaryFileRegionDataOutput(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
init() |
protected abstract byte[] |
serialize(RegionDTO regionDTO) |
void |
write(RegionDTO regionDTO)
Write region data
|
protected OutputStream out
protected String filename
protected long writeBytes
public BinaryFileRegionDataOutput(String filename)
public void init()
throws IOException
init in interface RegionDataOutputIOExceptionpublic void write(RegionDTO regionDTO) throws IOException
RegionDataOutputwrite in interface RegionDataOutputregionDTO - region data to write.IOException - if an I/O error occurs.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected abstract byte[] serialize(RegionDTO regionDTO)
Copyright © 2019. All rights reserved.