This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.foursquare.base2.MessageLogging | |
| import com.foursquare.hfile.common.HFileUtil.BoundedTBase | |
| import org.apache.hadoop.hbase.io.hfile.{Compression, HFile} | |
| import org.apache.hadoop.hbase.util.Bytes | |
| import org.apache.hadoop.io.{BytesWritable, NullWritable} | |
| import org.apache.hadoop.mapreduce.{RecordWriter, TaskAttemptContext} | |
| import org.apache.hadoop.mapreduce.lib.output.{FileOutputFormat, SequenceFileOutputFormat} | |
| class ThriftSequenceFileOutputFormat[T <: BoundedTBase] extends FileOutputFormat[NullWritable, T] { | |
| private[io] val sequenceOutput = new SequenceFileOutputFormat[NullWritable, BytesWritable]() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 393dd78f964a520782b1fe3 | |
| { | |
| oid: 4cb71a6786e09eb08caf62e2 name: University Center Building | |
| s: 0.1828 | |
| t: 0.0000 | |
| oid: 4d408a3234f42d43f5874385 name: Harlem Heritage and Cultural Center | |
| s: 0.1973 | |
| t: 0.0000 | |
| oid: 4d24597dbda959411386c07d name: Sony Ericsson Tennis Hotspot | |
| s: 0.2124 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.foursquare.venue.rec._ | |
| import com.foursquare.geo.Radius | |
| val bounds = Radius((40.7,-74),10000) | |
| RecommendationSearch.exploreNearbyPopularRankableVenues(services, None, com.foursquare.venue.TopLevelCategory.All, Nil, bounds, 250) |
NewerOlder