Remember, views are just MapReduce functions in action; thus, you must define them.
记住,视图就是实际的MapReduce函数;因此,您必须定义它们。
Now that you've read about using readdir and stat to find out about the entries of the directory, let's look at some code that demonstrates these functions in action.
既然已经学习了如何使用readdir和stat来查找目录中的条目,那么让我们来看看演示这些函数的一些实际代码。
You can see the functions in action in the example program demo.jdic.FileExtensionDemo. The top part of the application lets you to browse for a file and then open it, as you can see in Figure 4.
可以在示例程序demo . jdic . FileExtensionDemo中看到这些函数的实际作用。
应用推荐