Package org.apache.iceberg.util
Class BinaryUtil
- java.lang.Object
-
- org.apache.iceberg.util.BinaryUtil
-
public class BinaryUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.ByteBuffer
truncateBinary(java.nio.ByteBuffer input, int length)
Truncates the input byte buffer to the given lengthstatic Literal<java.nio.ByteBuffer>
truncateBinaryMax(Literal<java.nio.ByteBuffer> input, int length)
Returns a byte buffer whose length is lesser than or equal to truncateLength and is greater than the given inputstatic Literal<java.nio.ByteBuffer>
truncateBinaryMin(Literal<java.nio.ByteBuffer> input, int length)
Returns a byte buffer whose length is lesser than or equal to truncateLength and is lower than the given input
-
-
-
Method Detail
-
truncateBinary
public static java.nio.ByteBuffer truncateBinary(java.nio.ByteBuffer input, int length)
Truncates the input byte buffer to the given length
-
truncateBinaryMin
public static Literal<java.nio.ByteBuffer> truncateBinaryMin(Literal<java.nio.ByteBuffer> input, int length)
Returns a byte buffer whose length is lesser than or equal to truncateLength and is lower than the given input
-
-