public static int lookupSequenceLengthLoc(String target, int fragmentStart, FieldReferenceOffsetManager from) { int x = lookupFragmentLocator(target, fragmentStart, from); return buildFieldLoc(from, fragmentStart, x-1); }
public static int lookupSequenceLengthLoc(String target, int fragmentStart, FieldReferenceOffsetManager from) { int x = lookupFragmentLocator(target, fragmentStart, from); return buildFieldLoc(from, fragmentStart, x-1); }
public static int lookupFieldLocator(long id, int fragmentStart, FieldReferenceOffsetManager from) { int x = fragmentStart; //upper bits is 4 bits of information while (x < from.fieldNameScript.length) { if (id == from.fieldIdScript[x]) { return buildFieldLoc(from, fragmentStart, x); } if (exitSearch(from, x)) { break; } x++; } throw new UnsupportedOperationException("Unable to find field id: "+id+" in "+Arrays.toString(from.fieldNameScript)); }
public static int lookupFieldLocator(long id, int fragmentStart, FieldReferenceOffsetManager from) { int x = fragmentStart; //upper bits is 4 bits of information while (x < from.fieldNameScript.length) { if (id == from.fieldIdScript[x]) { return buildFieldLoc(from, fragmentStart, x); } if (exitSearch(from, x)) { break; } x++; } throw new UnsupportedOperationException("Unable to find field id: "+id+" in "+Arrays.toString(from.fieldNameScript)); }
public static int lookupFieldLocator(long id, int fragmentStart, FieldReferenceOffsetManager from) { int x = fragmentStart; //upper bits is 4 bits of information while (x < from.fieldNameScript.length) { if (id == from.fieldIdScript[x]) { return buildFieldLoc(from, fragmentStart, x); } if (exitSearch(from, x)) { break; } x++; } throw new UnsupportedOperationException("Unable to find field id: "+id+" in "+Arrays.toString(from.fieldNameScript)); }
public static int lookupSequenceLengthLoc(String target, int fragmentStart, FieldReferenceOffsetManager from) { int x = lookupFragmentLocator(target, fragmentStart, from); return buildFieldLoc(from, fragmentStart, x-1); }
public static int paranoidLookupFieldLocator(long id, String name, int fragmentStart, FieldReferenceOffsetManager from) { int x = fragmentStart; //upper bits is 4 bits of information while (x < from.fieldNameScript.length) { if (id == from.fieldIdScript[x] && name.equalsIgnoreCase(from.fieldNameScript[x])) { return buildFieldLoc(from, fragmentStart, x); } if (exitSearch(from, x)) { break; } x++; } throw new UnsupportedOperationException("Unable to find field id: "+id+" in "+Arrays.toString(from.fieldNameScript)); }
public static int paranoidLookupFieldLocator(long id, String name, int fragmentStart, FieldReferenceOffsetManager from) { int x = fragmentStart; //upper bits is 4 bits of information while (x < from.fieldNameScript.length) { if (id == from.fieldIdScript[x] && name.equalsIgnoreCase(from.fieldNameScript[x])) { return buildFieldLoc(from, fragmentStart, x); } if (exitSearch(from, x)) { break; } x++; } throw new UnsupportedOperationException("Unable to find field id: "+id+" in "+Arrays.toString(from.fieldNameScript)); }
public static int paranoidLookupFieldLocator(long id, String name, int fragmentStart, FieldReferenceOffsetManager from) { int x = fragmentStart; //upper bits is 4 bits of information while (x < from.fieldNameScript.length) { if (id == from.fieldIdScript[x] && name.equalsIgnoreCase(from.fieldNameScript[x])) { return buildFieldLoc(from, fragmentStart, x); } if (exitSearch(from, x)) { break; } x++; } throw new UnsupportedOperationException("Unable to find field id: "+id+" in "+Arrays.toString(from.fieldNameScript)); }
/** * This does not return the token found in the script but rather a special value that can be used to * get dead reckoning offset into the field location. * * @param name field name * @param fragmentStart index of field start * @param from field reference offset manager */ public static int lookupFieldLocator(String name, int fragmentStart, FieldReferenceOffsetManager from) { int x = fragmentStart; //upper bits is 4 bits of information while (x < from.fieldNameScript.length) { if (name.equalsIgnoreCase(from.fieldNameScript[x])) { return buildFieldLoc(from, fragmentStart, x); } if (exitSearch(from, x)) { break; } x++; } throw new UnsupportedOperationException("Unable to find field name: "+name+" in "+Arrays.toString(from.fieldNameScript)); }
/** * This does not return the token found in the script but rather a special value that can be used to * get dead reckoning offset into the field location. * * @param name * @param fragmentStart * @param from */ public static int lookupFieldLocator(String name, int fragmentStart, FieldReferenceOffsetManager from) { int x = fragmentStart; //upper bits is 4 bits of information while (x < from.fieldNameScript.length) { if (name.equalsIgnoreCase(from.fieldNameScript[x])) { return buildFieldLoc(from, fragmentStart, x); } if (exitSearch(from, x)) { break; } x++; } throw new UnsupportedOperationException("Unable to find field name: "+name+" in "+Arrays.toString(from.fieldNameScript)); }
/** * This does not return the token found in the script but rather a special value that can be used to * get dead reckoning offset into the field location. * * @param name field name * @param fragmentStart index of field start * @param from field reference offset manager */ public static int lookupFieldLocator(String name, int fragmentStart, FieldReferenceOffsetManager from) { int x = fragmentStart; //upper bits is 4 bits of information while (x < from.fieldNameScript.length) { if (name.equalsIgnoreCase(from.fieldNameScript[x])) { return buildFieldLoc(from, fragmentStart, x); } if (exitSearch(from, x)) { break; } x++; } throw new UnsupportedOperationException("Unable to find field name: "+name+" in "+Arrays.toString(from.fieldNameScript)); }