Package com.linkedin.databus.core.data_model

Examples of com.linkedin.databus.core.data_model.LogicalSource


  }

  /** Return the id associated with the name or null if none exists */
  public synchronized Integer getSourceId(String sourceName)
  {
    LogicalSource pair = _nameIndex.get(sourceName);
    return null != pair ? pair.getId() : null;
  }
View Full Code Here


    return null != pair ? pair.getId() : null;
  }

  public synchronized String getSourceName(Integer id)
  {
    LogicalSource pair = _idIndex.get(id);
    return null != pair ? pair.getName() : null;
  }
View Full Code Here

  }

  public void updateFromIdNamePairs(Collection<IdNamePair> newPairs)
  {
    ArrayList<LogicalSource> srcCollection = new ArrayList<LogicalSource>(newPairs.size());
    for (IdNamePair pair: newPairs) srcCollection.add(new LogicalSource(pair.getId().intValue(),
                                                                        pair.getName()));
    update(srcCollection);
  }
View Full Code Here

TOP

Related Classes of com.linkedin.databus.core.data_model.LogicalSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.