Questions tagged as 'lambda'

3
answers

Convert sql to Linq

Select Curso.* from Curso left join AlumnoCurso on Curso.id = AlumnoCurso.Curso_id where AlumnoCurso.Curso_id is null Friends I have this query but I have not managed to know how to pass it to linq or a lambda expression Please help me? At...
asked by 26.07.2016 / 18:01
2
answers

Remove elements from an array that are already in another array

Dear, I have an initial student array and an array of new students. How can I do to obtain an array of new students that are not in the initial student array? This using java lambdas. UPDATE List listaFinal = new ArrayList(); for (Alum...
asked by 14.11.2017 / 23:21
0
answers

Convert SQL to LINQ or LAMBDA [closed]

I would not know how to convert this select into linq or lambda. Mainly the group by and subqueries. select CONVERT(date, tt.FechaHora) ,(select MAX(p.FechaHora) from Transaccion p where CONVERT(date, tT.FechaHora)= CONVERT(date, p.FechaHor...
asked by 04.09.2018 / 15:04
1
answer

Get List item with lambdas

I am trying to migrate a code to Java 8, related to the classic exercises of Student / Teacher / Subject . I have some doubts about whether I am performing this lambda correctly to select a Student by id (Long field) of a List. Code to obtai...
asked by 19.05.2016 / 23:49
2
answers

java 8 Lambda expression

Good, can someone explain in detail what makes this expression in particular? listModels.addAll(listaDao.stream().map(this::personEntityToPersonModel).collect(Collectors.toList())); I have the method: private PersonModel personEntityToPe...
asked by 11.10.2017 / 16:54
0
answers

Best way to use a Java 8 stream with class and subclass

Dear community, I have a problem in how to use streams, I have 3 classes: public Class A{ String string1A; String string2A; List<B> listB; . . . } public Class B{ String string1B; String string2B; . . . } public Class C{...
asked by 15.10.2018 / 18:54
0
answers

Python Connection MSSQL AWS Lambda

I'm trying to connect a lambda function in AWS, to an MSSQL database with no results I'm using the pyodbc library, but it gives me the following problems from datetime import datetime from dateutil.parser import parse from os import getenv...
asked by 17.05.2018 / 23:09
0
answers

Does not order an object with lambda (Java 8)

I am making a query of a table as an object to insert it in another table. Sorting with lambda the student_code. I did a proof of concept with two integer values and if it worked, but when I do it with 2 values String does not order them. publ...
asked by 21.03.2018 / 01:52
1
answer

How to filter nested lists of objects 5 levels

I'm investigating how to filter lists of nested objects. But I'm not capable .... The object that I try to filter is: var objList = [ { "name": "Object0Name", "id": "Object0ID", "Object1List": [ { "id":...
asked by 19.03.2018 / 22:07
0
answers

Convert JSON file to ORC [AWS]

I make a summary of my situation. I have an application that rotates json files to an s3 bucket. I would need to transform those files into ORC format to be consulted from Athena or EMR. My first attempt was with a landa programmed in Node, but...
asked by 16.03.2018 / 20:33