Skip to content

Commit

Permalink
TMP: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnmatrix committed Apr 2, 2020
1 parent 0b0fe2d commit f9f57f0
Showing 1 changed file with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,31 @@ public Object getField(String fieldName) {
return new GenericJsonRecord(schemaVersion, fields, fn);
} else if (fn.isBoolean()) {
return fn.asBoolean();
} else if (fn.isInt()) {
return fn.asInt();
} else if (fn.isFloatingPointNumber()) {
return fn.asDouble();
} else if (fn.isBigInteger()) {
if (fn.canConvertToLong()) {
return fn.asLong();
} else {
return fn.asText();
}
} else if (fn.isNumber()) {
return fn.numberValue();
} else if (fn.isDouble()) {
return fn.asDouble();
} else {
return fn.asText();
}
// } else if (fn.isBoolean()) {
// return fn.asBoolean();
// } else if (fn.isFloatingPointNumber()) {
// return fn.asDouble();
// } else if (fn.isBigInteger()) {
// if (fn.canConvertToLong()) {
// return fn.asLong();
// } else {
// return fn.asText();
// }
// } else if (fn.isNumber()) {
// return fn.numberValue();
// } else {
// return fn.asText();
// }


}
}

0 comments on commit f9f57f0

Please sign in to comment.