Appendix A. Painless API Referenceedit

Painless has a strict whitelist for methods and classes to make sure that all painless scripts are secure and fast. Most of these methods are exposed directly from the JRE while others are part of Elasticsearch or Painless itself. Below is a list of all available methods grouped under the classes on which you can call them. Clicking on the method name takes you to the documentation for the method.

Note

Methods defined in the JRE also have a (java 9) link which can be used to see the method’s documentation in Java 9 while clicking on the method’s name goes to the Java 8 documentation. Usually these aren’t different but it is worth going to the version that matches the version of Java you are using to run Elasticsearch just in case.

AbstractChronology
AbstractCollection
AbstractList
AbstractMap
AbstractMap.SimpleEntry
AbstractMap.SimpleImmutableEntry
AbstractQueue
AbstractSequentialList
AbstractSet
Annotation
Appendable
ArithmeticException
ArrayIndexOutOfBoundsException
ArrayList
ArrayStoreException
Arrays
Base64.Decoder
Base64.Encoder
BiConsumer
BiFunction
BiPredicate
Bidi
BigDecimal
BigInteger
BinaryOperator
BitSet
Boolean
BooleanSupplier
Byte
BytesRef
Calendar
Character
Character.Subset
  • Inherits methods from Object
Character.UnicodeBlock
Character.UnicodeScript
CharacterIterator
ChoiceFormat
ChronoField
ClassCastException
ClassNotFoundException
Clock
CloneNotSupportedException
CollationElementIterator
CollationKey
Collator
Collection
Collections
Collectors
Comparable
ConcurrentModificationException
Consumer
Date
DateFormat
DateTimeException
DateTimeFormatter
DateTimeFormatterBuilder
DateTimeParseException
Debug
Deque
Dictionary
Double
DoubleBinaryOperator
DoubleConsumer
DoubleFunction
DoublePredicate
DoubleStream
DoubleStream.Builder
DoubleSummaryStatistics
DoubleSupplier
DoubleToIntFunction
DoubleToLongFunction
DuplicateFormatFlagsException
Duration
EmptyStackException
Enum
EnumConstantNotPresentException
Enumeration
EventListener
  • Inherits methods from Object
EventListenerProxy
EventObject
FieldPosition
Float
Format.Field
  • Inherits methods from Object
FormatFlagsConversionMismatchException
FormatStyle
Formattable
FormattableFlags
Formatter.BigDecimalLayoutForm
FormatterClosedException
Function
GregorianCalendar
HashMap
HashSet
Hashtable
HijrahEra
IdentityHashMap
IllegalAccessException
IllegalArgumentException
IllegalFormatCodePointException
IllegalFormatConversionException
IllegalFormatException
IllegalFormatFlagsException
IllegalFormatPrecisionException
IllegalFormatWidthException
IllegalMonitorStateException
IllegalStateException
IllegalThreadStateException
IndexOutOfBoundsException
InputMismatchException