Skip to content

Commit

Permalink
GEOMESA-1280 Fixing evaluation of exact count query hint (#959)
Browse files Browse the repository at this point in the history
Signed-off-by: Emilio Lahr-Vivaz <elahrvivaz@ccri.com>
  • Loading branch information
elahrvivaz authored and jnh5y committed Jun 23, 2016
1 parent f03d65c commit d495516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ package object accumulo {
val CONFIG_FILE = PropAndDefault("geomesa.config.file", "geomesa-site.xml")

object QueryProperties {
val QUERY_EXACT_COUNT = PropAndDefault("geomesa.force.count", "true")
val QUERY_EXACT_COUNT = PropAndDefault("geomesa.force.count", "false")
val QUERY_COST_TYPE = PropAndDefault("geomesa.query.cost.type", null)
val QUERY_TIMEOUT_MILLIS = PropAndDefault("geomesa.query.timeout.millis", null) // default is no timeout
val SCAN_BATCH_RANGES = PropAndDefault("geomesa.scan.ranges.batch", "20000")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ package object index {
Option(hints.get(TRANSFORM_SCHEMA).asInstanceOf[SimpleFeatureType])
def getTransform: Option[(String, SimpleFeatureType)] =
hints.getTransformDefinition.flatMap(d => hints.getTransformSchema.map((d, _)))
def isExactCount: Option[Boolean] = Option(hints.get(EXACT_COUNT).asInstanceOf[Boolean])
def isExactCount: Option[Boolean] = Option(hints.get(EXACT_COUNT)).map(_.asInstanceOf[Boolean])
}
}

Expand Down

0 comments on commit d495516

Please sign in to comment.