test_class.declarator: factory = new NodeStateAnalyzerFactory(LuceneIndexConstants.VERSION)
test_class.modifier: private
test_class.original_string: private NodeStateAnalyzerFactory factory = new NodeStateAnalyzerFactory(LuceneIndexConstants.VERSION);
test_class.type: NodeStateAnalyzerFactory
test_class.var_name: factory
test_class.file: oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/NodeStateAnalyzerFactoryTest.java
test_class.identifier: NodeStateAnalyzerFactoryTest
test_case.body: @Test
      public void nodeStateAsMap() throws Exception{
          NodeBuilder nb = EMPTY_NODE.builder();
          nb.setProperty("a", "a");
          nb.setProperty("b", 1);
          nb.setProperty(JcrConstants.JCR_PRIMARYTYPE, "nt:base");
          nb.setProperty(":hiddenProp", "hiddenValue");
  
          Map<String, String> result = factory.convertNodeState(nb.getNodeState());
          assertEquals("a", result.get("a"));
          assertEquals("1", result.get("b"));
          assertNull(result.get(JcrConstants.JCR_PRIMARYTYPE));
          assertNull(result.get(":hiddenProp"));
      }
test_case.class_method_signature: NodeStateAnalyzerFactoryTest.nodeStateAsMap()
test_case.full_signature: @Test public void nodeStateAsMap()
test_case.identifier: nodeStateAsMap
test_case.invocations: builder setProperty setProperty setProperty setProperty convertNodeState getNodeState assertEquals get assertEquals get assertNull get assertNull get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void nodeStateAsMap()
focal_class.declarator: versionWarningAlreadyLogged = new AtomicBoolean(false)
focal_class.modifier: private static final
focal_class.original_string: private static final AtomicBoolean versionWarningAlreadyLogged = new AtomicBoolean(false);
focal_class.type: AtomicBoolean
focal_class.var_name: versionWarningAlreadyLogged
focal_class.declarator: IGNORE_PROP_NAMES = ImmutableSet.of(
              LuceneIndexConstants.ANL_CLASS,
              LuceneIndexConstants.ANL_NAME,
              JcrConstants.JCR_PRIMARYTYPE
      )
focal_class.modifier: private static final
focal_class.original_string: private static final Set<String> IGNORE_PROP_NAMES = ImmutableSet.of(
              LuceneIndexConstants.ANL_CLASS,
              LuceneIndexConstants.ANL_NAME,
              JcrConstants.JCR_PRIMARYTYPE
      );
