test_class.declarator: EMPTY_BYTE_ARRAY = new byte[0]
test_class.modifier: private static final
test_class.original_string: private static final byte[] EMPTY_BYTE_ARRAY = new byte[0];
test_class.type: byte[]
test_class.var_name: EMPTY_BYTE_ARRAY
test_class.file: modules/core/src/test/java/org/apache/ignite/internal/processors/metastorage/persistence/DistributedMetaStorageHistoryCacheTest.java
test_class.identifier: DistributedMetaStorageHistoryCacheTest
test_case.body: @Test
      public void testEmptyCache() {
          DistributedMetaStorageHistoryCache histCache = new DistributedMetaStorageHistoryCache();
  
          validate(histCache, emptyList(), 0);
  
          assertNull(histCache.get(0));
      }
test_case.class_method_signature: DistributedMetaStorageHistoryCacheTest.testEmptyCache()
test_case.full_signature: @Test public void testEmptyCache()
test_case.identifier: testEmptyCache
test_case.invocations: validate emptyList assertNull get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEmptyCache()
focal_class.declarator: startingVer
focal_class.modifier: private
focal_class.original_string: private long startingVer;
focal_class.type: long
focal_class.var_name: startingVer
focal_class.declarator: items
focal_class.modifier: private
focal_class.original_string: private DistributedMetaStorageHistoryItem[] items;
focal_class.type: DistributedMetaStorageHistoryItem[]
focal_class.var_name: items
focal_class.declarator: from
focal_class.modifier: private
focal_class.original_string: private int from;
focal_class.type: int
focal_class.var_name: from
focal_class.declarator: to
focal_class.modifier: private
focal_class.original_string: private int to;
focal_class.type: int
focal_class.var_name: to
focal_class.declarator: sizeApproximation
focal_class.modifier: private
focal_class.original_string: private long sizeApproximation;
focal_class.type: long
focal_class.var_name: sizeApproximation
focal_class.file: modules/core/src/main/java/org/apache/ignite/internal/processors/metastorage/persistence/DistributedMetaStorageHistoryCache.java
focal_class.identifier: DistributedMetaStorageHistoryCache
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.DistributedMetaStorageHistoryCache()
focal_class.full_signature: public  DistributedMetaStorageHistoryCache()
focal_class.identifier: DistributedMetaStorageHistoryCache
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DistributedMetaStorageHistoryCache()
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.get(long ver)
focal_class.full_signature: public DistributedMetaStorageHistoryItem get(long ver)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (long ver)
focal_class.return: DistributedMetaStorageHistoryItem
focal_class.signature: DistributedMetaStorageHistoryItem get(long ver)
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.put(long ver, DistributedMetaStorageHistoryItem item)
focal_class.full_signature: public void put(long ver, DistributedMetaStorageHistoryItem item)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (long ver, DistributedMetaStorageHistoryItem item)
focal_class.return: void
focal_class.signature: void put(long ver, DistributedMetaStorageHistoryItem item)
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.removeOldest()
focal_class.full_signature: public DistributedMetaStorageHistoryItem removeOldest()
focal_class.identifier: removeOldest
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DistributedMetaStorageHistoryItem
focal_class.signature: DistributedMetaStorageHistoryItem removeOldest()
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.size()
focal_class.full_signature: public int size()
focal_class.identifier: size
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.isEmpty()
focal_class.full_signature: public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.clear()
focal_class.full_signature: public void clear()
focal_class.identifier: clear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.sizeInBytes()
focal_class.full_signature: public long sizeInBytes()
focal_class.identifier: sizeInBytes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long sizeInBytes()
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.toArray()
focal_class.full_signature: public DistributedMetaStorageHistoryItem[] toArray()
focal_class.identifier: toArray
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DistributedMetaStorageHistoryItem[]
focal_class.signature: DistributedMetaStorageHistoryItem[] toArray()
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.next(int i)
focal_class.full_signature: private int next(int i)
focal_class.identifier: next
focal_class.modifiers: private
focal_class.parameters: (int i)
focal_class.return: int
focal_class.signature: int next(int i)
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.expandBuffer()
focal_class.full_signature: private void expandBuffer()
focal_class.identifier: expandBuffer
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void expandBuffer()
focal_class.class_method_signature: DistributedMetaStorageHistoryCache.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_method.body: public DistributedMetaStorageHistoryItem get(long ver) {
          int size = size();
  
          if (ver < startingVer || ver >= startingVer + size)
              return null;
  
          return items[(from + (int)(ver - startingVer)) & (items.length - 1)];
      }
focal_method.class_method_signature: DistributedMetaStorageHistoryCache.get(long ver)
focal_method.full_signature: public DistributedMetaStorageHistoryItem get(long ver)
focal_method.identifier: get
focal_method.invocations: size
focal_method.modifiers: public
focal_method.parameters: (long ver)
focal_method.return: DistributedMetaStorageHistoryItem
focal_method.signature: DistributedMetaStorageHistoryItem get(long ver)