test_class.file: oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/ClusterViewDocumentTest.java
test_class.identifier: ClusterViewDocumentTest
test_case.body: @Test
      public void testArrayToCsv() throws Throwable {
          // nulls first
          assertNull(callArrayToCsv(null));
          assertNull(callArrayToCsv(new Integer[0]));
  
          // one element only
          assertEquals("101", callArrayToCsv(new Integer[] { 101 }));
          assertEquals("101,102", callArrayToCsv(new Integer[] { 101, 102 }));
          assertEquals("101,102,103", callArrayToCsv(new Integer[] { 101, 102, 103 }));
          assertEquals("101,102,103,104", callArrayToCsv(new Integer[] { 101, 102, 103, 104 }));
      }
test_case.class_method_signature: ClusterViewDocumentTest.testArrayToCsv()
test_case.full_signature: @Test public void testArrayToCsv()
test_case.identifier: testArrayToCsv
test_case.invocations: assertNull callArrayToCsv assertNull callArrayToCsv assertEquals callArrayToCsv assertEquals callArrayToCsv assertEquals callArrayToCsv assertEquals callArrayToCsv
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testArrayToCsv()
focal_class.declarator: logger = LoggerFactory.getLogger(ClusterViewDocument.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(ClusterViewDocument.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: CLUSTERVIEW_DOC_ID = "clusterView"
focal_class.modifier: private static final
focal_class.original_string: private static final String CLUSTERVIEW_DOC_ID = "clusterView";
focal_class.type: String
focal_class.var_name: CLUSTERVIEW_DOC_ID
focal_class.declarator: VIEW_SEQ_NUM_KEY = "seqNum"
focal_class.modifier: static final
focal_class.original_string: static final String VIEW_SEQ_NUM_KEY = "seqNum";
focal_class.type: String
focal_class.var_name: VIEW_SEQ_NUM_KEY
focal_class.declarator: ACTIVE_KEY = "active"
focal_class.modifier: static final
focal_class.original_string: static final String ACTIVE_KEY = "active";
focal_class.type: String
focal_class.var_name: ACTIVE_KEY
focal_class.declarator: INACTIVE_KEY = "inactive"
focal_class.modifier: static final
focal_class.original_string: static final String INACTIVE_KEY = "inactive";
focal_class.type: String
focal_class.var_name: INACTIVE_KEY
focal_class.declarator: RECOVERING_KEY = "recovering"
focal_class.modifier: static final
focal_class.original_string: static final String RECOVERING_KEY = "recovering";
focal_class.type: String
focal_class.var_name: RECOVERING_KEY
focal_class.declarator: CREATED_KEY = "created"
focal_class.modifier: private static final
focal_class.original_string: private static final String CREATED_KEY = "created";
focal_class.type: String
focal_class.var_name: CREATED_KEY
focal_class.declarator: CREATOR_KEY = "creator"
focal_class.modifier: private static final
focal_class.original_string: private static final String CREATOR_KEY = "creator";
focal_class.type: String
focal_class.var_name: CREATOR_KEY
focal_class.declarator: RETIRED_KEY = "retired"
focal_class.modifier: private static final
focal_class.original_string: private static final String RETIRED_KEY = "retired";
focal_class.type: String
focal_class.var_name: RETIRED_KEY
focal_class.declarator: RETIRER_KEY = "retirer"
focal_class.modifier: private static final
focal_class.original_string: private static final String RETIRER_KEY = "retirer";
focal_class.type: String
focal_class.var_name: RETIRER_KEY
focal_class.declarator: CLUSTER_VIEW_HISTORY_KEY = "clusterViewHistory"
focal_class.modifier: private static final
focal_class.original_string: private static final String CLUSTER_VIEW_HISTORY_KEY = "clusterViewHistory";
focal_class.type: String
focal_class.var_name: CLUSTER_VIEW_HISTORY_KEY
focal_class.declarator: HISTORY_LIMIT = 10
focal_class.modifier: static final
focal_class.original_string: static final int HISTORY_LIMIT = 10;
focal_class.type: int
focal_class.var_name: HISTORY_LIMIT
focal_class.declarator: viewSeqNum
focal_class.modifier: private final
focal_class.original_string: private final long viewSeqNum;
focal_class.type: long
focal_class.var_name: viewSeqNum
focal_class.declarator: activeIds
focal_class.modifier: private final
focal_class.original_string: private final Integer[] activeIds;
focal_class.type: Integer[]
focal_class.var_name: activeIds
focal_class.declarator: recoveringIds
focal_class.modifier: private final
focal_class.original_string: private final Integer[] recoveringIds;
focal_class.type: Integer[]
focal_class.var_name: recoveringIds
focal_class.declarator: inactiveIds
focal_class.modifier: private final
focal_class.original_string: private final Integer[] inactiveIds;
focal_class.type: Integer[]
focal_class.var_name: inactiveIds
focal_class.declarator: viewHistory
focal_class.modifier: private final
focal_class.original_string: private final Map<Object, String> viewHistory;
focal_class.type: Map<Object, String>
focal_class.var_name: viewHistory
focal_class.declarator: createdAt
focal_class.modifier: private final
focal_class.original_string: private final String createdAt;
focal_class.type: String
focal_class.var_name: createdAt
focal_class.declarator: createdBy
focal_class.modifier: private final
focal_class.original_string: private final Long createdBy;
focal_class.type: Long
focal_class.var_name: createdBy
focal_class.file: oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/ClusterViewDocument.java
focal_class.identifier: ClusterViewDocument
focal_class.class_method_signature: ClusterViewDocument.readOrUpdate(DocumentNodeStore documentNodeStore, Set<Integer> activeIds, Set<Integer> recoveringIds,
              Set<Integer> inactiveIds)
focal_class.full_signature: static ClusterViewDocument readOrUpdate(DocumentNodeStore documentNodeStore, Set<Integer> activeIds, Set<Integer> recoveringIds,
              Set<Integer> inactiveIds)
focal_class.identifier: readOrUpdate
focal_class.modifiers: static
focal_class.parameters: (DocumentNodeStore documentNodeStore, Set<Integer> activeIds, Set<Integer> recoveringIds,
              Set<Integer> inactiveIds)
focal_class.return: ClusterViewDocument
focal_class.signature: ClusterViewDocument readOrUpdate(DocumentNodeStore documentNodeStore, Set<Integer> activeIds, Set<Integer> recoveringIds,
              Set<Integer> inactiveIds)
focal_class.class_method_signature: ClusterViewDocument.oldestRevision(Map<Object, String> historyMap)
focal_class.full_signature: private static Revision oldestRevision(Map<Object, String> historyMap)
focal_class.identifier: oldestRevision
focal_class.modifiers: private static
focal_class.parameters: (Map<Object, String> historyMap)
focal_class.return: Revision
focal_class.signature: Revision oldestRevision(Map<Object, String> historyMap)
focal_class.class_method_signature: ClusterViewDocument.asHistoryEntry(final ClusterViewDocument previousView, int retiringClusterNodeId, Date retireTime)
focal_class.full_signature: private static String asHistoryEntry(final ClusterViewDocument previousView, int retiringClusterNodeId, Date retireTime)
focal_class.identifier: asHistoryEntry
focal_class.modifiers: private static
focal_class.parameters: (final ClusterViewDocument previousView, int retiringClusterNodeId, Date retireTime)
focal_class.return: String
focal_class.signature: String asHistoryEntry(final ClusterViewDocument previousView, int retiringClusterNodeId, Date retireTime)
focal_class.class_method_signature: ClusterViewDocument.setToCsv(Set<Integer> ids)
focal_class.full_signature: private static String setToCsv(Set<Integer> ids)
focal_class.identifier: setToCsv
focal_class.modifiers: private static
focal_class.parameters: (Set<Integer> ids)
focal_class.return: String
focal_class.signature: String setToCsv(Set<Integer> ids)
focal_class.class_method_signature: ClusterViewDocument.arrayToCsv(Integer[] arr)
focal_class.full_signature: static String arrayToCsv(Integer[] arr)
focal_class.identifier: arrayToCsv
focal_class.modifiers: static
focal_class.parameters: (Integer[] arr)
focal_class.return: String
focal_class.signature: String arrayToCsv(Integer[] arr)
focal_class.class_method_signature: ClusterViewDocument.csvToIntegerArray(String csv)
focal_class.full_signature: static Integer[] csvToIntegerArray(String csv)
focal_class.identifier: csvToIntegerArray
focal_class.modifiers: static
focal_class.parameters: (String csv)
focal_class.return: Integer[]
focal_class.signature: Integer[] csvToIntegerArray(String csv)
focal_class.class_method_signature: ClusterViewDocument.doRead(DocumentNodeStore documentNodeStore)
focal_class.full_signature: private static ClusterViewDocument doRead(DocumentNodeStore documentNodeStore)
focal_class.identifier: doRead
focal_class.modifiers: private static
focal_class.parameters: (DocumentNodeStore documentNodeStore)
focal_class.return: ClusterViewDocument
focal_class.signature: ClusterViewDocument doRead(DocumentNodeStore documentNodeStore)
focal_class.class_method_signature: ClusterViewDocument.matches(Integer[] expected, Set<Integer> actual)
focal_class.full_signature: static boolean matches(Integer[] expected, Set<Integer> actual)
focal_class.identifier: matches
focal_class.modifiers: static
focal_class.parameters: (Integer[] expected, Set<Integer> actual)
focal_class.return: boolean
focal_class.signature: boolean matches(Integer[] expected, Set<Integer> actual)
focal_class.class_method_signature: ClusterViewDocument.ClusterViewDocument(Document doc)
focal_class.full_signature: @SuppressWarnings("unchecked")  ClusterViewDocument(Document doc)
focal_class.identifier: ClusterViewDocument
focal_class.modifiers: @SuppressWarnings("unchecked")
focal_class.parameters: (Document doc)
focal_class.signature:  ClusterViewDocument(Document doc)
focal_class.class_method_signature: ClusterViewDocument.getActiveIds()
focal_class.full_signature:  Set<Integer> getActiveIds()
focal_class.identifier: getActiveIds
focal_class.parameters: ()
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> getActiveIds()
focal_class.class_method_signature: ClusterViewDocument.getRecoveringIds()
focal_class.full_signature:  Set<Integer> getRecoveringIds()
focal_class.identifier: getRecoveringIds
focal_class.parameters: ()
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> getRecoveringIds()
focal_class.class_method_signature: ClusterViewDocument.getInactiveIds()
focal_class.full_signature:  Set<Integer> getInactiveIds()
focal_class.identifier: getInactiveIds
focal_class.parameters: ()
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> getInactiveIds()
focal_class.class_method_signature: ClusterViewDocument.getHistory()
focal_class.full_signature:  Map<Object, String> getHistory()
focal_class.identifier: getHistory
focal_class.parameters: ()
focal_class.return: Map<Object, String>
focal_class.signature: Map<Object, String> getHistory()
focal_class.class_method_signature: ClusterViewDocument.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: ClusterViewDocument.isValid()
focal_class.full_signature:  boolean isValid()
focal_class.identifier: isValid
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isValid()
focal_class.class_method_signature: ClusterViewDocument.getCreatedAt()
focal_class.full_signature:  String getCreatedAt()
focal_class.identifier: getCreatedAt
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCreatedAt()
focal_class.class_method_signature: ClusterViewDocument.getCreatedBy()
focal_class.full_signature:  long getCreatedBy()
focal_class.identifier: getCreatedBy
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getCreatedBy()
focal_class.class_method_signature: ClusterViewDocument.getViewSeqNum()
focal_class.full_signature:  long getViewSeqNum()
focal_class.identifier: getViewSeqNum
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getViewSeqNum()
focal_class.class_method_signature: ClusterViewDocument.matches(Set<Integer> activeIds, Set<Integer> recoveringIds, Set<Integer> inactiveIds)
focal_class.full_signature: private boolean matches(Set<Integer> activeIds, Set<Integer> recoveringIds, Set<Integer> inactiveIds)
focal_class.identifier: matches
focal_class.modifiers: private
focal_class.parameters: (Set<Integer> activeIds, Set<Integer> recoveringIds, Set<Integer> inactiveIds)
focal_class.return: boolean
focal_class.signature: boolean matches(Set<Integer> activeIds, Set<Integer> recoveringIds, Set<Integer> inactiveIds)
focal_method.body: static String arrayToCsv(Integer[] arr) {
          if (arr == null || arr.length == 0) {
              return null;
          }
  
          StringBuffer sb = new StringBuffer();
          for (Integer a : arr) {
              if (sb.length() != 0) {
                  sb.append(",");
              }
              sb.append(a);
          }
          return sb.toString();
      }
focal_method.class_method_signature: ClusterViewDocument.arrayToCsv(Integer[] arr)
focal_method.full_signature: static String arrayToCsv(Integer[] arr)
focal_method.identifier: arrayToCsv
focal_method.invocations: length append append toString
focal_method.modifiers: static
focal_method.parameters: (Integer[] arr)
focal_method.return: String
focal_method.signature: String arrayToCsv(Integer[] arr)