Examples of HiveTable


Examples of com.asakusafw.directio.hive.annotation.HiveTable

        assertThat(property, is(notNullValue()));
        assertThat(property.getFieldName(), is("simple"));
        assertThat(property.getTypeInfo(), is((TypeInfo) TypeInfoFactory.intTypeInfo));
        assertThat(property.getFieldComment(), is(nullValue()));

        HiveTable table = descriptor.getDataModelClass().getAnnotation(HiveTable.class);
        assertThat(table, is(notNullValue()));
        Class<? extends HiveTableInfo>[] infos = table.value();
        assertThat(infos, arrayWithSize(1));
        HiveTableInfo info = infos[0].newInstance();
        assertThat(info.getTableName(), is("model"));

        Method simple = descriptor.getDataModelClass().getMethod("getSimpleOption");
View Full Code Here

Examples of org.apache.drill.exec.store.hive.HiveTable

        hivePartitions.add(new HiveTable.HivePartition(part));
      }

      if (hivePartitions.size() == 0)
        hivePartitions = null;
      return new HiveReadEntry(new HiveTable(t), hivePartitions, hiveConfigOverride);

    }
View Full Code Here

Examples of org.apache.drill.exec.store.hive.HiveTable

      }

      if (hivePartitions.size() == 0) {
        hivePartitions = null;
      }
      return new HiveReadEntry(new HiveTable(t), hivePartitions, hiveConfigOverride);

    }
View Full Code Here

Examples of org.apache.drill.exec.store.hive.HiveTable

      String id) {
    super(operand, id);
  }

  private HiveReadEntry splitFilter(HiveReadEntry origReadEntry, DirPathBuilder builder) {
    HiveTable table = origReadEntry.table;
    List<HivePartition> partitions = origReadEntry.partitions;
    List<HivePartition> newPartitions = new LinkedList<>();
    String pathPrefix = PartitionPruningUtil.truncatePrefixFromPath(table.getTable().getSd().getLocation());
    List<String> newFiles = Lists.newArrayList();
    List<String> dirPathList = builder.getDirPath();

    for (String dirPath : dirPathList) {
      String fullPath = pathPrefix + dirPath;
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.