Search in sources :

Example 1 with Index

use of org.apache.jute_voltpatches.Index in project voltdb by VoltDB.

the class DataTree method deserializeList.

private void deserializeList(Map<Long, List<ACL>> longKeyMap, InputArchive ia) throws IOException {
    int i = ia.readInt("map");
    while (i > 0) {
        Long val = ia.readLong("long");
        if (aclIndex < val) {
            aclIndex = val;
        }
        List<ACL> aclList = new ArrayList<ACL>();
        Index j = ia.startVector("acls");
        while (!j.done()) {
            ACL acl = new ACL();
            acl.deserialize(ia, "acl");
            aclList.add(acl);
            j.incr();
        }
        longKeyMap.put(val, aclList);
        aclKeyMap.put(aclList, val);
        i--;
    }
}
Also used : ArrayList(java.util.ArrayList) ACL(org.apache.zookeeper_voltpatches.data.ACL) Index(org.apache.jute_voltpatches.Index)

Aggregations

ArrayList (java.util.ArrayList)1 Index (org.apache.jute_voltpatches.Index)1 ACL (org.apache.zookeeper_voltpatches.data.ACL)1