in s2core/src/main/scala/org/apache/s2graph/core/types/v2/InnerVal.scala [129:145]
override def hashKey(dataType: String): Int = {
if (value.isInstanceOf[String]) {
// since we use dummy stringn value for degree edge.
value.toString.hashCode()
} else {
dataType match {
case BYTE => value.asInstanceOf[BigDecimal].bigDecimal.byteValue().hashCode()
case FLOAT => value.asInstanceOf[BigDecimal].bigDecimal.floatValue().hashCode()
case DOUBLE => value.asInstanceOf[BigDecimal].bigDecimal.doubleValue().hashCode()
case LONG => value.asInstanceOf[BigDecimal].bigDecimal.longValue().hashCode()
case INT => value.asInstanceOf[BigDecimal].bigDecimal.intValue().hashCode()
case SHORT => value.asInstanceOf[BigDecimal].bigDecimal.shortValue().hashCode()
case STRING => value.toString.hashCode
case _ => throw new RuntimeException(s"NotSupportede type: $dataType")
}
}
}