asterixdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandraskarshaug@gmail.com <sandraskarsh...@gmail.com>
Subject Re: Derived types in Java UDF?
Date Tue, 12 Mar 2019 12:19:38 GMT
Does this make sense in order to add TermFrequencyType objects to termFrequencies?

termFrequencies.add(
     new JRecord(
         new ARecordType("TermFrequencyType", getTermFrequencyFields(), getFieldTypes(), false),

         new IJObject[]{ new JString("hello"), new JInt(1) }
     )
);

And have I understood it correctly if I implement getFieldTypes() like this:

IAType[] getFieldTypes() {
   return new IAType[]{BuiltinType.ASTRING, BuiltinType.AINT32};
}



Mime
View raw message