Examples of sortBy()


Examples of com.dooapp.gaedo.finders.QueryStatement.sortBy()

  public Object find(FinderCrudService service,
      Map<String, Object> filterParams, Map<String, Object> sortParams,
      Map<String, Object> returnParams) {
    // TODO find a way to make use of IdBasedService, because that's obviously not the case here
    QueryStatement statement =  service.find().matching(queryTranscripter.buildQuery(service, filterParams));
    statement = statement.sortBy(sortingTranscripter.buildSorting(service, sortParams));
    return returnTranscriptor.buildReturn(statement, returnParams);
  }

  /**
   * Create an error representation and returns it
View Full Code Here

Examples of com.dooapp.gaedo.finders.QueryStatement.sortBy()

  public Object find(FinderCrudService service,
      Map<String, Object> filterParams, Map<String, Object> sortParams,
      Map<String, Object> returnParams) {
    // TODO find a way to make use of IdBasedService, because that's obviously not the case here
    QueryStatement statement =  service.find().matching(queryTranscripter.buildQuery(service, filterParams));
    statement = statement.sortBy(sortingTranscripter.buildSorting(service, sortParams));
    return returnTranscriptor.buildReturn(statement, returnParams);
  }

  /**
   * Create an error representation and returns it
View Full Code Here

Examples of com.echonest.api.v4.ArtistParams.sortBy()

        shell.add("qbd", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                ArtistParams p = new ArtistParams();
                p.setResults(displayCount);
                p.sortBy(ArtistParams.SORT_HOTTTNESSS, false);
                // p.sortBy(ArtistParams.SORT_FAMILIARITY, false);

                String description = Shell.mash(args, 1);
                p.addDescription(description);
                List<Artist> artists = en.searchArtists(p);
View Full Code Here

Examples of com.echonest.api.v4.ArtistParams.sortBy()

        shell.add("most_danceable", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                SongParams p = new SongParams();
                p.setArtistID(getArtist(Shell.mash(args, 1)).getID());
                p.sortBy(SongParams.SORT_DANCEABILITY, false);
                p.includeAudioSummary();

                List<Song> songs = en.searchSongs(p);
                for (Song song : songs) {
                    System.out.printf("%.2f %s\n", song.getDanceability(), song
View Full Code Here

Examples of com.echonest.api.v4.ArtistParams.sortBy()

        shell.add("least_danceable", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                SongParams p = new SongParams();
                p.setArtistID(getArtist(Shell.mash(args, 1)).getID());
                p.sortBy(SongParams.SORT_DANCEABILITY, true);
                p.includeAudioSummary();

                List<Song> songs = en.searchSongs(p);
                for (Song song : songs) {
                    System.out.printf("%.2f %s\n", song.getDanceability(), song
View Full Code Here

Examples of com.echonest.api.v4.ArtistParams.sortBy()

        shell.add("most_energy", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                SongParams p = new SongParams();
                p.setArtistID(getArtist(Shell.mash(args, 1)).getID());
                p.sortBy(SongParams.SORT_ENERGY, false);
                p.includeAudioSummary();

                List<Song> songs = en.searchSongs(p);
                for (Song song : songs) {
                    System.out.printf("%.2f %s\n", song.getEnergy(), song
View Full Code Here

Examples of com.echonest.api.v4.ArtistParams.sortBy()

        shell.add("least_energy", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                SongParams p = new SongParams();
                p.setArtistID(getArtist(Shell.mash(args, 1)).getID());
                p.sortBy(SongParams.SORT_ENERGY, true);
                p.includeAudioSummary();

                List<Song> songs = en.searchSongs(p);
                for (Song song : songs) {
                    System.out.printf("%.2f %s\n", song.getEnergy(), song
View Full Code Here

Examples of com.echonest.api.v4.ArtistParams.sortBy()

        shell.add("hot_songs", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                boolean old_way = true;
                SongParams p = new SongParams();
                p.sortBy(SongParams.SORT_SONG_HOTTTNESSS, false);

                String description = Shell.mash(args, 1);

                if (old_way) {
                    p.addDescription(description);
View Full Code Here

Examples of com.echonest.api.v4.Params.sortBy()

        shell.add("qbd", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                ArtistParams p = new ArtistParams();
                p.setResults(displayCount);
                p.sortBy(ArtistParams.SORT_HOTTTNESSS, false);
                // p.sortBy(ArtistParams.SORT_FAMILIARITY, false);

                String description = Shell.mash(args, 1);
                p.addDescription(description);
                List<Artist> artists = en.searchArtists(p);
View Full Code Here

Examples of com.echonest.api.v4.Params.sortBy()

        shell.add("most_danceable", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                SongParams p = new SongParams();
                p.setArtistID(getArtist(Shell.mash(args, 1)).getID());
                p.sortBy(SongParams.SORT_DANCEABILITY, false);
                p.includeAudioSummary();

                List<Song> songs = en.searchSongs(p);
                for (Song song : songs) {
                    System.out.printf("%.2f %s\n", song.getDanceability(), song
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.