Package org.kiji.schema.avro

Examples of org.kiji.schema.avro.ComponentType


    return correctedValues;
  }

  private static List<List<Object>> createFilterCombinations(List<RowKeyComponent> components) {
    List<List<Object>> combinations = Lists.newArrayList();
    ComponentType type = components.get(0).getType();
    if (components.size() == 1) {
      combinations.add(Lists.newArrayList(createStableValue(type)));
      combinations.add(Lists.newArrayList((Object)null));
    } else {
      List<List<Object>> subCombinations =
View Full Code Here


  }

  private static List<List<Object>> createExcludedCombinations(
      List<RowKeyComponent> components, List<Object> filterValues) {
    List<List<Object>> combinations = Lists.newArrayList();
    ComponentType type = components.get(0).getType();
    if (filterValues.size() == 1) {
      combinations.add(Lists.newArrayList(createRandomValue(type)));
      combinations.add(Lists.newArrayList(createMinValue(type)));
    } else {
      List<List<Object>> subCombinations = createExcludedCombinations(
View Full Code Here

              + String.format("Expected at least %d non-null components",
                  format.getNullableStartIndex()));
        }
      } else {
        // for non-null components ensure that the type matches the format spec
        ComponentType type = getType(kijiRowKey.get(i));
        if (null == type || type != format.getComponents().get(i).getType()) {
          if (type == ComponentType.INTEGER
               && format.getComponents().get(i).getType() == ComponentType.LONG) {
            kijiRowKey.set(i, ((Integer) kijiRowKey.get(i)).longValue());
          } else {
View Full Code Here

TOP

Related Classes of org.kiji.schema.avro.ComponentType

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.