public class GTBWriter
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GTBWriter.Builder
GTBWriter 构造器
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
关闭文件流
|
edu.sysu.pmglab.container.File |
getOutputFile()
获取文件对象
|
int |
getSubjectNum()
获取样本数
|
long |
getVariantNum()
获取已写入的位点数
|
void |
write(Variant variant)
写入一个位点
|
void |
write(Variants variants)
写入多个位点
|
GTBWriter |
writeMeta(edu.sysu.pmglab.container.ByteCode key,
edu.sysu.pmglab.container.ByteCode value)
写入元信息
|
GTBWriter |
writeMeta(edu.sysu.pmglab.ccf.CCFMeta meta)
写入元信息
|
GTBWriter |
writeMeta(java.lang.String key,
java.lang.String value)
写入元信息
|
public GTBWriter writeMeta(java.lang.String key, java.lang.String value)
key - 元信息键value - 元信息值public GTBWriter writeMeta(edu.sysu.pmglab.container.ByteCode key, edu.sysu.pmglab.container.ByteCode value)
key - 元信息键value - 元信息值public GTBWriter writeMeta(edu.sysu.pmglab.ccf.CCFMeta meta)
meta - 元信息对象public long getVariantNum()
public edu.sysu.pmglab.container.File getOutputFile()
public void write(Variants variants) throws java.io.IOException
variants - 多个位点对象java.io.IOException - 来自 CCF 的 IO 异常public void write(Variant variant) throws java.io.IOException
variant - 位点对象java.io.IOException - 来自 CCF 的 IO 异常public void close()
throws java.io.IOException
java.io.IOException - 来自 CCF 的 IO 异常public int getSubjectNum()