Examples of lookupName()


Examples of io.druid.segment.DimensionSelector.lookupName()

                                    final String dim = dimSelector.getKey();
                                    final DimensionSelector selector = dimSelector.getValue();
                                    final IndexedInts vals = selector.getRow();

                                    if (vals.size() == 1) {
                                      final String dimVal = selector.lookupName(vals.get(0));
                                      theEvent.put(dim, dimVal);
                                    } else {
                                      List<String> dimVals = Lists.newArrayList();
                                      for (int i = 0; i < vals.size(); ++i) {
                                        dimVals.add(selector.lookupName(vals.get(i)));
View Full Code Here

Examples of io.druid.segment.DimensionSelector.lookupName()

                                      final String dimVal = selector.lookupName(vals.get(0));
                                      theEvent.put(dim, dimVal);
                                    } else {
                                      List<String> dimVals = Lists.newArrayList();
                                      for (int i = 0; i < vals.size(); ++i) {
                                        dimVals.add(selector.lookupName(vals.get(i)));
                                      }
                                      theEvent.put(dim, dimVals);
                                    }
                                  }
View Full Code Here

Examples of io.druid.segment.DimensionSelector.lookupName()

                  theEvent.put(dim, null);
                } else {
                  final IndexedInts vals = selector.getRow();

                  if (vals.size() == 1) {
                    final String dimVal = selector.lookupName(vals.get(0));
                    theEvent.put(dim, dimVal);
                  } else {
                    List<String> dimVals = Lists.newArrayList();
                    for (int i = 0; i < vals.size(); ++i) {
                      dimVals.add(selector.lookupName(vals.get(i)));
View Full Code Here

Examples of io.druid.segment.DimensionSelector.lookupName()

                    final String dimVal = selector.lookupName(vals.get(0));
                    theEvent.put(dim, dimVal);
                  } else {
                    List<String> dimVals = Lists.newArrayList();
                    for (int i = 0; i < vals.size(); ++i) {
                      dimVals.add(selector.lookupName(vals.get(i)));
                    }
                    theEvent.put(dim, dimVals);
                  }
                }
              }
View Full Code Here

Examples of io.druid.segment.DimensionSelector.lookupName()

                    final DimensionSelector dimSelector = dimensions.get(i);
                    final DimExtractionFn fn = dimensionSpecs.get(i).getDimExtractionFn();
                    final int dimVal = keyBuffer.getInt();
                    if (dimSelector.getValueCardinality() != dimVal) {
                      if (fn != null) {
                        theEvent.put(dimNames.get(i), fn.apply(dimSelector.lookupName(dimVal)));
                      } else {
                        theEvent.put(dimNames.get(i), dimSelector.lookupName(dimVal));
                      }
                    }
                  }
View Full Code Here

Examples of io.druid.segment.DimensionSelector.lookupName()

                    final int dimVal = keyBuffer.getInt();
                    if (dimSelector.getValueCardinality() != dimVal) {
                      if (fn != null) {
                        theEvent.put(dimNames.get(i), fn.apply(dimSelector.lookupName(dimVal)));
                      } else {
                        theEvent.put(dimNames.get(i), dimSelector.lookupName(dimVal));
                      }
                    }
                  }

                  int position = input.getValue();
View Full Code Here

Examples of io.druid.segment.DimensionSelector.lookupName()

                final DimensionSelector selector = entry.getValue();

                if (selector != null) {
                  final IndexedInts vals = selector.getRow();
                  for (int i = 0; i < vals.size(); ++i) {
                    final String dimVal = selector.lookupName(vals.get(i));
                    if (searchQuerySpec.accept(dimVal)) {
                      set.add(new SearchHit(entry.getKey(), dimVal));
                      if (set.size() >= limit) {
                        return set;
                      }
View Full Code Here

Examples of io.druid.segment.column.DictionaryEncodedColumn.lookupName()

                          }

                          @Override
                          public String lookupName(int id)
                          {
                            final String retVal = column.lookupName(id);
                            return retVal == null ? "" : retVal;
                          }

                          @Override
                          public int lookupId(String name)
View Full Code Here

Examples of io.druid.segment.column.DictionaryEncodedColumn.lookupName()

                          }

                          @Override
                          public String lookupName(int id)
                          {
                            return column.lookupName(id);
                          }

                          @Override
                          public int lookupId(String name)
                          {
View Full Code Here

Examples of io.druid.segment.column.DictionaryEncodedColumn.lookupName()

                            {
                              final IndexedInts multiValueRow = columnVals.getMultiValueRow(cursorOffset.getOffset());
                              if (multiValueRow.size() == 0) {
                                return null;
                              } else if (multiValueRow.size() == 1) {
                                return columnVals.lookupName(multiValueRow.get(0));
                              } else {
                                final String[] strings = new String[multiValueRow.size()];
                                for (int i = 0; i < multiValueRow.size(); i++) {
                                  strings[i] = columnVals.lookupName(multiValueRow.get(i));
                                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.