PORTLAND – The temperature reached into the 90s and the pool at his parents’ home looked inviting, so Ryan Flaherty dove in. Minutes later, his younger brother Regan joined him in a game of pool basketball.

Flaherty, the Baltimore Orioles’ second-year second baseman, was at home in Portland this week to relax during the All-Star break.

“The season’s nice,” said Flaherty, a 2005 Deering High School graduate and one of two Mainers now playing Major League Baseball, “but you’re going a million miles an hour for so long, sometimes it’s nice to just sit here and do nothing.”

When the Orioles’ season resumes Friday in Arlington, Texas, against the Rangers, Flaherty’s season of adjustments will continue. He was a starter for much of the season’s first half because of an injury to second baseman Brian Roberts. Now Roberts is back in the lineup, and Flaherty — despite an eight-game hitting streak in which he hit four home runs just before the All-Star break — is back in a reserve role.

“Yeah, it’s different,” he said. “You’re trying to simulate game action as much as you can, so that you can stay in the game.”

That means arriving at the park early to take extra batting practice. It means taking early infield practice, taking more ground balls. He does much of the work with Mike Bordick, the former University of Maine player from Winterport who’s now a television analyst for the Orioles.

“He’s been a great resource,” said Flaherty, a son of University of Southern Maine baseball coach Ed Flaherty.

Ryan Flaherty watches the first five innings from the dugout, then goes to the indoor batting cage to stretch and hit, and study opposing relief pitchers to prepare for a possible pinch-hitting role.

Flaherty, now a solid 6 feet 3 inches and 210 pounds, has great value to the Orioles, who sit in third place in the American League East, 4½ games behind the Boston Red Sox. He’s athletic and versatile, able to play all four infield positions, plus the outfield. And he’s a left-handed hitter.

Early in the year, however, he struggled. And maybe that was to be expected. When he was a rookie last year, teams didn’t have much information on him. This year?

“The second time around, teams have more film on you, they’ve faced you before, more scouting reports,” he said. “So they make adjustments, kind of like you have to make adjustments offensively to what they’re doing.”

With Roberts injured to begin the season, Flaherty, who will turn 27 on July 27, had his chance to start at second base. He struggled at the plate — something he had really never done, whether in high school, college or the minor leagues.

He went hitless in his first 17 at-bats and his average was just .133 when the Orioles sent him to the minors on May 18. He played for Triple-A Norfolk for 10 days, batted .265 with a couple of home runs, and was recalled by Baltimore. Since then, he’s been a different hitter, with a .300 average in his last 29 games.

“When Roberts went down, I came out and had a chance to play every day this year, and I think you try to do too much, every at-bat you’re going up there trying to win the game for the team,” he said.

Going back to Triple-A, he said, was “actually the best thing that happened to me.” He has become more patient and isn’t swinging at breaking balls in the dirt any more.

Mike D’Andrea, Flaherty’s high school coach at Deering, isn’t surprised at how Flaherty responded.

“This is Major League Baseball,” said D’Andrea, who played in the Atlanta Braves organization. “It isn’t college. It isn’t Legion. It isn’t high school. This is Major League Baseball and it’s OK to get into a slump.

“When I hear people say Ryan can’t hit, I just laugh,” he said. “That’s the one thing he can do.”

Flaherty also knows how to win. His teams won two Class A state baseball championships at Deering, along with a football title. He played on an American Legion national championship team — Nova Seafood. He spent three years with one of the nation’s top college programs — Vanderbilt.

Flaherty said his time growing up in Portland, especially playing for D’Andrea, “taught me how to compete, taught me how to win.”

Flaherty and South Portland’s Charlie Furbush, a relief pitcher with the Seattle Mariners, are the only two Mainers in the majors. For a while, there were three when relief pitcher Ryan Reid, a teammate of Flaherty with Deering and Nova Seafood, was called up to the Pittsburgh Pirates on June 2.

Reid was sent back to Triple-A on July 7 despite pitching well for the Pirates, with a 1.64 earned run average and one save in seven games.

“It was pretty special to have him up in the majors,” said Flaherty. “And there’s not a guy who was more deserving. He worked hard for this.”

D’Andrea said Flaherty and Reid have earned their spots by continuing to push themselves.

“Truthfully, there are a lot of players who can go out and hit and throw and perform, but can they do it when it counts?” he said. “Can they do it in big games? Day-in, day-out through a long season? Can they will their teammates to do that? That’s what those two did.

“They’re special people and special players and we’re all fortunate to have been part of their careers at any point,” D’Andrea said.

Flaherty spoke to Reid after he got sent down. He tries to keep in touch with many of his Portland friends. He also speaks to his father frequently, though the conversations these days tend to be more personal and less about baseball.

“We may talk about a game,” said Ed Flaherty, “but I never tell him what he should be doing. That’s what his coaches are for. I don’t coach at the major league level.”

Like any parent, Ed Flaherty wants to see his son succeed. Being a baseball coach, he knows how hard that is.

“The one thing I’ve said to Ryan is that you don’t want to be in the pack,” said Ed Flaherty. “You want to be like (21-year-old All-Star third baseman) Manny Machado. You want it so that there is no indecision as to whether you’re going to be in the lineup or not.”

Flaherty knows what it will take to get to that level. After all, being from Maine, he’s had to prove himself at every level.

“When I was growing up, I’d tell my teachers and parents that I wanted to play Major League Baseball, and they’d tell me to go for it but be realistic, more so than the kids from California or Texas,” he said. “Being from Maine, you have to outwork everyone. The resources here are sometimes limited and the weather restricts everything. So you have to put the extra time in.”

Mike Lowe can be contacted at 791-6422 or at:

mlowe@pressherald.com

Twitter: MikeLowePPH