View Result Lock

how to query on Documents with startKey and endKey , not View ?. if it is not possible , how to lock document that result of view query.
My document key example is like this : [“fa”,104,1459459225340,1462050000000,197742]
I want to query on the document as follows.How to do it with java.
startKey=[“fa”,104,0,{1502692091 | -1}]
endKey=[“fa”,104,1502692091,{9999999999 | -1}]

I don’t quite understand your question, as startKey and endKey would use views. If you’re looking to query a view from Java, have at the documentation on views from the Java SDK.