Package org.hivedb

Examples of org.hivedb.DirectoryCorruptionException


        new Object[]{id},
        RowMappers.newObjectRowMapper(resource.getPartitionDimension().getColumnType()));
    if (keys.size() == 0)
      throw new HiveKeyNotFoundException(String.format("Unable to find primary key for resource %s with id %s", resource.getName(), id), id);
    else if (keys.size() > 1)
      throw new DirectoryCorruptionException(String.format("Directory corruption: Resource %s with id %s is owned more than one primary key.", resource.getName(), id));
    return Atom.getFirstOrNull(keys);
  }
View Full Code Here

TOP

Related Classes of org.hivedb.DirectoryCorruptionException

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.