@Test void testGetAllChildrenWithData() { ZkUtils.setToZk(curatorFramework, "/all/test3/a", "a".getBytes()); ZkUtils.setToZk(curatorFramework, "/all/test3/b", "b".getBytes()); ZkUtils.setToZk(curatorFramework, "/all/test3/b/c", "c".getBytes()); ZkUtils.setToZk(curatorFramework, "/all/test3/b/c/c1", "c1".getBytes()); ZkUtils.setToZk(curatorFramework, "/all/test3/b/c/c2", "c2".getBytes()); getAllChildrenWithData(curatorFramework, "/all/test3").forEach(System.out::println); assertEquals(5, getAllChildrenWithData(curatorFramework, "/all/test3").count()); System.out.println("no end /"); getAllChildrenWithData(curatorFramework, "/all/test3/").forEach(System.out::println); assertEquals(5, getAllChildrenWithData(curatorFramework, "/all/test3").count()); System.out.println("no path"); getAllChildrenWithData(curatorFramework, "/all/xyz/").forEach(System.out::println); assertEquals(0, getAllChildrenWithData(curatorFramework, "/all/xyz/").count()); }
public static Stream<ChildData> getAllChildrenWithData(CuratorFramework curator, String parentPath){ String parentPath0 = removeEnd(parentPath, "/"); return getAllChildrenWithData0(curator, parentPath0); }
ZkUtils { public static Stream<ChildData> getAllChildrenWithData(CuratorFramework curator, String parentPath){ String parentPath0 = removeEnd(parentPath, "/"); return getAllChildrenWithData0(curator, parentPath0); } }
ZkUtils { public static Stream<ChildData> getAllChildrenWithData(CuratorFramework curator, String parentPath){ String parentPath0 = removeEnd(parentPath, "/"); return getAllChildrenWithData0(curator, parentPath0); } private  ZkUtils(); }
ZkUtils { public static Stream<ChildData> getAllChildrenWithData(CuratorFramework curator, String parentPath){ String parentPath0 = removeEnd(parentPath, "/"); return getAllChildrenWithData0(curator, parentPath0); } private  ZkUtils(); static String getStringFromZk(CuratorFramework client, String path); static byte[] getBytesFromZk(CuratorFramework client, String path); static T getFromZk(CuratorFramework client, String path,
            ThrowableFunction<byte[], T, X> decoder); static void setToZk(CuratorFramework client, String path, byte[] value); @Deprecated static void setToZk(CuratorFramework client, String path, byte[] value,
            CreateMode createMode); static EphemeralNode createEphemeralNode(CuratorFramework client, String path,
            byte[] value); static void removeFromZk(CuratorFramework client, String path); static void removeFromZk(CuratorFramework client, String path,
            boolean recruitDeletedChildren); static void changeZkValue(CuratorFramework client, String path,
            Function<T, T> changeFunction, Function<byte[], T> decoder,
            Function<T, byte[]> encoder); static boolean changeZkValue(CuratorFramework client, String path,
            Function<byte[], byte[]> changeFunction, int retryTimes, long retryWait); static Stream<ChildData> getAllChildrenWithData(CuratorFramework curator, String parentPath); static Stream<String> getAllChildren(CuratorFramework curator, String parentPath); }
ZkUtils { public static Stream<ChildData> getAllChildrenWithData(CuratorFramework curator, String parentPath){ String parentPath0 = removeEnd(parentPath, "/"); return getAllChildrenWithData0(curator, parentPath0); } private  ZkUtils(); static String getStringFromZk(CuratorFramework client, String path); static byte[] getBytesFromZk(CuratorFramework client, String path); static T getFromZk(CuratorFramework client, String path,
            ThrowableFunction<byte[], T, X> decoder); static void setToZk(CuratorFramework client, String path, byte[] value); @Deprecated static void setToZk(CuratorFramework client, String path, byte[] value,
            CreateMode createMode); static EphemeralNode createEphemeralNode(CuratorFramework client, String path,
            byte[] value); static void removeFromZk(CuratorFramework client, String path); static void removeFromZk(CuratorFramework client, String path,
            boolean recruitDeletedChildren); static void changeZkValue(CuratorFramework client, String path,
            Function<T, T> changeFunction, Function<byte[], T> decoder,
            Function<T, byte[]> encoder); static boolean changeZkValue(CuratorFramework client, String path,
            Function<byte[], byte[]> changeFunction, int retryTimes, long retryWait); static Stream<ChildData> getAllChildrenWithData(CuratorFramework curator, String parentPath); static Stream<String> getAllChildren(CuratorFramework curator, String parentPath);  }