Java ByteBuffer Set setBatch(ByteBuffer bb, long batchId)

Here you can find the source of setBatch(ByteBuffer bb, long batchId)

Description

set Batch

License

Apache License

Declaration

private static void setBatch(ByteBuffer bb, long batchId) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.nio.ByteBuffer;

public class Main {
    private static final int batchPos = 0;

    private static void setBatch(ByteBuffer bb, long batchId) {
        bb.putLong(batchPos, batchId);//from ww  w .  j ava 2  s .co m
    }
}

Related

  1. releaseTemporaryDirectBuffer(ByteBuffer buf)
  2. reset(int offset, ByteBuffer b)
  3. resetBit(ByteBuffer in, int pos)
  4. set0byte(MappedByteBuffer mem, byte value)
  5. set24BitInt(ByteBuffer buffer, int value)
  6. setByteOrder(ByteBuffer buffer)
  7. setBytesAtOffset(ByteBuffer buffer, int offset, int length, byte[] data)
  8. setCell(ByteBuffer buffer, int cellIndex, int cellbytes)
  9. setCreationTime(ByteBuffer buf, Date date)