Class ValueConversions

java.lang.Object
org.elasticsearch.xpack.esql.arrow.ValueConversions

public class ValueConversions extends Object
Utilities to convert some of byte-encoded ESQL values into to a format more suitable for Arrow output.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.lucene.util.BytesRef
    shortenIpV4Addresses(org.apache.lucene.util.BytesRef value, org.apache.lucene.util.BytesRef scratch)
    Shorten ipv6-mapped ipv4 IP addresses to 4 bytes
    static org.apache.lucene.util.BytesRef
    sourceToJson(org.apache.lucene.util.BytesRef value, org.apache.lucene.util.BytesRef scratch)
    Convert any xcontent source to json
    static org.apache.lucene.util.BytesRef
    versionToString(org.apache.lucene.util.BytesRef value, org.apache.lucene.util.BytesRef scratch)
    Convert binary-encoded versions to strings

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ValueConversions

      public ValueConversions()
  • Method Details

    • shortenIpV4Addresses

      public static org.apache.lucene.util.BytesRef shortenIpV4Addresses(org.apache.lucene.util.BytesRef value, org.apache.lucene.util.BytesRef scratch)
      Shorten ipv6-mapped ipv4 IP addresses to 4 bytes
    • versionToString

      public static org.apache.lucene.util.BytesRef versionToString(org.apache.lucene.util.BytesRef value, org.apache.lucene.util.BytesRef scratch)
      Convert binary-encoded versions to strings
    • sourceToJson

      public static org.apache.lucene.util.BytesRef sourceToJson(org.apache.lucene.util.BytesRef value, org.apache.lucene.util.BytesRef scratch)
      Convert any xcontent source to json