Questions tagged [record]

A record in programming is a data type with labels to access fields of the record.

Filter by
Sorted by
Tagged with
1 vote
1 answer
60 views

Generate records from Json schema

For many of my projects I like to use the org.jsonschema2pojo.jsonschema2pojo-maven-plugin maven plugin in order to generate some POJO class from a json schema file. This works great and saves me from ...
Joe Caruso's user avatar
  • 1,335
0 votes
3 answers
60 views

Setting up a record in typescript using keyof typeof

I've set up an object with my enum-like times of das as follows and I'm trying to make the correct type for a record based on these entries. export const TIMEOFDAY = { FirstLight: 'First Light', ...
All Bits Equal's user avatar
3 votes
0 answers
95 views

What does Java's record equals() method actually do under the hood?

In my Java code, I have a simple record class just like so: record SingleIndexProperties<A>(A property) implements IndexProperties { // Here go implementations of IndexProperties methods; ...
Lukáš Petrovický's user avatar
21 votes
1 answer
2k views

Are records syntactic sugar for classes?

I recently discovered Java records, and it was amazing to learn about their existence and purpose. However, I began to wonder if they are essentially just classes behind the scenes. Does this mean ...
guizo792's user avatar
  • 406
0 votes
1 answer
30 views

To get the latest data from mysql [duplicate]

2023-11-16 12:27:21.677826 2023-11-16 12:27:21.832048 2023-11-16 12:27:21.978845 2023-11-16 12:27:22.010928 2023-11-16 12:27:22.037900 2023-11-16 12:33:31.663295 2023-11-16 12:33:31.685133 2023-11-16 ...
shashank Bharadwaj's user avatar
1 vote
1 answer
36 views

Use Record Class with select new spring data jpa

Is it possible to use record as return type with select new syntax in spring data jpa query ? Something like this: @query("select new path-to-my-record.MyRecord(...) List<MyRecord> myQuery(...
Amir Choubani's user avatar
0 votes
1 answer
131 views

Constant Expression Expected Error when Initializing Array of Records

I am facing an issue while trying to initialize a constant array of records in Delphi. Here's a simplified version of my code: TParameterList = record Parm_Name: string; Parm_Unit: string; ...
Issam's user avatar
  • 67
1 vote
0 answers
43 views

Flutter package record: input device not found

I downloaded the Flutter record 5.0.1 and ran the example in lib/. I got the following error: flutter: wav supported: true flutter: [] flutter: PlatformException(record, Failed to start recording, ...
Shinjou Fang's user avatar
2 votes
1 answer
22 views

Optimizing Stream-to-JSON Conversion for Performance and Memory Efficiency

I have a Ballerina program where I'm converting a stream of records to JSON using a custom convertToJson function. The current implementation involves looping through each record and invoking the ...
MOHAMED SABTHAR's user avatar
0 votes
0 answers
6 views

How is it possible to create a single mx for multiple domains, just as Google does with its GSuite/Works service?

How is it possible to create a single mx for multiple domains, just as Google does with its GSuite/Works service? What we need, a server, a service?? I try a lot of posible solutions but no one let ...
Felipe Andres Quiroz Sandoval's user avatar
0 votes
0 answers
72 views

Delphi: adequate data structure for headered blocks

As far as I know one of the most used data structure cannot represented by an adequate dta structure directly: we speak about blocks or streams with header. Let's imagine a simple image format, where ...
Zoltán Bíró's user avatar
0 votes
1 answer
35 views

Adding Record in DBF from VFP9 Form entry

I have created a Form which will add the student's details in DBF. The DBF field names are stud_fnme, stud_mnme, stud_lnme, stud_dob etc. there are total 30 fields. I want, once entering the details ...
EddieM's user avatar
  • 1
1 vote
1 answer
46 views

What is the best API documentation approach for Ballerina record types?

Which one is the recommended documentation approach for Ballerina record types, considering the below options? Approach 1: # Provides extracted tools and service URL from the OpenAPI specification. # ...
Sasindu Dilshara's user avatar
1 vote
1 answer
50 views

springboot 3 application yml properties @value

in my application.yml I have the following cors-allowed-origins: url-origins: - http://host.docker.internal:81/ - http://localhost:8081/* - http://digitale.com/ - http://share....
YosriN's user avatar
  • 51
0 votes
0 answers
43 views

How to delete records from a data table using data from a column, python flet

I want to know how I can delete a record from my table using data from a column, not by number of columns. this is my table self.tablaCilindros = DataTable( columns=[ DataColumn(...
Diego Marin's user avatar
1 vote
2 answers
69 views

C# create derived record from base record instance

Through the keyword with one can generate a new record with some or all of its properties set to the source's values. Can we do something similar, but from a base record to another one that extends it?...
Andrea Bardelli's user avatar
0 votes
0 answers
147 views

Optimize Delphi Reading Records From File

I would like to optimize the reading from a file where I have records that contains (to make it easy) a datetime, and some values. The records are sorted in the file (the older one is at the beginning ...
Nizarazu's user avatar
0 votes
1 answer
35 views

Extract nested record fields using reflection

commons-beanutils can retrieve nested values from beans: public class Person { Address address; public Address getAddress() { return address; } } public class Address { String city; public ...
Knight Industries's user avatar
0 votes
1 answer
24 views

Custom serialization from Record to JSON

I have the following Ballerina code snippet: import ballerina/io; type Date record {| string year; string month?; string day?; |}; public function main() { Date birthDate = { ...
Chiran Sachintha's user avatar
0 votes
0 answers
16 views

Not all "properties" of user-defined-type is being accepted

So i've had this error in which i created a type type TeamLeagueStats is record( teamId TEAM.TEAMID%type, teamName TEAM.TEAMNAME%type, wins NUMBER, losses NUMBER, ...
Yanis's user avatar
  • 5
0 votes
0 answers
21 views

Crystal Reports - Pull record based on values in different tables

I have a report where I am looking at an AR table to pull in billing information. AR.CustID stores a customer # and AR.JobID stores the job number. There is a Job table that stores a job number - ...
Df1's user avatar
  • 13
-2 votes
1 answer
93 views

Update a single record field in an anonymous record in OCaml

This is not valid syntax, but is there something similar that can be done to get a new updated anonymous record, similar as using with with normal records? type user = User {id: int, ... more fields} ...
Olle Härstedt's user avatar
0 votes
0 answers
8 views

I modified the auto-increment on an index and when I create a new record I get 2 new records

When I create a new record I get 2, each with a different index value. I wanted to add auto increment to my index, and I did, but it was already defined as auto-increment, so I did it twice!! How can ...
user1897618's user avatar
2 votes
2 answers
181 views

How many fields can a Java record hold?

What is the maximum number of properties (“record components”, technically) defined in a Java record? I read the specification, JEP 395: Records. No mention of a limit.
Basil Bourque's user avatar
0 votes
0 answers
17 views

I have a question about implementing the camera shooting and editing functions

I am trying to create a video platform app that includes camera shooting and editing functions. I have a question about implementing the camera shooting and editing functions. hello. We are in the ...
SungJae Jung's user avatar
2 votes
0 answers
145 views

What needs to be covered in a java record

I was doing some junit testing in my codebase and found that Intellij is marking all my simple Record classes as 0% covered I have a simple record that looks like this : public record ...
floxcc's user avatar
  • 62
0 votes
0 answers
17 views

Recording WAV files in safari and chrome yields different codecs

I am trying to do a text to speech app that uses the google transcoder service, i am trying to get my app to run on chrome and safari but i figured that they don't encode WAV files (the file i am ...
Kaki Master Of Time's user avatar
0 votes
2 answers
103 views

MethodHandle cannot be cracked when using LambdaMetafactory?

I want to convert a Record's constructor to a Function<Object[], T> using lambdametafactory (T is a generic type), here are my codes: public record R( String a, String b ) { } ...
benrush's user avatar
  • 45
0 votes
2 answers
88 views

How do I ensure a record's discriminant value is equal to another record component's value?

I have a File_Reader composed of two records, File and Buffer. I would like to ensure both Records always have a valid buffer size when initialized, i.e. Data_File.IO_Buffer_Size is equal to Data_In....
ATL_DEV's user avatar
  • 9,372
1 vote
1 answer
71 views

Is there an elegant way to "override" Dhall records in Haskell?

I'm using Dhall to accept user configurations. Some field are compulsory while the others are optional, whose default values should be used when left unspecified by the user. This is what I currently ...
Futarimiti's user avatar
-1 votes
1 answer
50 views

How to match typescript Record value with the key?

interface User { email: string; name: string; } const UserRecord = Record<keyof User, keyof User> { email: 'email', name: 'name', }; My problem with the above code that it's not ...
meightythree's user avatar
0 votes
0 answers
18 views

Updating a dependently typed field without updating what it depends on

I'd like to use record update syntax to update a dependently-typed field without also changing the field it depends on. So I'd like to have Idris 2 evaluate the other field, and realize everything is ...
Cactus's user avatar
  • 27.1k
1 vote
0 answers
16 views

JOOQ: is it possible to map one record to multiple tables with same structure? [duplicate]

I may have three tables App_A, App_B, and App_C. they have the same structure (column names) and they will change together(eg. renaming/adding columns). The reason for having different tables for the ...
ryang's user avatar
  • 151
1 vote
1 answer
73 views

How to create Record from application.yaml in Spring boot

We are creating APIs using spring boot and there are some configurations that would supply as env in the docker container ad below: config: host: ${HOST} apiKey: ${API_KEY} I need this host and ...
Nitin's user avatar
  • 2,721
2 votes
1 answer
188 views

How can I create a typedef representing a Dart record with named fields?

I would like to define a typedef representing a Dart record with named fields but am not sure what the syntax would be. The code below shows how to define the typedef Command representing a record ...
Dan R's user avatar
  • 135
0 votes
0 answers
58 views

Constrain a type to F# records?

I'm trying to write a generic database storage function that appends a field to a record before saving it. Here's the general idea: let storeItem item = let itemType = item.GetType().Name let ...
Brian Vallelunga's user avatar
0 votes
0 answers
27 views

setSampleBufferDelegate not calling didOutput for audiodata

I have created capture session. added vieo and audio inputs added output for video and audio setsamplebufferdelegate for audio and video inputs My didOutput is called for video but not for audio. i ...
fromlucknow's user avatar
0 votes
2 answers
45 views

How can I set a "safe" running "mode" that determines the collective behavior of django model superclasses I created?

Sorry for the poorly worded title. I just don't know how to phrase it succinctly. UPDATE: Reframing my question I decided to reframe my question because in responding to a comment, I realized that ...
hepcat72's user avatar
  • 912
0 votes
0 answers
67 views

Cannot instance an JEqualizer in android

In FMX Delphi 11 I'm recording audio to process it. Here is a snippet of the code: FChannelConfig:= TJAudioFormat.JavaClass.CHANNEL_IN_STEREO; FAudioFormat := TJAudioFormat.JavaClass....
lefjucabro's user avatar
1 vote
0 answers
67 views

Record lock issue in MySQL

Since a couple of days, I've been experiencing a MySQL issue in a large table (over 800,000 records). I've determined so far that the issue so far seems to be with 2 records, s I'm unable to update ...
Jeffrey's user avatar
  • 421
0 votes
0 answers
91 views

Spring Boot 3 WebFlux with router function can't deserialize Record from json

I'm sending a json to my WebFlux application and I'm receiving a 415 Unsupported Media Type exception. Here is my routerFunction: @Bean public RouterFunction<ServerResponse> groupRoute(...
Nicolas Sagala Beaucage's user avatar
0 votes
0 answers
20 views

Instantiate a Record in a generic method

I am using a Record as a DTO: public record AccountTypeDTO(string Id, string Name):IEntityDTOBase; IEntityDTOBase is used only to access both properties Id and Name. At this step I'm creating an ...
Manta's user avatar
  • 490
1 vote
1 answer
86 views

How to suppress missing field warnings for record fields isomorphic to void?

Lets say I have a datatype like the following: data File' key generated value = File { id :: key Int, md5Hash :: generated Text, contents :: value Text, description :: value Text . . } ...
Clinton's user avatar
  • 22.5k
0 votes
0 answers
215 views

How to record webrtc media stream in flutter

everyone. I want your help. I am developing sip call app using sip_ua package. This package doesn't support call recording feature so to do that, I have to use another package or platform-specific API....
Ben Alex's user avatar
0 votes
0 answers
56 views

how to create a call recorder app from call with someone in Flutter?

I want to make a program that records sound in flutter, but it is not possible. Is there any solution for this? I want to use it for employees, I just download the apk for them to use, I don't make ...
Ali Xr's user avatar
  • 1
0 votes
0 answers
54 views

Flutter: Audio Slider is not working properly in Chat

I am working in a chat where i added voice message feature. I used audioplayer and record package for this, and it is working perfectly. But problem is let say i sent two audio when i play the first ...
sarakhan's user avatar
0 votes
0 answers
24 views

How to test ConfigurtionProperties for immutable records?

I have records taking values from configuration properties: @ConfigurationProperties(prefix = "car") public record CarConfig(Type type) { public record Type() {} } I cannot put there @...
Koin Arab's user avatar
  • 1,055
0 votes
1 answer
159 views

How to play the recorded audio using audioplayer package in flutter

I am trying to add voice message feature on my chat app. I am using record_mp3 package to record voice and audioplayer to play it. but audioplayer is not accepting the url. i used this package to play ...
sarakhan's user avatar
3 votes
3 answers
563 views

Dart nullable records with pattern matching: The matched value of type '(String, int)?' isn't assignable to the required type '(Object?, Object?)'

Given the following function: (String, int)? getPair() { return ('hello', 42); } I can access the multiple returns using the fields like so: final pair = getPair(); if (pair != null) { String ...
Suragch's user avatar
  • 491k
1 vote
0 answers
47 views

Typescript fails to infer key-value pairs from lookup

In the below example I try to map to a list of InnerNamed typed values from a lookup of typed values, (see InnerNamed definition) but the inferred type is way too broad. In the end, the type of ...
cefn's user avatar
  • 2,925

1
2 3 4 5
60