Package com.gotometrics.orderly

Examples of com.gotometrics.orderly.StructIterator.skip()


            throw new MalformedQueryException("field [" + fieldName + "] is not part of the index");
        }

        // skip all fields up to fieldPosition
        for (int i = 0; i < fieldPosition; i++) {
            iterator.skip();
        }

        // return the requested field
        return iterator.next();
    }
View Full Code Here


        final StructIterator iterator = structRowKey.iterator();

        int nbrFields = structRowKey.getFields().length;
        // ignore all but last field (i.e. the identifier)
        for (int i = 0; i < nbrFields - 1; i++) {
            iterator.skip();
        }

        // read the last field (i.e. the identifier)
        return (byte[]) iterator.next();
    }
View Full Code Here

                if (indexFilter.filterField(field.getName(), nextField)) {
                    return true; // this result is ignored
                }
            } else {
                try {
                    fieldsIterator.skip();
                } catch (IOException e) {
                    throw new RuntimeException("failed to skip, index inconsistency?", e);
                }
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.