1.) Boykin Spaniels (mostly bird dogs, love to be outside and will go swimming)
2.) any type of Hound loves this type of exercise, but some don't like their barking..
3.) Terriers love this as well but, you might want one of the tall ones like an American Staffordshire Terrier for the hiking.
Almost any dog will swim and run with you for a while, but really you have to think of the type of hiking you want to do (off trail, cleared path, endurance...). Like for endurance, you want a leaned dog that won't tire as soon (no mastifs or st. bernards). For Off train you wouldn't want a dog that will get tangled in the underbrush, so naturally a short haired dog. And generally a taller dog that can keep up, but probably not as tall as a Great Dane.
So do your research on whatever type of dog you have in mind and make sure it would fit your type of exercise without tiring it out or hurting it.