public long getLong( final Enum<?> key, long arg ) { return getLong( key.name().toLowerCase(), arg ); }
public long getLong( final Enum<?> key ) { return getLong( key.name().toLowerCase() ); }
public long getLong( final Enum<?> key ) { return getLong( key.name().toLowerCase() ); }
public Long getLong( final Enum<?> key, Long arg ) { return getLong( key.name().toLowerCase(), arg ); }
public long getLong( final Enum<?> key, long arg ) { return getLong( key.name().toLowerCase(), arg ); }
public long getLong(final Enum<?> key, long arg) { return getLong(key.name().toLowerCase(), arg); }
public long getLong(final Enum<?> key) { return getLong(key.name().toLowerCase()); }
public Long getLong(final Enum<?> key, Long arg) { return getLong(key.name().toLowerCase(), arg); }
public Long getLong( final Enum<?> key, Long arg ) { return getLong( key.name().toLowerCase(), arg ); }
public static BatchDetails batchEndPoints(File indexDirectory) throws IOException, ConfigurationException { BatchDetails details = new BatchDetails(); long totalDocs = 0; File[] subIndexes = indexDirectory.listFiles(INDEX_NAME_FILTER); if(subIndexes.length == 0) { throw new RuntimeException("Index has no AtomicIndexes!"); } details.names = subIndexes[0].list(BATCH_NAME_FILTER); java.util.Arrays.sort(details.names, BATCH_COMPARATOR); details.endPoints = new long[details.names.length]; for(int i = 0; i < details.names.length; i++) { Properties batchProps = new Properties(); try(FileInputStream propsIn = new FileInputStream(new File(new File(subIndexes[0], details.names[i]), subIndexes[0].getName() + ".properties"))) { batchProps.load(propsIn); } totalDocs += batchProps.getLong("documents"); details.endPoints[i] = totalDocs; } return details; }
public enum IndexType { /** An old-style, interleaved index. */ INTERLEAVED, /** A high-performance index which stores position separately. */ HIGH_PERFORMANCE, /** A quasi-succinct index. */ QUASI_SUCCINCT }
public enum IndexType { /** An old-style, interleaved index. */ INTERLEAVED, /** A high-performance index which stores position separately. */ HIGH_PERFORMANCE, /** A quasi-succinct index. */ QUASI_SUCCINCT }
final long numberOfDocuments = properties.getLong( Index.PropertyKeys.DOCUMENTS ); final long numberOfTerms = properties.getLong( Index.PropertyKeys.TERMS ); final long numberOfPostings= properties.getLong( Index.PropertyKeys.POSTINGS ); final long numberOfOccurrences = properties.getLong( Index.PropertyKeys.OCCURRENCES, -1 ); final int maxCount = properties.getInt( Index.PropertyKeys.MAXCOUNT, -1 ); final String field = properties.getString( Index.PropertyKeys.FIELD, new File( basename.toString() ).getName() );
numberOfDocuments, properties.getInt( Index.PropertyKeys.TERMS ), properties.getLong( Index.PropertyKeys.POSTINGS ), properties.getLong( Index.PropertyKeys.OCCURRENCES ), properties.getInt( Index.PropertyKeys.MAXCOUNT ), payload, hasCounts, hasPositions, numberOfDocuments, properties.getInt( Index.PropertyKeys.TERMS ), properties.getLong( Index.PropertyKeys.POSTINGS ), properties.getLong( Index.PropertyKeys.OCCURRENCES ), properties.getInt( Index.PropertyKeys.MAXCOUNT ), payload, hasCounts, hasPositions, numberOfDocuments, properties.getInt( Index.PropertyKeys.TERMS ), properties.getLong( Index.PropertyKeys.POSTINGS ), properties.getLong( Index.PropertyKeys.OCCURRENCES ), properties.getInt( Index.PropertyKeys.MAXCOUNT ), payload, hasCounts, hasPositions,
numberOfDocuments, properties.getInt( Index.PropertyKeys.TERMS ), properties.getLong( Index.PropertyKeys.POSTINGS ), properties.getLong( Index.PropertyKeys.OCCURRENCES ), properties.getInt( Index.PropertyKeys.MAXCOUNT ), payload, hasCounts, hasPositions, numberOfDocuments, properties.getInt( Index.PropertyKeys.TERMS ), properties.getLong( Index.PropertyKeys.POSTINGS ), properties.getLong( Index.PropertyKeys.OCCURRENCES ), properties.getInt( Index.PropertyKeys.MAXCOUNT ), payload, hasCounts, hasPositions, numberOfDocuments, properties.getInt( Index.PropertyKeys.TERMS ), properties.getLong( Index.PropertyKeys.POSTINGS ), properties.getLong( Index.PropertyKeys.OCCURRENCES ), properties.getInt( Index.PropertyKeys.MAXCOUNT ), payload, hasCounts, hasPositions,
numberOfDocuments, properties.getInt( Index.PropertyKeys.TERMS ), properties.getLong( Index.PropertyKeys.POSTINGS ), properties.getLong( Index.PropertyKeys.OCCURRENCES ), properties.getInt( Index.PropertyKeys.MAXCOUNT ), payload, hasCounts, hasPositions, numberOfDocuments, properties.getInt( Index.PropertyKeys.TERMS ), properties.getLong( Index.PropertyKeys.POSTINGS ), properties.getLong( Index.PropertyKeys.OCCURRENCES ), properties.getInt( Index.PropertyKeys.MAXCOUNT ), payload, hasCounts, hasPositions, numberOfDocuments, properties.getInt( Index.PropertyKeys.TERMS ), properties.getLong( Index.PropertyKeys.POSTINGS ), properties.getLong( Index.PropertyKeys.OCCURRENCES ), properties.getInt( Index.PropertyKeys.MAXCOUNT ), payload, hasCounts, hasPositions,
totPostings += properties.getLong( "postings" ); properties.setProperty( Index.PropertyKeys.OCCURRENCES, -1 ); properties.setProperty( Index.PropertyKeys.MAXDOCSIZE, -1 );
totPostings += properties.getLong( "postings" ); properties.setProperty( Index.PropertyKeys.OCCURRENCES, -1 ); properties.setProperty( Index.PropertyKeys.MAXDOCSIZE, -1 );
totPostings += properties.getLong( "postings" ); properties.setProperty( Index.PropertyKeys.OCCURRENCES, -1 ); properties.setProperty( Index.PropertyKeys.MAXDOCSIZE, -1 );
totPostings += properties.getLong( "postings" ); properties.setProperty( Index.PropertyKeys.OCCURRENCES, -1 ); properties.setProperty( Index.PropertyKeys.MAXDOCSIZE, -1 );