Package com.cloudera.cdk.data

Examples of com.cloudera.cdk.data.DatasetException


            // TODO: add a check here for range.couldContain(Marker)
            dirs.add(stat.getPath().getName());
          }
        }
      } catch (IOException ex) {
        throw new DatasetException("Cannot list directory:" + dir, ex);
      }

      return dirs;
    }
View Full Code Here


            public View<E> apply(StorageKey key) {
              if (key != null) {
                // no need for the bounds checks, use dataset.in
                return ((FileSystemDataset) dataset).of(key);
              } else {
                throw new DatasetException("[BUG] Null partition");
              }
            }
          });
    } else {
      return Lists.newArrayList((View<E>) this);
View Full Code Here

            @Override
            public Path apply(StorageKey key) {
              if (key != null) {
                return new Path(root, convert.fromKey(key));
              } else {
                throw new DatasetException("[BUG] Null partition");
              }
            }
          });
    } else {
      directories = Lists.newArrayList(root);
View Full Code Here

    try {
      return new FileSystemPartitionIterator(
          fs, root,
          dataset.getDescriptor().getPartitionStrategy(), range);
    } catch (IOException ex) {
      throw new DatasetException("Cannot list partitions in view:" + this, ex);
    }
  }
View Full Code Here

TOP

Related Classes of com.cloudera.cdk.data.DatasetException

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.