Class LevelMap
java.lang.Object
graphql.execution.instrumentation.dataloader.LevelMap
This data structure tracks the number of expected calls on a given level
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]private static final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_INITIAL_SIZE
private static final int DEFAULT_INITIAL_SIZE- See Also:
-
countsByLevel
private int[] countsByLevel
-
-
Constructor Details
-
LevelMap
public LevelMap(int initialSize) -
LevelMap
public LevelMap()
-
-
Method Details
-
get
public int get(int level) -
increment
public void increment(int level, int by) -
set
public void set(int level, int newValue) -
maybeResize
private void maybeResize(int level) -
toString
-
clear
public void clear()
-