bda-datastore/src/main/java/gr/ntua/ece/cslab/selis/bda/datastore/StorageBackend.java
public List<Tuple> fetch(String type, Integer value) throws Exception {
        if (type.equals("rows"))
            return ELconnector.getLast(value);
        else if (type.equals("days"))
            return ELconnector.getFrom(value);
        else
            throw new Exception("type not found: " + type);
    }
/** Get rows from EventLog. Fetches either the last n messages or the messages received the last n days.
     *  This method requires as input a string that denotes 'days' or 'rows' and an integer that denotes the
     *  number n. **/
Get rows from EventLog. Fetches either the last n messages or the messages received the last n days.
This method requires as input a string that denotes 'days' or 'rows' and an integer that denotes the
number n.
Get rows from EventLog . Fetches either the last n messages or the messages received the last n days . This method requires as input a string that denotes ' days ' or ' rows ' and an integer that denotes the number n .
public List<Tuple> fetch(String type, Integer value) throws Exception {
        if (type.equals("rows"))
            return ELconnector.getLast(value);
        else if (type.equals("days"))
            return ELconnector.getFrom(value);
        else
            throw new Exception("type not found: " + type);
    }
public List < Tuple > fetch ( String type , Integer value ) throws Exception { if ( type . equals ( "rows" ) ) return ELconnector . getLast ( value ) ; else if ( type . equals ( "days" ) ) return ELconnector . getFrom ( value ) ; else throw new Exception ( "type not found: " + type ) ; }
Get rows from EventLog.
Get rows from EventLog .