Package org.teiid.internal.core.index
Class Field
- java.lang.Object
-
- org.teiid.internal.core.index.Field
-
public class Field extends Object
-
-
Constructor Summary
Constructors Constructor Description Field(byte[] bytes)ByteSegment constructor comment.Field(byte[] bytes, int length)ByteSegment constructor comment.Field(byte[] bytes, int offset, int length)ByteSegment constructor comment.Field(int length)Creates a new field containing an empty buffer of the given length.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]buffer()Fieldbuffer(byte[] buffer)Fieldclear()protected static voidclear(byte[] buffer, int offset, int length)Fieldclear(int length)Fieldclear(int offset, int length)protected static intcompare(byte[] buffer1, int offset1, int length1, byte[] buffer2, int offset2, int length2)static intcompare(Field f1, Field f2)Fieldcopy(int fromOffset, int toOffset, int length)Fielddec(int n)byte[]get()byte[]get(int offset, int length)FieldgetField(int offset, int length)intgetInt1()intgetInt1(int offset)intgetInt2()intgetInt2(int offset)intgetInt3()intgetInt3(int offset)intgetInt4()intgetInt4(int offset)intgetUInt1()intgetUInt1(int offset)intgetUInt2()intgetUInt2(int offset)intgetUInt3()intgetUInt3(int offset)char[]getUTF(int offset)Fieldinc(int n)intlength()Fieldlength(int length)intoffset()Returns the offset into the underlying byte array that this field is defined over.Fieldoffset(int offset)FieldpointTo(int offset)Fieldput(byte[] b)Fieldput(int offset, byte[] b)Fieldput(int offset, Field f)Fieldput(Field f)FieldputInt1(int n)FieldputInt1(int offset, int n)FieldputInt2(int n)FieldputInt2(int offset, int n)FieldputInt3(int n)FieldputInt3(int offset, int n)FieldputInt4(int n)FieldputInt4(int offset, int n)intputUTF(int offset, char[] str)
-
-
-
Constructor Detail
-
Field
public Field(byte[] bytes)
ByteSegment constructor comment.
-
Field
public Field(byte[] bytes, int length)ByteSegment constructor comment.
-
Field
public Field(byte[] bytes, int offset, int length)ByteSegment constructor comment.
-
Field
public Field(int length)
Creates a new field containing an empty buffer of the given length.
-
-
Method Detail
-
buffer
public byte[] buffer()
-
buffer
public Field buffer(byte[] buffer)
-
clear
public Field clear()
-
clear
protected static void clear(byte[] buffer, int offset, int length)
-
clear
public Field clear(int length)
-
clear
public Field clear(int offset, int length)
-
compare
protected static int compare(byte[] buffer1, int offset1, int length1, byte[] buffer2, int offset2, int length2)
-
copy
public Field copy(int fromOffset, int toOffset, int length)
-
dec
public Field dec(int n)
-
get
public byte[] get()
-
get
public byte[] get(int offset, int length)
-
getField
public Field getField(int offset, int length)
-
getInt1
public int getInt1()
-
getInt1
public int getInt1(int offset)
-
getInt2
public int getInt2()
-
getInt2
public int getInt2(int offset)
-
getInt3
public int getInt3()
-
getInt3
public int getInt3(int offset)
-
getInt4
public int getInt4()
-
getInt4
public int getInt4(int offset)
-
getUInt1
public int getUInt1()
-
getUInt1
public int getUInt1(int offset)
-
getUInt2
public int getUInt2()
-
getUInt2
public int getUInt2(int offset)
-
getUInt3
public int getUInt3()
-
getUInt3
public int getUInt3(int offset)
-
getUTF
public char[] getUTF(int offset) throws UTFDataFormatException- Throws:
UTFDataFormatException
-
inc
public Field inc(int n)
-
length
public int length()
-
length
public Field length(int length)
-
offset
public int offset()
Returns the offset into the underlying byte array that this field is defined over.
-
offset
public Field offset(int offset)
-
pointTo
public Field pointTo(int offset)
-
put
public Field put(byte[] b)
-
put
public Field put(int offset, byte[] b)
-
putInt1
public Field putInt1(int n)
-
putInt1
public Field putInt1(int offset, int n)
-
putInt2
public Field putInt2(int n)
-
putInt2
public Field putInt2(int offset, int n)
-
putInt3
public Field putInt3(int n)
-
putInt3
public Field putInt3(int offset, int n)
-
putInt4
public Field putInt4(int n)
-
putInt4
public Field putInt4(int offset, int n)
-
putUTF
public int putUTF(int offset, char[] str)
-
-