metron-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (METRON-1051) Enable the ability to update indexed messages
Date Thu, 03 Aug 2017 15:11:00 GMT

    [ https://issues.apache.org/jira/browse/METRON-1051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16112896#comment-16112896
] 

ASF GitHub Bot commented on METRON-1051:
----------------------------------------

Github user justinleet commented on a diff in the pull request:

    https://github.com/apache/metron/pull/666#discussion_r131168587
  
    --- Diff: metron-platform/metron-indexing/src/main/java/org/apache/metron/indexing/dao/MultiIndexDao.java
---
    @@ -0,0 +1,161 @@
    +/**
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.metron.indexing.dao;
    +
    +import com.google.common.base.Joiner;
    +import com.google.common.collect.Iterables;
    +import org.apache.commons.lang3.exception.ExceptionUtils;
    +import org.apache.metron.indexing.dao.search.FieldType;
    +import org.apache.metron.indexing.dao.search.InvalidSearchException;
    +import org.apache.metron.indexing.dao.search.SearchRequest;
    +import org.apache.metron.indexing.dao.search.SearchResponse;
    +import org.apache.metron.indexing.dao.update.Document;
    +
    +import java.io.IOException;
    +import java.util.*;
    +import java.util.function.Function;
    +import java.util.stream.Collectors;
    +
    +public class MultiIndexDao implements IndexDao {
    +  private List<IndexDao> indices;
    +
    +  public MultiIndexDao( IndexDao... composedDao) {
    +    indices = new ArrayList<>();
    +    for(IndexDao dao: composedDao) {
    --- End diff --
    
    `Collections.addAll` again.


> Enable the ability to update indexed messages
> ---------------------------------------------
>
>                 Key: METRON-1051
>                 URL: https://issues.apache.org/jira/browse/METRON-1051
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: Casey Stella
>
> Currently our indexing layer is immutable.  It would be useful to be able to:
> * Update data in the indices
> * Track lineage for updates
> Current version of data should be able to be exposed via a batch interface. 
> Updates should be available via a Java DAO API as well as via the REST API.
> Implementation should ensure that the ability to read the current data in batch is possible.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message