Package com.splout.db.common

Examples of com.splout.db.common.ThriftReader


              log.warn("An empty partition folder: " + partition);
              continue;
            }
            Integer partitionName = new Integer(partition.getName());
            File metadataFile = DNodeHandler.getLocalMetadataFile(config, tablespaceName, partitionName, versionName);
            ThriftReader reader = new ThriftReader(metadataFile);
            PartitionMetadata metadata = (PartitionMetadata) reader.read(new PartitionMetadata());
            reader.close();
            if(servingInfo.get(tablespaceName) == null) {
              servingInfo.put(tablespaceName, new HashMap<Long, Map<Integer,PartitionMetadata>>());
            }
            if(servingInfo.get(tablespaceName).get(versionName) == null) {
              servingInfo.get(tablespaceName).put(versionName, new HashMap<Integer, PartitionMetadata>());
View Full Code Here


              log.warn("Asked for " + dbFolder + " but it doesn't exist!");
              throw new DNodeException(EXCEPTION_ORDINARY, "Requested tablespace (" + tablespace
                  + ") + version (" + version + ") is not available.");
            }
            File metadata = getLocalMetadataFile(tablespace, partition, version);
            ThriftReader reader = new ThriftReader(metadata);
            PartitionMetadata partitionMetadata = (PartitionMetadata) reader
                .read(new PartitionMetadata());
            reader.close();
            dbPoolInCache = loadManagerInEHCache(tablespace, version, partition, dbFolder, partitionMetadata);
          }
        }
        // Query the {@link SQLite4JavaManager} and return
        String result = ((EngineManager) dbPoolInCache.getObjectValue())
View Full Code Here

TOP

Related Classes of com.splout.db.common.ThriftReader

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.