public static class CounterContext.ContextState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.nio.ByteBuffer |
context |
int |
headerLength |
Constructor and Description |
---|
CounterContext.ContextState(java.nio.ByteBuffer context) |
CounterContext.ContextState(java.nio.ByteBuffer context,
int headerLength) |
Modifier and Type | Method and Description |
---|---|
static CounterContext.ContextState |
allocate(int elementCount,
int deltaCount) |
static CounterContext.ContextState |
allocate(int elementCount,
int deltaCount,
Allocator allocator) |
int |
compareIdTo(CounterContext.ContextState other) |
void |
copyTo(CounterContext.ContextState other) |
CounterContext.ContextState |
duplicate() |
int |
elementIdx() |
long |
getClock() |
long |
getCount() |
CounterId |
getCounterId() |
boolean |
hasRemaining() |
boolean |
isDelta() |
void |
moveToNext() |
int |
remainingBodyLength() |
int |
remainingHeaderLength() |
void |
reset() |
void |
writeElement(CounterId id,
long clock,
long count) |
void |
writeElement(CounterId id,
long clock,
long count,
boolean isDelta) |
public final java.nio.ByteBuffer context
public final int headerLength
public CounterContext.ContextState(java.nio.ByteBuffer context, int headerLength)
public CounterContext.ContextState(java.nio.ByteBuffer context)
public boolean isDelta()
public boolean hasRemaining()
public int remainingHeaderLength()
public int remainingBodyLength()
public void moveToNext()
public void copyTo(CounterContext.ContextState other)
public int compareIdTo(CounterContext.ContextState other)
public void reset()
public CounterId getCounterId()
public long getClock()
public long getCount()
public void writeElement(CounterId id, long clock, long count, boolean isDelta)
public void writeElement(CounterId id, long clock, long count)
public int elementIdx()
public CounterContext.ContextState duplicate()
public static CounterContext.ContextState allocate(int elementCount, int deltaCount)
public static CounterContext.ContextState allocate(int elementCount, int deltaCount, Allocator allocator)
Copyright © 2013 The Apache Software Foundation