Searched defs:fd (Results 1 - 5 of 5) sorted by relevance

/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/store/
H A DNativePosixUtil.java36 private static native int posix_fadvise(FileDescriptor fd, long offset, long len, int advise) throws IOException; argument
40 public static native long pread(FileDescriptor fd, long pos, ByteBuffer byteBuf) throws IOException; argument
42 public static void advise(FileDescriptor fd, long offset, long len, int advise) throws IOException { argument
43 final int code = posix_fadvise(fd, offset, len, advise);
H A DWindowsDirectory.cpp103 (JNIEnv *env, jclass ignored, jlong fd, jbyteArray bytes, jint offset, jint length, jlong pos)
119 if (ReadFile((HANDLE) fd, &buffer, length, &numRead, &io)) {
129 if (!ReadFile((HANDLE) fd, (void *)(buffer+offset), length, &numRead, &io)) {
148 (JNIEnv *env, jclass ignored, jlong fd)
150 if (!CloseHandle((HANDLE) fd)) {
163 (JNIEnv *env, jclass ignored, jlong fd)
167 if (GetFileInformationByHandle((HANDLE) fd, (LPBY_HANDLE_FILE_INFORMATION) &info)) {
102 Java_org_apache_lucene_store_WindowsDirectory_read(JNIEnv *env, jclass ignored, jlong fd, jbyteArray bytes, jint offset, jint length, jlong pos) argument
147 Java_org_apache_lucene_store_WindowsDirectory_close(JNIEnv *env, jclass ignored, jlong fd) argument
162 Java_org_apache_lucene_store_WindowsDirectory_length(JNIEnv *env, jclass ignored, jlong fd) argument
H A DWindowsDirectory.java78 private final long fd; field in class:WindowsDirectory.WindowsIndexInput
85 fd = WindowsDirectory.open(file.getPath());
86 length = WindowsDirectory.length(fd);
94 bytesRead = WindowsDirectory.read(fd, b, offset, length, getFilePointer());
114 WindowsDirectory.close(fd);
136 private static native int read(long fd, byte bytes[], int offset, int length, long pos) throws IOException; argument
139 private static native void close(long fd) throws IOException; argument
142 private static native long length(long fd) throws IOException; argument
H A DNativePosixUtil.cpp50 // read the int fd field
51 jfieldID fdField = env->GetFieldID(fdesc, "fd", "I");
56 int fd = env->GetIntField(fileDescriptor, fdField); local
57 //printf("fd=%d\n", fd); fflush(stdout);
82 int result = posix_fadvise(fd, (off_t) offset, (off_t) len, osAdvice);
106 int fd; local
117 fd = open(fname, O_RDONLY | O_DIRECT | O_NOATIME);
119 fd = open(fname, O_RDWR | O_CREAT | O_DIRECT | O_NOATIME, 0666);
122 //printf("open %s -> %d; ro %d\n", fname, fd, readOnl
166 const int fd = env->GetIntField(jfd, field_fd); local
[all...]
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/fst/
H A DSort.java327 if (!streams[top.fd].read(top.current)) {
365 final int fd; field in class:Sort.FileAndTop
368 FileAndTop(int fd, byte [] firstLine) { argument
369 this.fd = fd;

Completed in 319 milliseconds