public static class GTBIndexer.Builder
extends edu.sysu.pmglab.easytools.Parallelizable
构造器和说明 |
---|
Builder(edu.sysu.pmglab.unifyIO.Path path)
索引构造器
|
限定符和类型 | 方法和说明 |
---|---|
GTBIndexer |
build()
构造索引对象
|
GTBIndexer |
load()
从默认文件路径 (path.idx) 中加载索引文件
|
GTBIndexer |
load(java.io.File indexerFile)
加载染色体树表
|
GTBIndexer |
load(java.lang.String indexerFileName)
加载染色体树表
|
GTBIndexer.Builder |
mapRecordToVariant(java.util.function.Function<edu.sysu.pmglab.ccf.record.IRecord,Variant> mapper)
映射记录到变异位点
|
static GTBIndexer.Builder |
of(java.lang.Object resource)
构造器方法
|
GTBIndexer |
rebuild()
重新构造索引对象
|
GTBIndexer.Builder |
setCoordinateFields(java.lang.Iterable<java.lang.String> fields)
加载的坐标有关的字段
|
GTBIndexer.Builder |
setCoordinateFields(java.lang.String... fields)
加载的坐标有关的字段
|
GTBIndexer.Builder |
setThreads(int threads) |
public static GTBIndexer.Builder of(java.lang.Object resource)
resource
- CCF 资源文件public GTBIndexer.Builder mapRecordToVariant(java.util.function.Function<edu.sysu.pmglab.ccf.record.IRecord,Variant> mapper)
mapper
- 映射器public GTBIndexer.Builder setCoordinateFields(java.lang.String... fields)
fields
- 字段名public GTBIndexer.Builder setCoordinateFields(java.lang.Iterable<java.lang.String> fields)
fields
- 字段名public GTBIndexer.Builder setThreads(int threads)
setThreads
在类中 edu.sysu.pmglab.easytools.Parallelizable
public GTBIndexer load() throws java.io.IOException
java.io.IOException
- IO 异常public GTBIndexer load(java.io.File indexerFile) throws java.io.IOException
indexerFile
- 索引文件路径java.io.IOException
- IO 异常public GTBIndexer load(java.lang.String indexerFileName) throws java.io.IOException
indexerFileName
- 索引文件路径 (可以是本地路径也可以是 HTTP 路径)java.io.IOException
- IO 异常public GTBIndexer build() throws java.io.IOException
java.io.IOException
- IO 异常public GTBIndexer rebuild() throws java.io.IOException
java.io.IOException
- IO 异常