/** * Return the upper 32 bit of the long at the index. * @return int * @param index int */ public int upper32At(int index) { if (index < 0 || index >= size()) { throw new IndexOutOfBoundsException(); } int pageNum = (index >>exp); int offset = index & r; return (int) ((((long[]) bufferArrayList.get(pageNum))[offset] & (0xffffffffL << 32)) >> 32); }
la[k]= k; FastLongBuffer flb = new FastLongBuffer(14); flb.append(la); flb.clear(); flb.append(la); long lb[] = flb.toLongArray(); for (int i = 0;i<1000000;i++){ if (lb[i]!=i){
FastLongBuffer flb = new FastLongBuffer(4); int i; byte[] xml = vn.getXML().getBytes(); while ((i = ap.evalXPath()) != -1) { flb.append(vn.getElementFragment()); int size = flb.size(); if (size != 0) { File fo = null; fos.write(prefix.getBytes()); fos.write(xml, flb.lower32At(k), flb.upper32At(k));
XMLModifier xm = new XMLModifier(vn); ap.selectXPath("/messagge/heading/context/forniture/document"); //first xpath FastLongBuffer fib= new FastLongBuffer();// grab all the fragments int i=0;long l1=0,l2=0,l3=0; while((i=ap.evalXPath())!=-1){ fib.append(vn.getElementFragment()); for (int j=0;j<fib.size();j++){ xm.insertAfterHead(vn,l1); xm.removeContent((int)(l2),(int)(l2>>32)); l3= fib.longAt(j); xm.insertBeforeTail(vn,l3); xm.output("d:\\xml\\outMessage"+(j+1)+".xml");
long r_offset = offset; for (k = length; k > MAX_TOKEN_LENGTH; k = k - MAX_TOKEN_LENGTH) { VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | MAX_TOKEN_LENGTH) << 38) | r_offset); VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | k) << 38) | r_offset); VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | length) << 38) | offset); VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | length) << 38) | offset); switch (depth) { case 0: rootIndex = VTDBuffer.size() - 1; break; case 1: if (last_depth == 1) { l1Buffer.append(((long) last_l1_index << 32) | 0xffffffffL); } else if (last_depth == 2) { l2Buffer.append(((long) last_l2_index << 32) | 0xffffffffL); last_l1_index = VTDBuffer.size() - 1;
VTDBuffer = new FastLongBuffer(a, (int) (xb.length()>> (a+1))); l1Buffer = new FastLongBuffer(i1); l2Buffer = new FastLongBuffer(i2); l3Buffer = new FastIntBuffer(i3);
la[k]= k; FastLongBuffer flb = new FastLongBuffer(14); flb.append(la); flb.clear(); flb.append(la); long lb[] = flb.toLongArray(); for (int i = 0;i<1000000;i++){ if (lb[i]!=i){
long r_offset = offset; for (k = length; k > MAX_TOKEN_LENGTH; k = k - MAX_TOKEN_LENGTH) { VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | MAX_TOKEN_LENGTH) << 38) | r_offset); VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | k) << 38) | r_offset); VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | length) << 38) | offset); VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | length) << 38) | offset); switch (depth) { case 0: rootIndex = VTDBuffer.size() - 1; break; case 1: if (last_depth == 1) { l1Buffer.append(((long) last_l1_index << 32) | 0xffffffffL); } else if (last_depth == 2) { l2Buffer.append(((long) last_l2_index << 32) | 0xffffffffL); last_l1_index = VTDBuffer.size() - 1;
VTDBuffer = new FastLongBuffer(a, (int) (xb.length()>> (a+1))); l1Buffer = new FastLongBuffer(i1); l2Buffer = new FastLongBuffer(i2); l3Buffer = new FastIntBuffer(i3);
la[k]= k; FastLongBuffer flb = new FastLongBuffer(14); flb.append(la); flb.clear(); flb.append(la); long lb[] = flb.toLongArray(); for (int i = 0;i<1000000;i++){ if (lb[i]!=i){
/** * Return the upper 32 bit of the long at the index. * @return int * @param index int */ public int upper32At(int index) { if (index < 0 || index >= size()) { throw new IndexOutOfBoundsException(); } int pageNum = (index >>exp); int offset = index & r; return (int) ((((long[]) bufferArrayList.get(pageNum))[offset] & (0xffffffffL << 32)) >> 32); }
long r_offset = offset; for (k = length; k > MAX_TOKEN_LENGTH; k = k - MAX_TOKEN_LENGTH) { VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | MAX_TOKEN_LENGTH) << 38) | r_offset); VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | k) << 38) | r_offset); VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | length) << 38) | offset); VTDBuffer.append(((long) ((token_type << 22) | ((depth & 0x1f) << 17) | length) << 38) | offset); switch (depth) { case 0: rootIndex = VTDBuffer.size() - 1; break; case 1: if (last_depth == 1) { l1Buffer.append(((long) last_l1_index << 32) | 0xffffffffL); } else if (last_depth == 2) { l2Buffer.append(((long) last_l2_index << 32) | 0xffffffffL); last_l1_index = VTDBuffer.size() - 1;
VTDBuffer = new FastLongBuffer(a, (int) (xb.length()>> (a+1))); l1Buffer = new FastLongBuffer(i1); l2Buffer = new FastLongBuffer(i2); l3Buffer = new FastIntBuffer(i3);
/** * Get the long val at given index value. * @return long * @param index int */ public long longAt(int index) { if (index < 0 || index > size()) { throw new IndexOutOfBoundsException(); } int pageNum = (index >> exp); // int offset = index % r; int offset = index &r; return ((long[]) bufferArrayList.get(pageNum))[offset]; } /**
/** * Get the lower 32 bit of the integer at the given index. * @return int * @param index int */ public int lower32At(int index) { if (index < 0 || index > size()) { throw new IndexOutOfBoundsException(); } int pageNum = (index >> exp); // int offset = index % pageSize; int offset = index & r; return (int) ((long[]) bufferArrayList.get(pageNum))[offset]; } /**
/** * Return the upper 32 bit of the long at the index. * @return int * @param index int */ public int upper32At(int index) { if (index < 0 || index >= size()) { throw new IndexOutOfBoundsException(); } int pageNum = (index >>exp); int offset = index & r; return (int) ((((long[]) bufferArrayList.get(pageNum))[offset] & (0xffffffffL << 32)) >> 32); }
/** * Get the lower 32 bit of the integer at the given index. * @return int * @param index int */ public int lower32At(int index) { if (index < 0 || index > size()) { throw new IndexOutOfBoundsException(); } int pageNum = (index >> exp); // int offset = index % pageSize; int offset = index & r; return (int) ((long[]) bufferArrayList.get(pageNum))[offset]; } /**