/
Reindex.scala
57 lines (50 loc) · 1.26 KB
/
Reindex.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package geotrellis.spark.pipeline.json.reindex
import geotrellis.spark.pipeline._
import geotrellis.spark.pipeline.json.{PipelineExpr, PipelineKeyIndexMethod}
import io.circe.generic.extras.ConfiguredJsonCodec
trait Reindex extends PipelineExpr {
val name: String
val profile: String
val uri: String
val keyIndexMethod: PipelineKeyIndexMethod
}
@ConfiguredJsonCodec
case class Hadoop(
name: String,
profile: String,
uri: String,
keyIndexMethod: PipelineKeyIndexMethod,
`type`: String = "reindex.hadoop"
) extends Reindex
@ConfiguredJsonCodec
case class S3(
name: String,
profile: String,
uri: String,
keyIndexMethod: PipelineKeyIndexMethod,
`type`: String = "reindex.s3"
) extends Reindex
@ConfiguredJsonCodec
case class Accumulo(
name: String,
profile: String,
uri: String,
keyIndexMethod: PipelineKeyIndexMethod,
`type`: String = "reindex.accumulo"
) extends Reindex
@ConfiguredJsonCodec
case class Cassandra(
name: String,
profile: String,
uri: String,
keyIndexMethod: PipelineKeyIndexMethod,
`type`: String = "reindex.cassandra"
) extends Reindex
@ConfiguredJsonCodec
case class HBase(
name: String,
profile: String,
uri: String,
keyIndexMethod: PipelineKeyIndexMethod,
`type`: String = "reindex.hbase"
) extends Reindex