focal_class.type: Set<String>
focal_class.var_name: IGNORE_PROP_NAMES
focal_class.declarator: log = LoggerFactory.getLogger(NodeStateAnalyzerFactory.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(NodeStateAnalyzerFactory.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: defaultLoader
focal_class.modifier: private final
focal_class.original_string: private final ResourceLoader defaultLoader;
focal_class.type: ResourceLoader
focal_class.var_name: defaultLoader
focal_class.declarator: defaultVersion
focal_class.modifier: private final
focal_class.original_string: private final Version defaultVersion;
focal_class.type: Version
focal_class.var_name: defaultVersion
focal_class.file: oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/NodeStateAnalyzerFactory.java
focal_class.identifier: NodeStateAnalyzerFactory
focal_class.class_method_signature: NodeStateAnalyzerFactory.NodeStateAnalyzerFactory(Version defaultVersion)
focal_class.full_signature:   NodeStateAnalyzerFactory(Version defaultVersion)
focal_class.identifier: NodeStateAnalyzerFactory
focal_class.parameters: (Version defaultVersion)
focal_class.signature:  NodeStateAnalyzerFactory(Version defaultVersion)
focal_class.class_method_signature: NodeStateAnalyzerFactory.NodeStateAnalyzerFactory(ResourceLoader defaultLoader, Version defaultVersion)
focal_class.full_signature:   NodeStateAnalyzerFactory(ResourceLoader defaultLoader, Version defaultVersion)
focal_class.identifier: NodeStateAnalyzerFactory
focal_class.parameters: (ResourceLoader defaultLoader, Version defaultVersion)
focal_class.signature:  NodeStateAnalyzerFactory(ResourceLoader defaultLoader, Version defaultVersion)
focal_class.class_method_signature: NodeStateAnalyzerFactory.createInstance(NodeState state)
focal_class.full_signature: public Analyzer createInstance(NodeState state)
focal_class.identifier: createInstance
focal_class.modifiers: public
focal_class.parameters: (NodeState state)
focal_class.return: Analyzer
focal_class.signature: Analyzer createInstance(NodeState state)
focal_class.class_method_signature: NodeStateAnalyzerFactory.composeAnalyzer(NodeState state)
focal_class.full_signature: private Analyzer composeAnalyzer(NodeState state)
focal_class.identifier: composeAnalyzer
focal_class.modifiers: private
focal_class.parameters: (NodeState state)
focal_class.return: Analyzer
focal_class.signature: Analyzer composeAnalyzer(NodeState state)
focal_class.class_method_signature: NodeStateAnalyzerFactory.loadTokenFilterFactories(NodeState tokenFiltersState)
focal_class.full_signature: private TokenFilterFactory[] loadTokenFilterFactories(NodeState tokenFiltersState)
focal_class.identifier: loadTokenFilterFactories
focal_class.modifiers: private
focal_class.parameters: (NodeState tokenFiltersState)
focal_class.return: TokenFilterFactory[]
focal_class.signature: TokenFilterFactory[] loadTokenFilterFactories(NodeState tokenFiltersState)
focal_class.class_method_signature: NodeStateAnalyzerFactory.loadCharFilterFactories(NodeState charFiltersState)
focal_class.full_signature: private CharFilterFactory[] loadCharFilterFactories(NodeState charFiltersState)
focal_class.identifier: loadCharFilterFactories
focal_class.modifiers: private
focal_class.parameters: (NodeState charFiltersState)
focal_class.return: CharFilterFactory[]
focal_class.signature: CharFilterFactory[] loadCharFilterFactories(NodeState charFiltersState)
focal_class.class_method_signature: NodeStateAnalyzerFactory.loadTokenizer(NodeState state)
focal_class.full_signature: private TokenizerFactory loadTokenizer(NodeState state)
focal_class.identifier: loadTokenizer
focal_class.modifiers: private
focal_class.parameters: (NodeState state)
focal_class.return: TokenizerFactory
focal_class.signature: TokenizerFactory loadTokenizer(NodeState state)
focal_class.class_method_signature: NodeStateAnalyzerFactory.createAnalyzerViaReflection(NodeState state)
focal_class.full_signature: private Analyzer createAnalyzerViaReflection(NodeState state)
focal_class.identifier: createAnalyzerViaReflection
focal_class.modifiers: private
focal_class.parameters: (NodeState state)
focal_class.return: Analyzer
focal_class.signature: Analyzer createAnalyzerViaReflection(NodeState state)
focal_class.class_method_signature: NodeStateAnalyzerFactory.init(AbstractAnalysisFactory o, NodeState state)
focal_class.full_signature: private void init(AbstractAnalysisFactory o, NodeState state)
focal_class.identifier: init
focal_class.modifiers: private
focal_class.parameters: (AbstractAnalysisFactory o, NodeState state)
focal_class.return: void
focal_class.signature: void init(AbstractAnalysisFactory o, NodeState state)
focal_class.class_method_signature: NodeStateAnalyzerFactory.convertNodeState(NodeState state)
focal_class.full_signature:  Map<String, String> convertNodeState(NodeState state)
focal_class.identifier: convertNodeState
focal_class.parameters: (NodeState state)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> convertNodeState(NodeState state)
focal_class.class_method_signature: NodeStateAnalyzerFactory.getVersion(NodeState state)
focal_class.full_signature: private Version getVersion(NodeState state)
focal_class.identifier: getVersion
focal_class.modifiers: private
focal_class.parameters: (NodeState state)
focal_class.return: Version
focal_class.signature: Version getVersion(NodeState state)
focal_class.class_method_signature: NodeStateAnalyzerFactory.getFactoryType(NodeState state, String nodeStateName)
focal_class.full_signature: private static String getFactoryType(NodeState state, String nodeStateName)
focal_class.identifier: getFactoryType
focal_class.modifiers: private static
focal_class.parameters: (NodeState state, String nodeStateName)
focal_class.return: String
focal_class.signature: String getFactoryType(NodeState state, String nodeStateName)
focal_class.class_method_signature: NodeStateAnalyzerFactory.parseLuceneVersionString(final String matchVersion)
focal_class.full_signature: @SuppressWarnings("deprecation") private static Version parseLuceneVersionString(final String matchVersion)
focal_class.identifier: parseLuceneVersionString
focal_class.modifiers: @SuppressWarnings("deprecation") private static
focal_class.parameters: (final String matchVersion)
focal_class.return: Version
focal_class.signature: Version parseLuceneVersionString(final String matchVersion)
focal_class.class_method_signature: NodeStateAnalyzerFactory.loadStopwordSet(NodeState file, String name,
                                                  Version matchVersion)
focal_class.full_signature: private static CharArraySet loadStopwordSet(NodeState file, String name,
                                                  Version matchVersion)
focal_class.identifier: loadStopwordSet
focal_class.modifiers: private static
focal_class.parameters: (NodeState file, String name,
                                                  Version matchVersion)
focal_class.return: CharArraySet
focal_class.signature: CharArraySet loadStopwordSet(NodeState file, String name,
                                                  Version matchVersion)
focal_method.body: Map<String, String> convertNodeState(NodeState state) {
          Map<String, String> result = Maps.newHashMap();
          for (PropertyState ps : state.getProperties()) {
              String name = ps.getName();
              if (ps.getType() != Type.BINARY
                      && !ps.isArray()
                      && !(name != null && NodeStateUtils.isHidden(name))
                      && !IGNORE_PROP_NAMES.contains(name)) {
                  result.put(name, ps.getValue(Type.STRING));
              }
          }
          result.put(LuceneIndexConstants.ANL_LUCENE_MATCH_VERSION, getVersion(state).toString());
          return result;
      }
focal_method.class_method_signature: NodeStateAnalyzerFactory.convertNodeState(NodeState state)
focal_method.full_signature:  Map<String, String> convertNodeState(NodeState state)
focal_method.identifier: convertNodeState
focal_method.invocations: newHashMap getProperties getName getType isArray isHidden contains put getValue put toString getVersion
focal_method.parameters: (NodeState state)
focal_method.return: Map<String, String>
focal_method.signature: Map<String, String> convertNodeState(NodeState state)