diff --git a/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/BooleanVector.java b/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/BooleanVector.java index 9a4cc64d760ef..29ad601c8512b 100644 --- a/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/BooleanVector.java +++ b/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/BooleanVector.java @@ -100,8 +100,12 @@ default void writeTo(StreamOutput out) throws IOException { } } - /** Returns a builder using the {@link BlockFactory#getNonBreakingInstance block factory}. */ + /** + * Returns a builder using the {@link BlockFactory#getNonBreakingInstance nonbreaking block factory}. + * @Deprecated use {@link BlockFactory#newBooleanVectorBuilder} + */ // Eventually, we want to remove this entirely, always passing an explicit BlockFactory + @Deprecated static Builder newVectorBuilder(int estimatedSize) { return newVectorBuilder(estimatedSize, BlockFactory.getNonBreakingInstance()); } @@ -109,7 +113,9 @@ static Builder newVectorBuilder(int estimatedSize) { /** * Creates a builder that grows as needed. Prefer {@link #newVectorFixedBuilder} * if you know the size up front because it's faster. + * @Deprecated use {@link BlockFactory#newBooleanVectorBuilder} */ + @Deprecated static Builder newVectorBuilder(int estimatedSize, BlockFactory blockFactory) { return blockFactory.newBooleanVectorBuilder(estimatedSize); } @@ -117,7 +123,9 @@ static Builder newVectorBuilder(int estimatedSize, BlockFactory blockFactory) { /** * Creates a builder that never grows. Prefer this over {@link #newVectorBuilder} * if you know the size up front because it's faster. + * @Deprecated use {@link BlockFactory#newBooleanVectorFixedBuilder} */ + @Deprecated static FixedBuilder newVectorFixedBuilder(int size, BlockFactory blockFactory) { return blockFactory.newBooleanVectorFixedBuilder(size); } diff --git a/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/BytesRefVector.java b/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/BytesRefVector.java index 82a18f5d5b79e..bc90d418da749 100644 --- a/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/BytesRefVector.java +++ b/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/BytesRefVector.java @@ -101,15 +101,21 @@ default void writeTo(StreamOutput out) throws IOException { } } - /** Returns a builder using the {@link BlockFactory#getNonBreakingInstance block factory}. */ + /** + * Returns a builder using the {@link BlockFactory#getNonBreakingInstance nonbreaking block factory}. + * @Deprecated use {@link BlockFactory#newBytesRefVectorBuilder} + */ // Eventually, we want to remove this entirely, always passing an explicit BlockFactory + @Deprecated static Builder newVectorBuilder(int estimatedSize) { return newVectorBuilder(estimatedSize, BlockFactory.getNonBreakingInstance()); } /** * Creates a builder that grows as needed. + * @Deprecated use {@link BlockFactory#newBytesRefVectorBuilder} */ + @Deprecated static Builder newVectorBuilder(int estimatedSize, BlockFactory blockFactory) { return blockFactory.newBytesRefVectorBuilder(estimatedSize); } diff --git a/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/DoubleVector.java b/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/DoubleVector.java index 545d17004333a..32bd8d28b7b3d 100644 --- a/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/DoubleVector.java +++ b/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/DoubleVector.java @@ -101,8 +101,12 @@ default void writeTo(StreamOutput out) throws IOException { } } - /** Returns a builder using the {@link BlockFactory#getNonBreakingInstance block factory}. */ + /** + * Returns a builder using the {@link BlockFactory#getNonBreakingInstance nonbreaking block factory}. + * @Deprecated use {@link BlockFactory#newDoubleVectorBuilder} + */ // Eventually, we want to remove this entirely, always passing an explicit BlockFactory + @Deprecated static Builder newVectorBuilder(int estimatedSize) { return newVectorBuilder(estimatedSize, BlockFactory.getNonBreakingInstance()); } @@ -110,7 +114,9 @@ static Builder newVectorBuilder(int estimatedSize) { /** * Creates a builder that grows as needed. Prefer {@link #newVectorFixedBuilder} * if you know the size up front because it's faster. + * @Deprecated use {@link BlockFactory#newDoubleVectorBuilder} */ + @Deprecated static Builder newVectorBuilder(int estimatedSize, BlockFactory blockFactory) { return blockFactory.newDoubleVectorBuilder(estimatedSize); } @@ -118,7 +124,9 @@ static Builder newVectorBuilder(int estimatedSize, BlockFactory blockFactory) { /** * Creates a builder that never grows. Prefer this over {@link #newVectorBuilder} * if you know the size up front because it's faster. + * @Deprecated use {@link BlockFactory#newDoubleVectorFixedBuilder} */ + @Deprecated static FixedBuilder newVectorFixedBuilder(int size, BlockFactory blockFactory) { return blockFactory.newDoubleVectorFixedBuilder(size); } diff --git a/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/IntVector.java b/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/IntVector.java index 6c3b46c3228e6..6d36970028685 100644 --- a/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/IntVector.java +++ b/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/IntVector.java @@ -101,8 +101,12 @@ default void writeTo(StreamOutput out) throws IOException { } } - /** Returns a builder using the {@link BlockFactory#getNonBreakingInstance block factory}. */ + /** + * Returns a builder using the {@link BlockFactory#getNonBreakingInstance nonbreaking block factory}. + * @Deprecated use {@link BlockFactory#newIntVectorBuilder} + */ // Eventually, we want to remove this entirely, always passing an explicit BlockFactory + @Deprecated static Builder newVectorBuilder(int estimatedSize) { return newVectorBuilder(estimatedSize, BlockFactory.getNonBreakingInstance()); } @@ -110,7 +114,9 @@ static Builder newVectorBuilder(int estimatedSize) { /** * Creates a builder that grows as needed. Prefer {@link #newVectorFixedBuilder} * if you know the size up front because it's faster. + * @Deprecated use {@link BlockFactory#newIntVectorBuilder} */ + @Deprecated static Builder newVectorBuilder(int estimatedSize, BlockFactory blockFactory) { return blockFactory.newIntVectorBuilder(estimatedSize); } @@ -118,7 +124,9 @@ static Builder newVectorBuilder(int estimatedSize, BlockFactory blockFactory) { /** * Creates a builder that never grows. Prefer this over {@link #newVectorBuilder} * if you know the size up front because it's faster. + * @Deprecated use {@link BlockFactory#newIntVectorFixedBuilder} */ + @Deprecated static FixedBuilder newVectorFixedBuilder(int size, BlockFactory blockFactory) { return blockFactory.newIntVectorFixedBuilder(size); } diff --git a/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/LongVector.java b/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/LongVector.java index 44e81139adccf..63eec36da3de1 100644 --- a/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/LongVector.java +++ b/x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/data/LongVector.java @@ -102,8 +102,12 @@ default void writeTo(StreamOutput out) throws IOException { } } - /** Returns a builder using the {@link BlockFactory#getNonBreakingInstance block factory}. */ + /** + * Returns a builder using the {@link BlockFactory#getNonBreakingInstance nonbreaking block factory}. + * @Deprecated use {@link BlockFactory#newLongVectorBuilder} + */ // Eventually, we want to remove this entirely, always passing an explicit BlockFactory + @Deprecated static Builder newVectorBuilder(int estimatedSize) { return newVectorBuilder(estimatedSize, BlockFactory.getNonBreakingInstance()); } @@ -111,7 +115,9 @@ static Builder newVectorBuilder(int estimatedSize) { /** * Creates a builder that grows as needed. Prefer {@link #newVectorFixedBuilder} * if you know the size up front because it's faster. + * @Deprecated use {@link BlockFactory#newLongVectorBuilder} */ + @Deprecated static Builder newVectorBuilder(int estimatedSize, BlockFactory blockFactory) { return blockFactory.newLongVectorBuilder(estimatedSize); } @@ -119,7 +125,9 @@ static Builder newVectorBuilder(int estimatedSize, BlockFactory blockFactory) { /** * Creates a builder that never grows. Prefer this over {@link #newVectorBuilder} * if you know the size up front because it's faster. + * @Deprecated use {@link BlockFactory#newLongVectorFixedBuilder} */ + @Deprecated static FixedBuilder newVectorFixedBuilder(int size, BlockFactory blockFactory) { return blockFactory.newLongVectorFixedBuilder(size); } diff --git a/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/X-Vector.java.st b/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/X-Vector.java.st index 90fd30f8b7e64..eb845e45a2f3a 100644 --- a/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/X-Vector.java.st +++ b/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/X-Vector.java.st @@ -141,8 +141,12 @@ $endif$ } } - /** Returns a builder using the {@link BlockFactory#getNonBreakingInstance block factory}. */ + /** + * Returns a builder using the {@link BlockFactory#getNonBreakingInstance nonbreaking block factory}. + * @Deprecated use {@link BlockFactory#new$Type$VectorBuilder} + */ // Eventually, we want to remove this entirely, always passing an explicit BlockFactory + @Deprecated static Builder newVectorBuilder(int estimatedSize) { return newVectorBuilder(estimatedSize, BlockFactory.getNonBreakingInstance()); } @@ -150,13 +154,16 @@ $endif$ $if(BytesRef)$ /** * Creates a builder that grows as needed. + * @Deprecated use {@link BlockFactory#new$Type$VectorBuilder} */ $else$ /** * Creates a builder that grows as needed. Prefer {@link #newVectorFixedBuilder} * if you know the size up front because it's faster. + * @Deprecated use {@link BlockFactory#new$Type$VectorBuilder} */ $endif$ + @Deprecated static Builder newVectorBuilder(int estimatedSize, BlockFactory blockFactory) { return blockFactory.new$Type$VectorBuilder(estimatedSize); } @@ -166,7 +173,9 @@ $else$ /** * Creates a builder that never grows. Prefer this over {@link #newVectorBuilder} * if you know the size up front because it's faster. + * @Deprecated use {@link BlockFactory#new$Type$VectorFixedBuilder} */ + @Deprecated static FixedBuilder newVectorFixedBuilder(int size, BlockFactory blockFactory) { return blockFactory.new$Type$VectorFixedBuilder(size); }