private LiteralExpression( Object value, PDataType type, byte[] byteValue, Integer maxLength, Integer scale, SortOrder sortOrder, Determinism deterministic) { Preconditions.checkNotNull(sortOrder); this.value = value; this.type = type; this.byteValue = byteValue; this.maxLength = maxLength; this.scale = scale != null ? scale : type == null ? null : type.getScale(value); this.sortOrder = sortOrder; this.determinism = deterministic; }