elasticsearch/libs/x-content
Jordan Powers de40ac45d1
Move Text class to libs/xcontent (#128780)
This PR is a precursor to #126492.

It does three things:
1. Move org.elasticsearch.common.text.Text from :server to
   org.elasticsearch.xcontent.Text in :libs:x-content.
2. Refactor the Text class to use a new EncodedBytes record instead of
   the elasticsearch BytesReference.
3. Add the XContentString interface, with the Text class implementing
   that interface.

These changes were originally implemented in #127666 and #128316,
however they were reverted in #128484 due to problems caused by the
mutable nature of java ByteBuffers. This is resolved by instead using a
new immutable EncodedBytes record.
2025-06-04 11:22:03 -07:00
..
impl Workaround max name limit imposed by Jackson 2.17 (#126806) 2025-04-15 11:40:27 -07:00
src Move Text class to libs/xcontent (#128780) 2025-06-04 11:22:03 -07:00
build.gradle Use directory name as project name for libs (#115720) 2024-10-29 13:02:28 -07:00