@Test public void paddingTest() throws Exception { DirectTupleSchema schema = TupleSchema.builder(). addField("aByte", Byte.TYPE). addField("aChar", Character.TYPE). addField("aInt", Integer.TYPE). addField("aShort", Short.TYPE). addField("aFloat", Float.TYPE). addField("aLong", Long.TYPE). addField("aDouble", Double.TYPE). directMemory(). padToWordSize(64). build(); assertEquals(64, schema.getByteSize()); }
public int getByteSize() { return byteSize; }
DirectTupleSchema extends TupleSchema { public int getByteSize() { return byteSize; } }
DirectTupleSchema extends TupleSchema { public int getByteSize() { return byteSize; } DirectTupleSchema(Builder builder); }
DirectTupleSchema extends TupleSchema { public int getByteSize() { return byteSize; } DirectTupleSchema(Builder builder); long getLong(long address, int index); int getInt(long address, int index); short getShort(long address, int index); char getChar(long address, int index); byte getByte(long address, int index); double getDouble(long address, int index); float getFloat(long address, int index); void setLong(long address, int index, long value); void setInt(long address, int index, int value); void setShort(long address, int index, short value); void setChar(long address, int index, char value); void setByte(long address, int index, byte value); void setFloat(long address, int index, float value); void setDouble(long address, int index, double value); int[] getLayout(); int getByteSize(); FastTuple createTuple(long address); long createRecord(); long createRecordArray(long size); FastTuple createTuple(); @Override FastTuple[] createTupleArray(int size); @Override void destroyTuple(FastTuple tuple); @Override void destroyTupleArray(FastTuple[] ary); void destroy(FastTuple tuple); void destroy(long address); }
DirectTupleSchema extends TupleSchema { public int getByteSize() { return byteSize; } DirectTupleSchema(Builder builder); long getLong(long address, int index); int getInt(long address, int index); short getShort(long address, int index); char getChar(long address, int index); byte getByte(long address, int index); double getDouble(long address, int index); float getFloat(long address, int index); void setLong(long address, int index, long value); void setInt(long address, int index, int value); void setShort(long address, int index, short value); void setChar(long address, int index, char value); void setByte(long address, int index, byte value); void setFloat(long address, int index, float value); void setDouble(long address, int index, double value); int[] getLayout(); int getByteSize(); FastTuple createTuple(long address); long createRecord(); long createRecordArray(long size); FastTuple createTuple(); @Override FastTuple[] createTupleArray(int size); @Override void destroyTuple(FastTuple tuple); @Override void destroyTupleArray(FastTuple[] ary); void destroy(FastTuple tuple); void destroy(long address);  }