Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script: fields API for byte, double, float, integer, long, short #81126

Merged
merged 4 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,35 @@ class org.elasticsearch.script.field.BooleanDocValuesField @dynamic_type {
boolean get(boolean)
boolean get(int, boolean)
}

class org.elasticsearch.script.field.IntegerDocValuesField @dynamic_type {
int get(int)
int get(int, int)
}

class org.elasticsearch.script.field.LongDocValuesField @dynamic_type {
long get(long)
long get(int, long)
}

class org.elasticsearch.script.field.DoubleDocValuesField @dynamic_type {
double get(double)
double get(int, double)
}

class org.elasticsearch.script.field.FloatDocValuesField @dynamic_type {
float get(float)
float get(int, float)
}

# defaults are cast to byte, taking an int facilitates resolution with constants without casting
class org.elasticsearch.script.field.ByteDocValuesField @dynamic_type {
byte get(int)
byte get(int, int)
}

# defaults are cast to short, taking an int facilitates resolution with constants without casting
class org.elasticsearch.script.field.ShortDocValuesField @dynamic_type {
short get(int)
short get(int, int)
}
Loading